S32K358 memory map

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K358 memory map

Jump to solution
421 Views
liyongfeng
Contributor III

Why are the addresses of the ITCM blocks the same in S32K3XX_memory_map.xlsx? The same applies to the DTCM blocks.

Start address
[Hex]
End address
[Hex]
Max size [KB]DescriptionCache mode
at Reset
S32K358
0x000000000x0000FFFF64ITCM_0non-cacheable64
0x000000000x0000FFFF64ITCM_1non-cacheable 
0x000000000x0000FFFF64ITCM_2non-cacheable64
0x000000000x0000FFFF64ITCM_3non-cacheable 
0x200000000x2001FFFF128DTCM_0non-cacheable128
0x200000000x2001FFFF128DTCM_1non-cacheable 
0x200000000x2001FFFF128DTCM_2non-cacheable128
0x200000000x2001FFFF128DTCM_3non-cacheable 
0 Kudos
Reply
1 Solution
395 Views
Henrik-Wires
Contributor III

There is one ITCM/DTCM memory regions (Instruction/Data Tightly-Coupled Memory) per core, local to the core.

The memory map is common for the whole range of CPUs so you see 4 in the memory map as that is the max number of cores in the CPU range covered by the document.

The same memory regions is also available at "backdoor" addresses for accessing the memory of a specific core.

View solution in original post

2 Replies
391 Views
danielmartynek
NXP TechSupport
NXP TechSupport

HI @liyongfeng,

danielmartynek_1-1765790974360.png

On S32K358:

  • ITCM_0 and DTCM_0 are accessible via frontdoor from CM7_0 and CM7_1 operating in lockstep mode.
  • ITCM_2 and DTCM_2 are accessible via frontdoor from CM7_2.

For details, refer to the Reference Manual, Figure 9: Block Diagram – S32K338, S32K358, S32K356, S32K348, and S32K328.

 

0 Kudos
Reply
396 Views
Henrik-Wires
Contributor III

There is one ITCM/DTCM memory regions (Instruction/Data Tightly-Coupled Memory) per core, local to the core.

The memory map is common for the whole range of CPUs so you see 4 in the memory map as that is the max number of cores in the CPU range covered by the document.

The same memory regions is also available at "backdoor" addresses for accessing the memory of a specific core.

