Page 1 of 1

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

Posted: Tue Jun 20, 2023 12:53 am
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?

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

Posted: Tue Jun 20, 2023 5:06 am
by fpiSTM

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

Posted: Tue Jun 20, 2023 7:49 pm
by myksj1105
Thank you.~~!!