Getting started image classification and standby mode
I am developing an application on NUCLEO-N657X0-Q using Getting started image classification as base code. I need to add to the project the standby mode and right now when it enters standby mode, then it fails to resume correctly, i guess because part of the application is lost when system wakes up (retention is only 80 KB).
The total size of the application is much bigger then 80KB and I am not sure how to extend the actual retention memory in use adding the TCM retention memories.
Actually the application code is placed at 0x34000400.
Is there an example on how to place the application also in TCM?
I thought that another solution could be placing in retention at 0x34000000 the fsbl code and maybe in axisram2 the application, so that when the system wakes up after a standby it executes again fsbl and gets from external flash the application code.
I tried this last part changing the linker files, setting 0x34000000 for fsbl and 0x34100400 for application, then in fsbl code i set address 0x34100400 in
#define EXTMEM_LRUN_DESTINATION_ADDRESS
to be used when fsbl must copy application code from flash and then jump to it.
This solution doesn’t work, maybe I am missing something or is not a solution at all.
Can you help me to find the right way to have standby mode working on a big application?
Thank you
