STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Integration of real time data.

Hello,I am trying to estimate soc by coulomb counting method.In coulomb counting we required integration of discharge current.I am getting accurate discharge current but unable to add them by using array. I tried using array :float buffer[50]; float ...

Mohan1 by Associate III
  • 452 Views
  • 2 replies
  • 0 kudos

sprintf causes hard fault.

I use "sprintf (string,"comment"); everywhere now for some reason, I am getting a hardfault. in an innocuous print.length += sprintf(String + length, "Received Packet from ");length is only 15.String is declared as char String[256];I guess it is us...

Where does my const array go? (memory type?)

So, if we have a large amount of hard coded data we want to incorporate into my program, my presumption was that a const array would allow the compiler to treat the data more like code, than data, in terms of cost against your CPU limits.This was alm...