Hi Nemuisan.
On Tue, 24 Feb 2015 11:39:26 +0000 (UTC), [email protected] wrote:
> Nemui Trinomius ([email protected]) just uploaded a new
> http://openocd.zylin.com/2555
>
> lpc2000: Add LPC407x/8x flash size auto detection
> This patch adds auto flash size detection for LPC407x/8x series.
>
> Tested on below listed chips.
> LPC4088
> LPC1788(regression test)
I started doing code-review on this patch and as a part of this review, I
decided to try out the patch.
It builds fine on Mac/PPC.
I tested with LPC1788, but I'm not sure the auto-detection is working on my
chip revision.
---8<-----8<-----8<-----
$ openocd -c 'telnet_port 4444' -f interface/ftdi/jtag-lock-pick_tiny_2.cfg -c
"transport select swd" -f target/lpc1788.cfg
Open On-Chip Debugger 0.9.0-dev-00313-gdb8029b (2015-02-25-21:37)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : FTDI SWD mode enabled
swd
adapter speed: 10 kHz
adapter_nsrst_delay: 200
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Info : clock speed 10 kHz
Info : SWD IDCODE 0x2ba01477
Info : lpc17xx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection on tcp/4444
--->8<----->8<----->8<-----
> flash banks
#0 : lpc17xx.flash (lpc2000) at 0x00000000, size 0x00000000, buswidth 0,
chipwidth 0
--->8----->8----->8-----
-Should "flash banks" not respond with the detected size ?
... I tried a -d3 log; here's the part of it revealing my LPC1788's cpuid:
Debug: 289 224 target.c:2068 target_read_u32(): address: 0xe000ed00, value:
0x412fc230
Debug: 290 224 cortex_m.c:1825 cortex_m_examine(): Cortex-M3 r2p0 processor
detected
Debug: 291 224 cortex_m.c:1826 cortex_m_examine(): cpuid: 0x412fc230
Debug: 296 241 target.c:2068 target_read_u32(): address: 0xe0002000, value:
0x00000261
Sadly, I'm not able to send email to <[email protected]> - yes, I
did whitelist your email address on my server a long time ago, but never
received any mail from you. I have no idea why I can't send you mail, though.
(Perhaps I could convince you to join the ARM Connected Community ?
community.arm.com)
Love
Jens
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel