LCP1778 entering boot loader

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

LCP1778 entering boot loader

1,266件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Alex.araujo on Tue Apr 17 17:21:47 MST 2012
I have a new board which I just started to debug. I am using Keil with a ULink2. The problem is that the uP is mapping the boot loader to address 0x0 (MEMMAP: 0x400FC040 is 0x00). P2[10] is high, I even checked at the gpio2.fiopin address to make sure.

At first I thought it was the ULink2 that was not setting MEMMAP to 1, but even without the JTAG the board enters the boot loader. If I set the MEMMAP to 1 and the PC-counter to 0xF8 (via ULink2) and run, the program runs normally.

Regards,
Alex
0 件の賞賛
返信
6 返答(返信)

1,214件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Alex.araujo on Wed Apr 18 07:04:47 MST 2012
Yes it is a home made custom board.

The P2.10 pin is directly connected to Vcc.

Btw, new test show that the board only enters the boot loader when the JTAG is connected. Without the JTAG it runs perfectly.
0 件の賞賛
返信

1,214件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Wed Apr 18 06:00:41 MST 2012
So the question is again :rolleyes:

What is that 'new board'? Custom made?

If your P2.10 pullup is too slow, you will enter ISP mode. Did you scope P2.10 and Reset while you power up your board?
0 件の賞賛
返信

1,214件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Alex.araujo on Wed Apr 18 05:18:14 MST 2012
Sorry, I made a mistake. The checksum is in place. It´s just that when I set MEMMAP to 1 I needed to refresh the memory view at address 0 to see the map change.

So P2[10] is high and the checksum is there, yet the processor insists in entering the boot loader (MEMMAP is 0).
0 件の賞賛
返信

1,214件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Alex.araujo on Wed Apr 18 05:11:44 MST 2012
Zero, it is a new custom board. We are programming the flash using the Keil MDK.

Mike, I know about the checksum, and I thought that the Keil tool did this automatically. The same program we load into our board I can compile and run without problems on Keil´s LPC1768 development board. On Keil´s board I see the checksum, and on ours I do not. How would I go about adding this checksum manually?

We are trying to add RS232 to UART0 in order to try out Flash Magic.
0 件の賞賛
返信

1,214件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by MikeSimmonds on Tue Apr 17 21:29:04 MST 2012
There is a rom boot requirement that unused vector 7 (the eighth one) is a twos compliment checksum of the first seven vectors.

The tool chains do not compute this, but the debugger (LPCXpresso) and, I think FlashMagic, do set this for you.

If you are programming your flash directly, then maybe this checksum is absent or invalid.

The user manual for the part explains this.

Cheers, Mike
0 件の賞賛
返信

1,214件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Apr 17 17:44:13 MST 2012
What is that 'new board'? Custom made? Is there a valid program in flash already or is it also new?
0 件の賞賛
返信