Programming and debugging seems to work, but nothing is done on the hardware

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

Programming and debugging seems to work, but nothing is done on the hardware

787 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nfogh on Tue Oct 18 06:36:05 MST 2011
Hi.

I am having a problem with my LPC1227 board after I installed the newest Ubuntu 11.10 and LPCXpresso 4.1.0.

When I try to debug, program or erase the flash, it seems like it progresses and completes. It even stops at the breakpoints. However, it seems that nothing is done on the chip itself. I have a logic analyzer on the chip, and it shows that the old program is running, even though LPCXpresso shows that it is stopped at a breakpoint.

I have also tried to erase the flash without programming anything, and LPCXpresso doesn't report any errors. However, after power-cycling the board, the old program still runs. So it seems that it is just some simulator that is running, and not the actual board.

Any clues?

Best regards,
  Nikolaj Fogh
0 Kudos
Reply
3 Replies

773 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nfogh on Mon Oct 24 08:01:19 MST 2011
Hi,

I found the mistake. Apart from upgrading to a new Ubuntu, I also used another programmer. On that one, I had not cut the traces to the on-board LPC1227, so I was actually programming that processor instead of my own. I didn't know this was possible, but I guess the length of the debugging cable to my own board made the LPC link choose the on-board processor instead of mine.
0 Kudos
Reply

773 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Oct 21 12:46:40 MST 2011
So just to confirm - did you use your LPCXPresso board successfully before you installed Ubuntu 11.10 / LPCXpresso 4.1.0?

Anyway, please create a fresh workspace, import and build some of the examples for your board, then post the debug log generated when you try to debug...

http://support.code-red-tech.com/CodeRedWiki/DebugLog

Please also post the file ... <workspace_dir>/.metadata/.log

Regards,
CodeRedSupport
0 Kudos
Reply

773 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fjrg76 on Fri Oct 21 09:20:15 MST 2011
Hi

Have you tried to erase the flash with a third software, like magicflash from NXP?, it's free, although I'm not shure whether it runs on Linux, but give it a try. Also you may check page 23 of:

http://ics.nxp.com/support/documents/microcontrollers/pdf/lpcxpresso.getting.started.pdf

Good lock :)



Quote: nfogh
Hi.

I am having a problem with my LPC1227 board after I installed the newest Ubuntu 11.10 and LPCXpresso 4.1.0.

When I try to debug, program or erase the flash, it seems like it progresses and completes. It even stops at the breakpoints. However, it seems that nothing is done on the chip itself. I have a logic analyzer on the chip, and it shows that the old program is running, even though LPCXpresso shows that it is stopped at a breakpoint.

I have also tried to erase the flash without programming anything, and LPCXpresso doesn't report any errors. However, after power-cycling the board, the old program still runs. So it seems that it is just some simulator that is running, and not the actual board.

Any clues?

Best regards,
  Nikolaj Fogh

0 Kudos
Reply