when I coding this,
I can not package my OTA files
it shows
So where can I find the problem?
PLEASE HELP ME
when I coding this,
I can not package my OTA files
it shows
So where can I find the problem?
PLEASE HELP ME
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 */"
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 */"