You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the for loop runs wlen times, but it writes a u32 every loop. Perfect, but the ldscripts calculate wlen with LONG (__data_end__ - __data_start__) , i.e. a value in bytes !
So the hardfault occurs on a build here with wlen=0x930 , at i=0x601 (thus trying to write at 0x2000 1804 - right outside an F042 's 6kB of RAM !)
The text was updated successfully, but these errors were encountered:
The __copy_table code triggers the same problem. Once length in a copy or zero table entry reaches 1/4 of the total RAM size this code will hard fault the system. Before this it will only overwrite the memory....
candle-usb/candleLight_fw#135 (comment)
hardfault on a F042. Description copied from the comment linked above :
I think I have an idea of the issue causing the hardfault.
The text was updated successfully, but these errors were encountered: