Problems starting from internal Flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Problems starting from internal Flash

ソリューションへジャンプ
1,838件の閲覧回数
tb89
Contributor I

Hi everybody,

 

I'm using MPC5604B on XPC56XX EVB Motherboard and XPC560B 100LQFP Minimodule.
I used RAppID Init for MPC560xB Version 1.3.0.6 to generate source Code and added it to CodeWarrior IDE (Version 5.9.0).

Also I use P&E micro USB Multilink Interface and ICDPPCNEXUS Debugger (Version 1.34.00.01) for CodeWarrior.

 

My program is using DSPI_2 to communicate with an EA DOGS102W-6 Display and also shows a simple "Hello World" on it.

I'm already able to load my program with the "Debug"-Button on RAM and internal Flash and start it with a 'go' command at the Debugger.

I changed the display for my "RAM-program" to differ it from the program on Flash.

So, I'm able to load on RAM and start that display ('go'), change program Counter to the address of Flash and also start that different display with 'go'.

 

Now I wanted to start the program without Debbuger, by just shutdown the board, unpluck the Debugger and start again.

But nothing is working and the Reset LED glows from shutdown til first reset command of Debugger.

RAppID  generated an romcopy.c file for Flash program, which I think should load from ROM to RAM.

 

Does anybody know what I need to execute my program at startup?

Do I have to turn off an option of the Debugger to just don't need the 'go' command or anything like that?

 

I appreciate any kind of help.

 

Regards,

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,536件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello Tim,

Seems to me like a startup issue. How does your startup sequence looks like? can you post e.g. Internal flash project map file generated by the linker?

Debugger script which is executed before debugger starts includes some actions which are probably not present in your startup code.

E.g.

Did you disable Watchdog timer in your startup? Watchdog  is enabled  after power on reset by default so if you are not servicing watchdog timer in your code the reset may occurs.

Is the internal SRAM initialized in your startup prior to call romcopy routines? If not then the ECC exception may occur.

Regards

Stan

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,536件の閲覧回数
tb89
Contributor I

Ok, I had to disable Watchdog. But also I now use the generatet functions from RAppID but with given Code from CodeWarrior. Now it 's working.

0 件の賞賛
返信
1,536件の閲覧回数
PatrickMenter
NXP Employee
NXP Employee

Tim,

Did you submit the issue to RAppID Support (rappid@freescale.com)? They should be able to help you in short order.

Patrick

0 件の賞賛
返信
1,537件の閲覧回数
stanish
NXP Employee
NXP Employee

Hello Tim,

Seems to me like a startup issue. How does your startup sequence looks like? can you post e.g. Internal flash project map file generated by the linker?

Debugger script which is executed before debugger starts includes some actions which are probably not present in your startup code.

E.g.

Did you disable Watchdog timer in your startup? Watchdog  is enabled  after power on reset by default so if you are not servicing watchdog timer in your code the reset may occurs.

Is the internal SRAM initialized in your startup prior to call romcopy routines? If not then the ECC exception may occur.

Regards

Stan

0 件の賞賛
返信