5748G mcu initialization time

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

5748G mcu initialization time

702 Views
jacst
Contributor II

hi,

We use MCAL 4.2.2 to develop the 5748G driver. According to the integration manual, we call the MCU-related functions. The function is normal, but we find that it takes 1s to execute these 4 functions, which is too long? is this normal? We are expecting a reply.

捕获.PNG

0 Kudos
6 Replies

690 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

it takes 1s to execute these 4 functions

Could you share the method you used for measurement? Was it instruction execution tracing by some advance debugger?

Best regards,

Peter

0 Kudos

689 Views
jacst
Contributor II

Hi@petervlna

we used an LED, and measured the time when the LED was on with an oscilloscope, as the time when the MCU initialization function was executed.

1.PNG

0 Kudos

695 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Yes, 1s execution of AUTOSAR MCU config is in my opinion expected. But this is configuration dependent.

For more precise execution time have a look at AUTOSAR_MCAL_MCU_ProfileReport.xlsx which is part of MPC574XG_MCAL4_2_RTM_1_0_0_QualityPackage.zip located on our web page:

https://www.nxp.com/design/automotive-software-and-tools/autosar/autosar-4-2-x-classic-platform-soft...

Best regards,

Peter

0 Kudos

693 Views
jacst
Contributor II

Hello,@petervlna
1s is too long and does not meet the requirements. We checked the ProfileReport and found that it took no more than 1ms to execute 4 functions. Does this mean there is something wrong with  MCU configuration project? Can you give some suggestions or references? We are expecting a reply.
Best regards,

0 Kudos

648 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Not sure here. Yes, you are right the MCU init takes 1ms according to validation.

But as MCU is wating for PLL to stabilize and there can be delays depending on HW.

Are you using NXP evaluation board or some custom one?

If you change the MCU configuration to run from IRC, do you see any delay?

Best regards,

Peter

0 Kudos

630 Views
jacst
Contributor II

hi @petervlna,

I am using our own hardware, we initialized the MCU in Bootloader and set the PLL, we commented out Mcu_InitClock, Mcu_DistributePllClock in the APP, and found that the time will be smaller. Does this mean a problem with our MCAL MCU configuration?

44.PNG

0 Kudos