cancel
Showing results for 
Search instead for 
Did you mean: 

HI,Clive1,stm32 Hard fault,need your advice�

BeMercy
Associate II
Posted on July 17, 2015 at 11:48

to be migrated, sourceId: 55562:697285D7-A9CA-445D-B16C-F23BF0E3B1A3

1 REPLY 1
Posted on July 17, 2015 at 13:52

So the index [i] probably exceeds the bounds of the array.

Suggest you sanity check that i < 

Temperature_Channel

Print out diagnostic information to the console if that helps understand what's happening in your code. Use a proper Hard Fault handle that can display the registers and faulting address, and then look at a disassembly view of the failing code in that context.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..