Hi,NXP!
1.S32DS version: 3.5 RTD version: 4.0.0
2. Configuration of linker_flash_s32k312.ld, as shown in Figure 1.
Figure 1
3. When using the flexio DMA example, enable the statement __attribute__ ((section(".bootApp"))) unsigned short g_u2CurrBootOrAppMode in the program. During execution, it was found that the program ran incorrectly, as shown in Figure 2. It was also noted that the bootApp address changed to 0x20408000 (with the map shown in Figure 3), instead of the 0x20417FF0 set by the linker.
Figure 2
Figure 3
4. Specific code, see attachment
5. Please help confirm what issue caused the section address of bootApp to change.
Noe:The crystal oscillator used in the code is 24MHz.
Regards
Victory
已解决! 转到解答。
Hi,
1.it will be due to SRAM ECC is not initialized for this memory area.
Try to keep ram_rsvd2 at the end of SRAM in linker file
ram_rsvd2 : ORIGIN = 0x20418000, LENGTH = 0 /* End of SRAM */
The problem has been solved
2.But when I enabled the AppCodeIntegrity and FingerPrintTestSN in the code, I found that the address of AppCodeIntegrity changed to 0x5d2016 instead of 0x5d0000, as shown in the link and code below.
3.The code is attached.
Hi,
it will be due to SRAM ECC is not initialized for this memory area.
Try to keep ram_rsvd2 at the end of SRAM in linker file
ram_rsvd2 : ORIGIN = 0x20418000, LENGTH = 0 /* End of SRAM */
BR, Petr
Hi,
1.it will be due to SRAM ECC is not initialized for this memory area.
Try to keep ram_rsvd2 at the end of SRAM in linker file
ram_rsvd2 : ORIGIN = 0x20418000, LENGTH = 0 /* End of SRAM */
The problem has been solved
2.But when I enabled the AppCodeIntegrity and FingerPrintTestSN in the code, I found that the address of AppCodeIntegrity changed to 0x5d2016 instead of 0x5d0000, as shown in the link and code below.
3.The code is attached.