Hard reset target when flashing.

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

Hard reset target when flashing.

1,388件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by matys4877 on Tue Sep 29 07:21:51 MST 2015
Hi.
I'm writing program for the LPC54102. It uses both cores.  I noticed that after using "Flash Program" button uc is not booting. I must then click on reset button on LPCXPresso evaluation board. Problem occurs also in LPCOpen multicore blink example.  I also noticed that I can restart uc using crt_emu_cm_redlink program with "--reset hard" command. This command not working when RedLink Server is active so i must close it through LPCXpresso.

So to program i must:
- Use "Program Flash" button to load firmware to uc.
- Use "Kill server" button to close RedLink Server
- Use "crt_emu_cm_redlink --reset hard" command in terminal
Then program boots properly.

Is it possible to cause hard reset after flashing new firmware automatically? I tried adding "--reset hard" to Additional Options in "Program Flash" window but it's not working.

My system is Ubuntu 14.04
LPCXpresso 7.9

When I use only 1 master core there is no problem.

Best regards
Mateusz
0 件の賞賛
返信
3 返答(返信)

1,270件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Oct 01 13:23:40 MST 2015

That can work too. Most people prefer to avoid the Redlink Server console.

Thanks and regards,
LPCXpresso Support
0 件の賞賛
返信

1,270件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by matys4877 on Thu Oct 01 12:03:39 MST 2015
Nice solution. I didn't notice change in 'flash-load-exec'. Now it's working well. In meantime i found another better way to restart uc. You must paste

WireHoldReset 1 0
WireHoldReset 1 1

to redlink server console in eclipse.

Thanks for help.
Mateusz
0 件の賞賛
返信

1,270件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Oct 01 11:28:54 MST 2015

A problem has been identified with flash operation using the Flash Dialog generated command-line. You'll notice two command-line changes when the 'Reset target on completion' check box is selected. First the '-flash-load' option changes to 'flash-load-exec'. Second is the addition of the '-reset=vectreset' option.

We'll investigate a fix. In the meantime, you can get the behavior you want by using the the stub from the command-line, minus the '-reset=vectreset' option. Note that the reset type defaults to VECTRESET for this part in either case, so there's no reason to specify.

Here's an example command-line without the '-reset' option:

crt_emu_cm_redlink.exe -flash-load-exec "C:\Users\matys4877\Documents\lpcopen_2_14_1_lpcxpresso_lpcxpresso_54102\multicore_m4master_blinky\Debug\multicore_m4master_blinky.axf" -g -2 -vendor=NXP -pLPC54102J512 -flash-driver=LPC5410x_512K.cfx


Thanks and regards,
LPCXpresso Support
0 件の賞賛
返信