[STM FREERAM] I want to get the 'FREERAM' value of 'STM32F103C8T6'. help me.

Post here first, or if you can't find a relevant section!
Post Reply
myksj1105
Posts: 54
Joined: Sun Jun 18, 2023 11:35 am

[STM FREERAM] I want to get the 'FREERAM' value of 'STM32F103C8T6'. help me.

Post by myksj1105 »

I want to get the 'FREERAM' value of 'STM32F103C8T6'. help.
How can I find out? help.
For example, 'AVR'

Code: Select all

#ifdef __AVR__
// this handy function will return the number of bytes currently free in RAM, great for debugging!
int freeRam(void)
{
   extern int __bss_end;
   extern int *__brkval;
   int free_memory;
   if ((int)__brkval == 0) {
     free_memory = ((int)&free_memory) - ((int)&__bss_end);
   }
   else {
     free_memory = ((int)&free_memory) - ((int)__brkval);
   }
   return free_memory;
}
#endif
What is the 'STM32F103C8T6' method?
by fpiSTM » Tue Jun 20, 2023 5:06 am Go to full post
myksj1105
Posts: 54
Joined: Sun Jun 18, 2023 11:35 am

Re: [STM FREERAM] I want to get the 'FREERAM' value of 'STM32F103C8T6'. help me.

Post by myksj1105 »

Thank you.~~!!
Post Reply

Return to “General discussion”