Should the RT1021 use the FreeRTOS port ARM_CM4F or ARM_CM7?

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

Should the RT1021 use the FreeRTOS port ARM_CM4F or ARM_CM7?

Jump to solution
735 Views
rshipman
Contributor V

Hi,

Which FreeRTOS port should the RT1021 be using?

The SDK demo projects use ARM_CM4F, but there are comments in there that say that CM7 r0p1 versions should use the ARM_CM7 port. (Also I think the original SDK demos used the CM7 one a few years ago?)

The RT1021 reference manual talks about the ETM Arm CoreSight™ ETM-M7 Revision: r0p1 Technical Reference Manual.

Please clarify which port to use.

Many thanks and kind regards.

Tags (3)
0 Kudos
Reply
1 Solution
682 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Thanks @MultipleMonomials @rshipman for providing this method.

Yes, it is ARM_CM4F.

View solution in original post

2 Replies
713 Views
MultipleMonomials
Contributor IV

Hmm, in the past I used the debugger to inspect the registers of my MIMXRT1050 and it came back as a Cortex-M7 r1p1, even though the manual for this one also references "Arm CoreSight™ ETM-M7 Revision: r0p1".  So, I think that using the Cortex-M4F port is correct.

You can check it yourself by reading the CPUID register in the debugger (J-Link prints its value when connecting to the core, or you could read it manually).  Per here, the rightmost hex digit is the revision, and the sixth-from-the-right hex digit is the variant number.  For example, mine comes back as 0x411FC271, which would mean that it is r1p1.

683 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

Thanks @MultipleMonomials @rshipman for providing this method.

Yes, it is ARM_CM4F.