1. According to the referrence manual, we need to enable AC_load_on_Job_Start to avoid RWW problems.
But when I enabled it as below picture, Fls_ACWriteSize and Fls_ACWriteRomStart are still undefined (the same as Fls_ACEraseSize and Fls_ACEraseRomStart).
Jojo_Hu_0-1750821620784.jpeg
Jojo_Hu_1-1750821642119.jpeg
Jojo_Hu_3-1750821740692.png
so how to solve this problem please ?
2. If AC_load_on_Job_Start is disabled and both Write and Erase are in Async mode, can the code flash block be writing/erasing while data flash be writing/erasing ?
Looking forward to your support, thank you!
hi,
The memory distribution of Application and Bootloader are as follows.
If we want to erase and write Application while running in bootloader, and Ac load at startup has been enabled, do we need to configure the on-core MPU as mentioned in the second picture in PreTaskHook ?
Jojo_Hu_0-1757918173892.png
Jojo_Hu_1-1757918311233.png
Yes, C40_Ip_AccessCode is copied to RAM.
Which parts of the code in ROM will be placed at this address in RAM ?
This function ?
Jojo_Hu_0-1751978216903.png
In my test code, I just initialized these addresses in configurator, so it points to unused RAM:
lukaszadrapa_0-1751955715691.png
how should I define these variables?
Jojo_Hu_0-1751540048260.png
I did quick test in this version. If the sector which is supposed to be erased is in the same flash block as Fls code, I can see that the code is copied to RAM as expected and the sector is successfully erased. Not sure what's going on on your side...
for question 1,
looking forward for your kind support. Tks.
hello,
for 1:
Hi @Jojo_Hu
1. Which RTD version is that?
2. Read-While-Write is supported between flash blocks. For example, the code can run from code flash while data flash is being programmed or erased. Notice that only one program or erase operation can run at a time.
Regards,
Lukas