%3CLINGO-SUB%20id%3D%22lingo-sub-2262307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K358%20memory%20map%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262307%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EWhy%20are%20the%20addresses%20of%20the%20ITCM%20blocks%20the%20same%20in%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ES32K3XX_memory_map.xlsx%3C%2FSTRONG%3E%3CSPAN%3E%3F%20The%20same%20applies%20to%20the%20DTCM%20blocks.%3C%2FSPAN%3E%3C%2FP%3E%3CTABLE%20width%3D%22851%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22137%22%3EStart%20address%3CBR%20%2F%3E%5BHex%5D%3C%2FTD%3E%3CTD%20width%3D%22127%22%3EEnd%20address%3CBR%20%2F%3E%5BHex%5D%3C%2FTD%3E%3CTD%20width%3D%2266%22%3EMax%20size%20%5BKB%5D%3C%2FTD%3E%3CTD%20width%3D%22257%22%3EDescription%3C%2FTD%3E%3CTD%20width%3D%22132%22%3ECache%20mode%3CBR%20%2F%3Eat%20Reset%3C%2FTD%3E%3CTD%20width%3D%22132%22%3ES32K358%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E0x00000000%3C%2FTD%3E%3CTD%3E0x0000FFFF%3C%2FTD%3E%3CTD%3E64%3C%2FTD%3E%3CTD%3EITCM_0%3C%2FTD%3E%3CTD%3Enon-cacheable%3C%2FTD%3E%3CTD%3E64%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E0x00000000%3C%2FTD%3E%3CTD%3E0x0000FFFF%3C%2FTD%3E%3CTD%3E64%3C%2FTD%3E%3CTD%3EITCM_1%3C%2FTD%3E%3CTD%3Enon-cacheable%3C%2FTD%3E%3CTD%3E%E3%80%80%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E0x00000000%3C%2FTD%3E%3CTD%3E0x0000FFFF%3C%2FTD%3E%3CTD%3E64%3C%2FTD%3E%3CTD%3EITCM_2%3C%2FTD%3E%3CTD%3Enon-cacheable%3C%2FTD%3E%3CTD%3E64%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E0x00000000%3C%2FTD%3E%3CTD%3E0x0000FFFF%3C%2FTD%3E%3CTD%3E64%3C%2FTD%3E%3CTD%3EITCM_3%3C%2FTD%3E%3CTD%3Enon-cacheable%3C%2FTD%3E%3CTD%3E%E3%80%80%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CTABLE%20width%3D%22851%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22137%22%3E0x20000000%3C%2FTD%3E%3CTD%20width%3D%22127%22%3E0x2001FFFF%3C%2FTD%3E%3CTD%20width%3D%2266%22%3E128%3C%2FTD%3E%3CTD%20width%3D%22257%22%3EDTCM_0%3C%2FTD%3E%3CTD%20width%3D%22132%22%3Enon-cacheable%3C%2FTD%3E%3CTD%20width%3D%22132%22%3E128%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E0x20000000%3C%2FTD%3E%3CTD%3E0x2001FFFF%3C%2FTD%3E%3CTD%3E128%3C%2FTD%3E%3CTD%3EDTCM_1%3C%2FTD%3E%3CTD%3Enon-cacheable%3C%2FTD%3E%3CTD%3E%E3%80%80%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E0x20000000%3C%2FTD%3E%3CTD%3E0x2001FFFF%3C%2FTD%3E%3CTD%3E128%3C%2FTD%3E%3CTD%3EDTCM_2%3C%2FTD%3E%3CTD%3Enon-cacheable%3C%2FTD%3E%3CTD%3E128%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3E0x20000000%3C%2FTD%3E%3CTD%3E0x2001FFFF%3C%2FTD%3E%3CTD%3E128%3C%2FTD%3E%3CTD%3EDTCM_3%3C%2FTD%3E%3CTD%3Enon-cacheable%3C%2FTD%3E%3CTD%3E%E3%80%80%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2262579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K358%20memory%20map%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F184101%22%20target%3D%22_blank%22%3E%40liyongfeng%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_1-1765790974360.png%22%20style%3D%22width%3A%20680px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_1-1765790974360.png%22%20style%3D%22width%3A%20680px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369963iFA01E3CD817EC87A%2Fimage-dimensions%2F680x430%3Fv%3Dv2%22%20width%3D%22680%22%20height%3D%22430%22%20role%3D%22button%22%20title%3D%22danielmartynek_1-1765790974360.png%22%20alt%3D%22danielmartynek_1-1765790974360.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20style%3D%22font-family%3A%20'Segoe%20UI'%3B%20font-size%3A%2014px%3B%20font-style%3A%20normal%3B%20font-weight%3A%20400%3B%20line-height%3A%2020px%3B%22%3E%0A%3CP%3E%3CSTRONG%3EOn%20S32K358%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EITCM_0%20and%20DTCM_0%3C%2FSTRONG%3E%20are%20accessible%20via%20frontdoor%20from%20%3CSTRONG%3ECM7_0%20and%20CM7_1%3C%2FSTRONG%3E%20operating%20in%20lockstep%20mode.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EITCM_2%20and%20DTCM_2%3C%2FSTRONG%3E%20are%20accessible%20via%20frontdoor%20from%20%3CSTRONG%3ECM7_2%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EFor%20details%2C%20refer%20to%20the%20%3CSTRONG%3EReference%20Manual%3C%2FSTRONG%3E%2C%20%3CEM%3EFigure%209%3A%20Block%20Diagram%20%E2%80%93%20S32K338%2C%20S32K358%2C%20S32K356%2C%20S32K348%2C%20and%20S32K328%3C%2FEM%3E.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2262417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K358%20memory%20map%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2262417%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThere%20is%20one%20ITCM%2FDTCM%20memory%20regions%20(Instruction%2FData%20Tightly-Coupled%20Memory)%20per%20core%2C%20local%20to%20the%20core.%3C%2FP%3E%3CP%3EThe%20memory%20map%20is%20common%20for%20the%20whole%20range%20of%20CPUs%20so%20you%20see%204%20in%20the%20memory%20map%20as%20that%20is%20the%20max%20number%20of%20cores%20in%20the%20CPU%20range%20covered%20by%20the%20document.%3C%2FP%3E%3CP%3EThe%20same%20memory%20regions%20is%20also%20available%20at%20%22backdoor%22%20addresses%20for%20accessing%20the%20memory%20of%20a%20specific%20core.%3C%2FP%3E%3C%2FLINGO-BODY%3E