MPC5643L Startup

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5643L Startup

1,387 次查看
subashr
Contributor III

I am currently working with Development board KT33908MB with KTMPC5643DB (mother board and daughter board). I am trying to create a base code to switch on the led's on the mother board , operating the controller in LSM and DPM mode. I used "CW for MPC55xx and MPC56xx 2.10" to generate a code for DPM and LSM separately. In the DPM project, i configured the ports and wrote a simple code to toggle the led.

 

I flashed my DPM project and could see the led toggling with both the cores running. But once I reset the board, the software doesn't run. Again I have to flash the project to see the same output.

 

What is the startup sequence that i need to follow to have a proper boot and software run on every power cycle (without the debugger)

Original Attachment has been moved to: DPM_mode.zip

标记 (3)
0 项奖励
回复
7 回复数

1,092 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

It looks correct. Your start address is 0x448 for this program. after reset you must always start here.

So all the time after reset you starts here?

Peter

0 项奖励
回复

1,092 次查看
subashr
Contributor III

Hi,

   Upon power ON, and debugger connect, the reset script of the PE micro runs and i get the below window (pointer is  at address 0x448), where the controller is detected in DPM mode and the selected macro has run. Now when i run the software, it says "No Information Loaded".   Core 0 status shows as in debug mode and core 1 status is at reset.

pastedImage_6.png

If you do not mind, could you please tell me the step by step procedure you did to flash my program and test in your micro. I feel i am missing something while flashing the software.

0 项奖励
回复

1,092 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I can tell you my procedure, however I am using highly advance debugger from Lauterbach. When everything is programmed by me. (loading scripts)

So I have feeling this will have no value for you as you are using low cost PEMicro.

Core0 running and core1 in reset is correct behavior after reset.

Is your code running in standalone mode? (without debugger)

Peter

0 项奖励
回复

1,092 次查看
petervlna
NXP TechSupport
NXP TechSupport

Ok, and what address do you see right after reset from debugger?

is it 0xFFFFxxxx - BAM area?

Because I am able to run your code here on my micro without issues. You should be on address 0x37C.

Is your micro in DPM mode?

0 项奖励
回复

1,092 次查看
subashr
Contributor III

This is what i observe on reset,

pastedImage_1.png

I used the reset script algorithm from PE. 

0 项奖励
回复

1,092 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

I have tested your code.

It is working as expected. After reset program starts at __start label.

Are you in internal boot mode?

make sure that FAB is set to 0.

pastedImage_1.png

Peter

0 项奖励
回复

1,092 次查看
subashr
Contributor III

Hi,

   I have the FAB at 0 only. I have shorted the 1-2 pin of the jumper according to the below picture.

pastedImage_1.png

0 项奖励
回复