Hello @danielmartynek
I am running code to blink an LED. I want to verify the Bootup Delay on it.
Actually, how much time it will take to jump to Application, when we normally Reset the MCU.
Actually I am achieving 4.22ms, for your kind reference I have attached Logic Analyzer image.
I hope you will correlate my doubts.
One more Doubts @danielmartynek
Will you clarify my one Doubts, on S32K1xx Data Sheet in Page no. 43 Flash Timing Specification for (Program Section execution time) (1KB flash) is 5ms.
So when the Micro-controller is Powered, does it is taking 5ms to jump into the Application Program?
For you kind reference I took snap from the datasheet. I hope you will check Flash Timing Specifications Image for it.
I hope to hear from you Soon
BR
Nibesh
Solved! Go to Solution.
You can use J15, it powers the MCU regardless of the USB/12V, 5V/3V3 configuration.
Regards,
Daniel
Hi @Nibesh,
The boot process is explained in the RM, Section 25.3.3 Boot sequence.
It takes 325us from the point VDD reaches 2.7 V to execution of the first instruction across the operating temperature range of the chip.
Then, it is given by the execution time of the custom SW that jumps to the application from the bootloader.
Program Section execution time (1KB flash) is time that the FTFC takes to program 1KB of flash, it has nothing to do with the boot process.
Regards,
Daniel
Hello @danielmartynek
I am achieving 4.2 milli seconds after POR.
Where is the Problem on my side.
If you have any code that I have to run, you can please recommend me?
Hello @Nibesh,
From the start of the execution of the reset routine to the LED driving, the MCU is being initialized.
This includes the startup code and your main.c configuration.
For example, the Clock driver will wait for SOSC clock to be validated, for PLL to be locked etc.
And these all adds up to the 4.2ms you see.
Regards,
Daniel
Hi @danielmartynek
Thank you very much Daniel for your response.
Daniel is there any ways or calculations that we can prove theoretical?
If you can help me to prove theoretical that will be more helpful for me.
I hope to hear from you soon!
Thank you
If you use the RTD drivers, you can refer to the RTD Quality Package, which can be downloaded from the webpage where you can find the RTD drivers. The package includes the average execution time for each function. But in the end, you need to validate the startup time in your application.
Regards,
Daniel
Hello @danielmartynek
J104
2-3 (Default)
Reset signal direct to the MCU, use
to reset S32K146.
J107
2-3 (Default)
S32K146 powered by USB micro
connector.
J10
2-3 (Default)
VDD voltage is connected to 5 V
My Connection is like this @danielmartynek
Which pin should I take for VDD if my VDD is 5V?
I have attached Pic for your reference
You can use J15, it powers the MCU regardless of the USB/12V, 5V/3V3 configuration.
Regards,
Daniel
Thank you @danielmartynek
I will check and update you soon regarding it.
BR
Nibesh