Hi danielchen@fsl,
Yes - I am following that AppNote:
I had followed the AppNote notes for FreeRTOS in my own project, but that led to a different problem - an incorrect tick setup, so I started a separate thread for that problem last week.
Regarding the SDK demo software:
I also found there is a FreeRTOS versions of the power mode switch demo, ending in "CA".
If i try to run low power mode code on my board, modified for the FLASH we have on our board it crashes.
Our board has a 64MB QSPI NOR FLASH, not the hyperflash from the RT1052EVK)- the code crashes when trying to jump back to FLASH.
The NOR FLASH we use is similar to the RT1020EVK, or the RT1052 ArchSEED board, just more capacity.
This board is functional - FLASH read/write, SDRAM, all peripherals confirmed as working for our main application, we're just trying to add low power modes in now as the final step.
I know I need to modify the demo project for the different flash size & speed - so I updated:
clock_config - modified for 133MHz max NOR FLASH
xip files - flash type - copied from rt1020evk & modified for 64MB size
board.h - flash size -> 64MB
demo code (specific.c) -> modified clock dividers to limit FLASH to 133MHz.
You can see the code I have (just this demo modified as noted above) at this link.
Can you help me understand:
1. Is there something else I need to do for FLASH?
2. Why isn't the demo code forcing itself to be allocated to internal RAM when modifying FLASH configuration?