Simple default project in MCUXpresso v11.7.0
LPC810 SDK 2.9.0
This is a bare chip: it's not an evaluation kit board. The chip is LPC810M021FN8.
When I try to debug this program with gdb on the command line, using the J-Link GDB Server as the backend, I get the following:
(gdb) load
Loading section .text, size 0x238 lma 0x0
Start address 0x00000000, load size 568
Transfer rate: 554 KB/sec, 568 bytes/write.(gdb server) Downloading 568 bytes @ address 0x00000000
Writing register 'pc' = 0x00000000
ERROR: RAM area configured for this target is too small(gdb) monitor reset
Resetting target(gdb server) Received monitor command: reset
Resetting target(gdb) mon step
(gdb server) Received monitor command: step
Performing single step...
...Target halted (DBGRQ, PC = 0x1FFF00C4)
This PC seems to crop up a lot. Every time I load a different program and try to step through after a reset, I get the same address. I also tried a different LPC810 chip, and it behaves the same way. The error about the RAM size too small is consistent, too. I'm using the default configuration as much as possible, except I've selected "Optimize for size" so everything will fit in the flash.
Solved! Go to Solution.
Nevermind. I had the ISP pin (pin 5) grounded when trying to run the program. Disconnecting the pin and resetting the chip allowed the program to run as expected. Sorry for the interruption.
Nevermind. I had the ISP pin (pin 5) grounded when trying to run the program. Disconnecting the pin and resetting the chip allowed the program to run as expected. Sorry for the interruption.