Hello, NXP team and others.
I'm working with s32k358 with decoupled cores as we aim for s32k328 later.
I have problems using DTCM2 and ITCM2 through backdoor when running only core 0.
So I have set up the project to use single core 0 and I can read and write DTCM0/ITCM0 and DTCM1/ITCM1 via backdoor access. But when I try to write values to DTCM2/ITCM2 via backdoor they are always 0.
I used this project Example_S32K314_DTCM1_Backdoor_RTD201_DS34_v3 - NXP Community as a reference and also chapter '3.4 TCM as system memory' of S32K3xx Reference Manual, Rev. 9, 07/2024.
Below is the example project attached where one can observe the issue.
The files modified are:
1) src/main.c
2) Project_Settings\Linker_Files\linker_flash_s32k328.ld
3) Project_Settings\Startup_Code\startup_cm7.s
4) Project_Settings\Startup_Code\Vector_Table.s - only __Stack_dtcm_start renamed to __Stack_start