This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Hardfault Handler : uint8 table larger than 211 field

Hello,

I am developing a basic application on the nrf52832. I am using the SDK14.2 and freertos (two very basic task).

I basically have a problem when I set a uint8 table larger than 211 fields (so from 212 byte, the mcu goes in the hardfault handler). I guess I am messing up with the memories but I'm not sure exactly how and I would like to understand. 

How is the maximum size of a table defined ? I am defining the table as a global variable. 

/* Table of 212 bytes leads to hardfault error */
#define table_length 212 
uint8 var[table_length];

Thank you for your help,

Yves 

Parents Reply Children
No Data
Related