change mpc5746r code addr

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

change mpc5746r code addr

580 Views
新股老菜
Contributor II

Hi

 Below the project. i want to start form core1 and SW  place in 0XFA0000,when i use T32 to debug,it can running .but disconnect the T32 and power on again, it can't run(can use the t32 attach function to check the core1 is resetting)

0 Kudos
2 Replies

465 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Your RCHW looks correct.

If you are able to boot first time and get out of BAF to your startup then its ok.

Do you disable SWT_1 or do you service it?

Because I can see from your startup that SWT_1 disable is conditioned as follow:

#if defined(DISABLE_SWT1)

It looks like enabled and not serviced SWT_1 is causing your resets.

Peter

0 Kudos

465 Views
jamesmurray
Contributor V

I had a quick look in your code.

The created ELF file has the following:

Contents of section .rchw:
 f9c000 005a0008                             .Z..            
Contents of section .cpu1_reset_vector:
 f9c014 00fa0000                             ....            
Contents of section .startup:
 fa0000 709fe405 7088c000 70780520 54640010  p...p...px. Td..

I compared to code I have and it looks ok I think?

James

0 Kudos