Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Sun, May 24, 2009 at 11:10 PM, Michael Fischer fische...@t-online.de wrote: Hello Xiaofan, I have tesed to flash the program here. I could flash it with my ft2232 device. I do not check the functionality of the program itself, LED1 was flashing. And you can switch on/off LED 2 by pressing

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Mon, May 25, 2009 at 7:31 PM, Xiaofan Chen xiaof...@gmail.com wrote: I will try with the J-Link V6 a bit later and report. Somehow 1906 can not connect to my J-Link V6 with your script. mc...@ubuntu904:~/Desktop/build/openocd/jlinkv6$ openocd -f jlink.cfg Open On-Chip Debugger

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Mon, May 25, 2009 at 7:43 PM, Xiaofan Chen xiaof...@gmail.com wrote: I will try with the J-Link V6 a bit later and report. Somehow 1906 can not connect to my J-Link V6 with your script. With the simple script, V1906 can talk to J-Link V6. It seems to work with your simple LED 1/2 blinking

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Mon, May 25, 2009 at 8:02 PM, Xiaofan Chen xiaof...@gmail.com wrote: With the simple script, V1906 can talk to J-Link V6. It seems to work with your simple LED 1/2 blinking hex file. I tried both jlink_hw_jtag 2  or 3. More tests to follow. But it still does not work with the lpcusb isoc

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Mon, May 25, 2009 at 8:09 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Mon, May 25, 2009 at 8:02 PM, Xiaofan Chen xiaof...@gmail.com wrote: With the simple script, V1906 can talk to J-Link V6. It seems to work with your simple LED 1/2 blinking hex file. I tried both jlink_hw_jtag 2  or 3.

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Sun, May 24, 2009 at 5:59 PM, Michael Fischer fische...@t-online.de wrote: But it could be possible that the J-Link had a problem too. From all the tests, it seems to me that it is a J-Link problem. It seems to me that you can flash the LPC-2148 with ft2232 interface or with the Segger

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Mon, May 25, 2009 at 8:13 PM, Xiaofan Chen xiaof...@gmail.com wrote: With the simple script, V1906 can talk to J-Link V6. It seems to work with your simple LED 1/2 blinking hex file. I tried both jlink_hw_jtag 2  or 3. More tests to follow. But it still does not work with the lpcusb isoc

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-25 Thread Xiaofan Chen
On Mon, May 25, 2009 at 9:56 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Mon, May 25, 2009 at 9:46 PM, Xiaofan Chen xiaof...@gmail.com wrote: But it still does not work with the lpcusb isoc hex file. According to vbindiff report of the dump file, the first 0x160 portion of the dump is not

[Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Michael Fischer
Hello Xiaofan, I have not tried to use flashing so far. So today I tried to learn how to flash the LPC2148 on board of the Olimex LPC-P2148. I tried to halt the target and then use flash write_image isoc_io_sample.hex 0x0 ihex but this does not seem to work. Here I have a Olimex LPC-P2148

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Xiaofan Chen
On Sun, May 24, 2009 at 4:08 PM, Michael Fischer fische...@t-online.de wrote: Here I have a Olimex LPC-P2148 board too, tested with a FT2232 device under windows, with the r1893. For testing, I have a short hex file, called test_rom.hex 1) flash write_image test_rom.hex 0x0 2) dump_image

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Magnus Lundin
Hi This looks like a reset problem, not a write to flash problem. This is the type of problems we are trying fix with the latest jtag/jlink/ft2232 patches. What is the target configuration. Best regards Magnus Xiaofan Chen skrev: Relative long email. I have not tried to use flashing so

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Xiaofan Chen
On Sun, May 24, 2009 at 5:02 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sun, May 24, 2009 at 4:42 PM, Xiaofan Chen xiaof...@gmail.com wrote: I am using the following simple script and J-Link V3. I will try yours as well. With your script (replace with JLink) it seems to be ok. Thanks.

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Xiaofan Chen
On Sun, May 24, 2009 at 4:42 PM, Xiaofan Chen xiaof...@gmail.com wrote: I am using the following simple script and J-Link V3. I will try yours as well. With your script (replace with JLink) it seems to be ok. Thanks. Occasionally there are some timeout though.

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Xiaofan Chen
On Sun, May 24, 2009 at 5:04 PM, Magnus Lundin lun...@mlu.mine.nu wrote: Hi This looks like a reset problem, not a write to flash problem. This is the type of problems we are trying fix with the latest jtag/jlink/ft2232 patches. What is the target configuration. Here it is. source [find

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Michael Fischer
Hello Xiaofan, With your script, I can flash the files and I can halt the target. However the flashing is apparently not correct as it does not work. Using lpc21isp it works. first of all I think it is a checksum problem which control a valid user code. Take a look in the LPC2148 user manual. In

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Michael Fischer
Hello list, now I could reproduce the problem here with the original Olimex BLINK example. It will not work, the problem is the checksum. The startup code looks like: _vectors: ldr PC, Reset_Addr ldr PC, Undef_Addr ldr PC, SWI_Addr

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Xiaofan Chen
On Sun, May 24, 2009 at 7:03 PM, Michael Fischer fische...@t-online.de wrote: Attached is the main.hex file which should work with the lpc2148 without the calc_checksum key. LED1 and LED2 are flashing. Yes this works well with my V3 Black Jlink. The two LEDs are flashing now. I updated to the

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Xiaofan Chen
On Sun, May 24, 2009 at 8:55 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sun, May 24, 2009 at 7:03 PM, Michael Fischer fische...@t-online.de wrote: Attached is the main.hex file which should work with the lpc2148 without the calc_checksum key. LED1 and LED2 are flashing. Yes this works

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Michael Fischer
...@gmail.com] Gesendet: Sonntag, 24. Mai 2009 16:02 An: Michael Fischer Cc: Openocd-Dev; z...@superlucidity.net Betreff: Re: [Openocd-development] Correct script to flash the lpc-2148 On Sun, May 24, 2009 at 8:55 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sun, May 24, 2009 at 7:03 PM, Michael Fischer

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-24 Thread Xiaofan Chen
On Sun, May 24, 2009 at 11:10 PM, Michael Fischer fische...@t-online.de wrote: Hello Xiaofan, I have tesed to flash the program here. I could flash it with my ft2232 device. I do not check the functionality of the program itself, LED1 was flashing. In my test, LED 1 is also flashing. The USB

[Openocd-development] Correct script to flash the lpc-2148

2009-05-23 Thread Xiaofan Chen
Relative long email. I have not tried to use flashing so far. So today I tried to learn how to flash the LPC2148 on board of the Olimex LPC-P2148. I tried to halt the target and then use flash write_image isoc_io_sample.hex 0x0 ihex but this does not seem to work. Then I tried to use the

Re: [Openocd-development] Correct script to flash the lpc-2148

2009-05-23 Thread Xiaofan Chen
On Sun, May 24, 2009 at 11:18 AM, Xiaofan Chen xiaof...@gmail.com wrote: After this error, I have to unplug everything and then use lpc21isp to flash the target so that I can run OpenOCD again with J-Link V3. I know the hex is correct since the target works when flashing with lpc21isp. The