Free RTOS on M33 core of the i.mx95

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

Free RTOS on M33 core of the i.mx95

673 Views
arshad_embedded
Contributor I

Please suggest me on bringing up the Free RTOS on M33 core of the i.mx95. Also help me on finding the port for the debug console of the m33 core. Since I only see one COM port being shown under the Device manager (Windows PC) . Also needed help on accessing the m33's debug console such that to verify the free rtos in running in the particular m33 core of i.mx95 board

 

0 Kudos
Reply
11 Replies

618 Views
arshad_embedded
Contributor I

Thank you @danielchen for the response.
Can you please help me with the .dts file for the m33 core for the i.mx95. Since manually copying the RTOS .elf file into the u-boot is not happening (to load free RTOS into the m33core).
Please help me in this case

0 Kudos
Reply

567 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi arshad:

 

The CM33 in imx95 is for system manager.

I would suggest you run FreeRTOS in Cortex-M7 core.

We have examples in SDK.

 

Regards

Daniel

0 Kudos
Reply

554 Views
arshad_embedded
Contributor I

HI @danielchen , thank you for the quick response and suggestion.

Can you please help me locating/giving the ITCM or DDR reserved memory address (of M7) such that the 'freeRTOS hello world' .bin can be loaded into the M7 core of the i.MX95.

Or kindly help me with the guide for flashing/loading the .bin file into the cortex M7 core of the i.MX95.

Thanks & Regards,

Arshad.

0 Kudos
Reply

549 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @arshad_embedded 

For flashing/loading the .bin file into the cortex M7 core of the i.MX95,  please refer to UG10163,  i.MX Linux User's Guider

 

danielchen_0-1755670059626.png

 

 

Regards

Daniel

0 Kudos
Reply

536 Views
arshad_embedded
Contributor I

HI @danielchen , Thank you very much for the detailed take up and I really appreciate it.
I Just followed the same instructions from the UG10163 document and still having the issue as logged in the below:

Normal Boot
Hit any key to stop autoboot: 0
u-boot=> ext4load mmc 1:1 0x90400000 rpmsg_lite_pingpong_rtos_linux_remote.bin
34856 bytes read in 2 ms (16.6 MiB/s)
u-boot=> cp.b 0x90000000 0x203c0000 ${filesize}
"Error" handler, esr 0xbe000011
elr: 00000000902a97a8 lr : 00000000902a989c (reloc)
elr: 00000000ff5a47a8 lr : 00000000ff5a489c
x0 : 00000000203c0000 x1 : 0000000090000000
x2 : 0000000000008828 x3 : 0000000000000040
x4 : 000009a1000009a1 x5 : 0000000000000000
x6 : 00000000203c0000 x7 : 0000000000000044
x8 : 0000000000000010 x9 : 0000000000000008
x10: 0000000000000000 x11: 00000000fd516880
x12: 0000000000000002 x13: 0000000000000200
x14: 00000000ffffffff x15: 00000000fd4ef328
x16: 00000000ff515540 x17: 0000000000000000
x18: 00000000fd4fad40 x19: 0000000000000001
x20: 00000000fd50fda0 x21: 00000000203c0000
x22: 0000000090000000 x23: 0000000000000000
x24: 0000000000000000 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 00000000fd514190 x29: 00000000fd4ef190

Code: eb03005f 540001e1 d65f03c0 f8636824 (f8236804)
Resetting CPU ...

resetting ...

 

Then also tried in changing the address just to be in the range and below are the logs for it:

Normal Boot
Hit any key to stop autoboot: 0
u-boot=> ext4load mmc 1:1 0x90400000 rpmsg_lite_pingpong_rtos_linux_remote.bin
34856 bytes read in 1 ms (33.2 MiB/s)
u-boot=> cp.b 0x90400000 0x94000000 ${filesize}
u-boot=> bootaux 0 1
## Auxiliary core is already up
u-boot=>

Kindly help in landing into the M7 core and run free RTOS on it.

 

Thanks & Regards,

Arshad.

0 Kudos
Reply

494 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @arshad_embedded 

I tried this on my imx95 EVK board,  it works on my side.

danielchen_0-1755773014903.png

Then in M7 console, I can see  

danielchen_1-1755773066132.png

The UBOOT version is 202504.

 

 

Regards

Daniel

0 Kudos
Reply

482 Views
arshad_embedded
Contributor I

Hi @danielchen 

Thank you for the detailed and practical response.

It did not work for me that way. I am using imx95 of the Variscite's DART MX95 believing that i.mx95 is same across.
Please help me with any additional suggestion/input for bringing the free rtos on the M7 core

Thanks & Regards,

Arshad.

0 Kudos
Reply

449 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @arshad_embedded 

 

what it is the changes you made in your SM and UBOOT?

 

Regards

Daniel

0 Kudos
Reply

352 Views
arshad_embedded
Contributor I

Hi @danielchen 
Thank you for the response and apologies for the late come back.

I have made no changes with respect to SM and Uboot. The image is taken directly from the Variscite's website for the i.mx95 based DART-MX95. 

Kindly help us with the input of loading a sample hello world free rtos into the M7 core.

 

Thanks & Regards,

Arshad. 

0 Kudos
Reply

284 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @arshad_embedded 

DART-MX95 is from our partner,   there maybe some changes to SM/UBOOT, but I don't know the details.

I would suggest you get support from below link

DART-MX95 : NXP iMX95 System on Module (SoM) / Computer on Module

 

Regards

Daniel

0 Kudos
Reply

656 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @arshad_embedded 

 

According to NXP's AN14120 

i.MX95 has 4 COM ports via FT4232H USB-to-UART bridge (connected via USB-C port J31)

Port Mapping:

  • COM1 → Cortex-M7
  • COM3 → Cortex-A55
  • COM4  Cortex-M33

I would suggest you flash the latest firmware and try it again.

 

Regards

Daniel

0 Kudos
Reply