2122718_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2122718_en-US

2122718_en-US

S32K3: about AC_load_on_Job_Start

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.jpegJojo_Hu_0-1750821620784.jpeg

Jojo_Hu_1-1750821642119.jpegJojo_Hu_1-1750821642119.jpeg

Jojo_Hu_3-1750821740692.pngJojo_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!


Re: S32K3: about AC_load_on_Job_Start

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.pngJojo_Hu_0-1757918173892.png

Jojo_Hu_1-1757918311233.pngJojo_Hu_1-1757918311233.png



Re: S32K3: about AC_load_on_Job_Start

Yes, C40_Ip_AccessCode is copied to RAM. 

Re: S32K3: about AC_load_on_Job_Start

Which parts of the code in ROM will be placed at this address in RAM ? 

This function ?

Jojo_Hu_0-1751978216903.pngJojo_Hu_0-1751978216903.png


Re: S32K3: about AC_load_on_Job_Start

In my test code, I just initialized these addresses in configurator, so it points to unused RAM:

lukaszadrapa_0-1751955715691.pnglukaszadrapa_0-1751955715691.png


Re: S32K3: about AC_load_on_Job_Start

how should I define these variables?

Jojo_Hu_0-1751540048260.pngJojo_Hu_0-1751540048260.png


Re: S32K3: about AC_load_on_Job_Start

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...

Re: S32K3: about AC_load_on_Job_Start

@lukaszadrapa 


for question 1,

looking forward for your kind support. Tks.

Re: S32K3: about AC_load_on_Job_Start

hello,

for 1: 

SW32K3_S32M27x_RTD_4.4_4.0.0_P20_D2403
Re: S32K3: about AC_load_on_Job_Start

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

标记 (1)
无评分
版本历史
最后更新:
‎11-21-2025 02:17 AM
更新人: