Bare metal dual-core code that can boot and reach the main function in GHS using the MCAL package

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

Bare metal dual-core code that can boot and reach the main function in GHS using the MCAL package

958 Views
VivekArivazhagan
Contributor II

Hi @nxp 

 

We have currently working on Multicore booting S32k322 MCU in following packages in GHS  SW32K3_S32M27x_RTD_4.4_4.0.0_P24.

 

Failure Case:

When attempting dual-core execution in GHS, we are facing issues with both cores running properly. The summary is as follows:

  1. We took “SW32K3_S32M27x_RTD_4.4_4.0.0_P24” base for GHS initialization and proved out for single core, The same base was working for dual core like how we did for GCC.
  2. We removed all the components and try to run, But the system was not even entering main function,
  1.       Observation:
    1. 1. Sometimes core1 was entering main function and core0 was stuck in a loop.
    2. 2. The alternate core will enter hard fault we try to run any core
  1. The only change between GHS and GCC was only the startup file(assembly) and we haven’t touch anything in the startup since it was shared as MCAL package.

Please help us on this, since the startup file is part of the MCAL package and we are not authorized to modify or touch anything inside the MCAL SIP.

 

We requested SW32K3_S32M27x_RTD_4.4_4.0.0_P24 - Bare metal dual-core code that can boot and reach the main function in GHS using the MCAL package.

 

Thank you!

Vivek Arivazhagan

Tags (1)
0 Kudos
Reply
5 Replies

899 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @VivekArivazhagan,

Can you share the project so that we can test it?

If you don't want to share it here, please create a support ticket.

 

Regards,

Daniel

0 Kudos
Reply

880 Views
VivekArivazhagan
Contributor II

Hi @danielmartynek 

 

Please find the project 

Tags (1)
0 Kudos
Reply

714 Views
VivekArivazhagan
Contributor II

Hi @danielmartynek ,

 

Do we have any update on this above discussion?

 

Thanks,

Vivek Arivazhagan

0 Kudos
Reply

701 Views
jiri_kral
NXP Employee
NXP Employee

Hi Vivek, 

I'm in touch probably with your colleague Karthik. In attachment is test project build with GHS 2019.14. 

0 Kudos
Reply

677 Views
VivekArivazhagan
Contributor II

Hi @jiri_kral ,

Thanks for sharing. Based on our observation, the project currently has a dual setup with two projects, two ELF files, and two startup files. However, our expectation is to have a single project with one startup file and a single ELF file, with all source files managed within GHS.

Kindly help us with this. You may either make the necessary changes to the project we shared for your reference or provide a version that meets these expectations.

Note: we are stuck with how to wait core 1 until core 0 initialized. kindly support on this also

Thanks,

Vivek Arivazhagan

.

Tags (1)
0 Kudos
Reply