startup sequence of S12

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

startup sequence of S12

932 Views
everkimage
Contributor IV

   Hi,everyone:

   I am a new hand for S12 serial MCU,there are a lot of meterials i need to read.

   But right now,i really want to know the startup sequence of S12(such as MC9S12).

   Cause i'm reading the source code of the officail bootloader project,and do some research In the memory map,but i do not know how the mcu goto the _BootStart,and who init the code,data,bss segment(_BootStart just run into main without init segments).

   please,best wishes.

Labels (1)
0 Kudos
4 Replies

747 Views
everkimage
Contributor IV

I get the data init code from official app project,but i still do not know how mcu run into _BootStart.

0 Kudos

747 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

Do you mean AN4258 Serial Bootloader for S12(X)?

https://www.nxp.com/files-static/microcontrollers/doc/app_note/AN4258.pdf

The code is in Bootloader project in StartS12X.s file.

The _BootStart includes the code of jumping to application.

"After reset, the bootloader enables the pull-up resistor on pin PP0 and reads the status of pin PP0 to find out if you want to execute the bootloader or the user application."

I hope it helps.

Best Regards,

Diana

0 Kudos

747 Views
everkimage
Contributor IV

Hi Diana:

Actually i want to know the process of the cold boot of MCU.

For example,When arm core mcu power on,it get 4 bytes of address 0 for sp,and 4 bytes of address 4 for ip,then start to execute.

0 Kudos

747 Views
kef2
Senior Contributor IV

https://www.nxp.com/docs/en/reference-manual/S12CPUV2.pdf

see reset vectors, exception processing etc

0 Kudos