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

nrf52832 memory error!

picture 1  

when I coding this, 

I can not package my OTA files

it shows picture 2

So where can I find the problem?

PLEASE HELP ME

Parents
  • Hello,

    Based on the error you get I suspect 'm_current_calendar' is placed directly in RAM at 0x2000FFF0 instead of being placed in FLASH and initialized to RAM by the CPU on startup. The problem with that is that you can't have data mapped to RAM in a DFU image.

    Please try to not initialize the variable and see if you get the same error.

    ie. change "static volatile calendar_t m_current_calendar __attribute__((at(0x2000FFF0))) = {{2017, 1, 1}, {7, 0, 0, 0}};" to "static volatile calendar_t m_current_calendar __attribute__((at(0x2000FFF0))); / *Zero-initialized */"

Reply
  • Hello,

    Based on the error you get I suspect 'm_current_calendar' is placed directly in RAM at 0x2000FFF0 instead of being placed in FLASH and initialized to RAM by the CPU on startup. The problem with that is that you can't have data mapped to RAM in a DFU image.

    Please try to not initialize the variable and see if you get the same error.

    ie. change "static volatile calendar_t m_current_calendar __attribute__((at(0x2000FFF0))) = {{2017, 1, 1}, {7, 0, 0, 0}};" to "static volatile calendar_t m_current_calendar __attribute__((at(0x2000FFF0))); / *Zero-initialized */"

Children
No Data
Related