Hi again,
I have imported and tested two examples that seems to interact with the flash as I need:
- flexspi_nor_polling_transfer (the one proposed by you)
- flash_component_nor
By default both of them have unchecked the following setting Link application to RAM
Selrac_13_0-1691509724577.png
If I check this setting, as all the code is placed in RAM both examples run fine, but with the default configuration, that is having the program in Flash as I need for my project, both examples crash:
flash_component_nor:
Debugger starts but then a Fault occurs:
Selrac_13_1-1691509971585.png
flexspi_nor_polling_transfer:
First execution the program is stucked at some point and it is not recovered, from now on if trying to launch the application again the debugger is not even starting:
Selrac_13_2-1691510268590.png
To recover the device I need to connect it with 'NXP MCU Boot Utility' and perform a 'Connect to ROM' once.
Any help on how to be able to implement a flash read/write while program is stored in the flash is very appreciated.
Thanks