Magnus Lundin escreveu:
Alain M. wrote:
Zach Welch escreveu:
I am new to this list and the second motive that I am here is this:

When I use OpenOCD to write a flash (CortexM3) the second Serial port of the FT2232D has it's baudrate changed. (OpenOCD 1.0, FTDI's lib, on Linux)
This is new, AFIK, but it can be investigated. Still tour description is a bit vague.

When does the second port change its baud rate?
When Open OCD connects to the target, while writing to flash, when disconnecting , on reset of the target ... ????

Is this an external adapter or an onboard ft2232 chip on a LMI board ?'
It is an external board, clone of a Turtelizer2 <http://www.ethernut.de/en/hardware/turtelizer/>, connected to a new board I designed, all very basic. Nothing else in-between or connected to the jtag pins. (no TRST exists, only a pullup), CortexM3 LM3S6965.

Another guy that is working with me said that the same thing happens on the LMI board and the OlimexJtagTiny, and with ARM7/ARM9, but that is harder to test. (Not all combinations have been used...)

I am using OpenOCD 1.0, but I am not sure of the SVN version because there is another bug there and it is not getting printed. (I did not compile it myself)
It is important to know the the sequence of OpenOCD command and when and how you notice changes in the baudrate of the second port.
This is hard to say, can you orient me on a methodology for finding it ?

Just in case it helps, here are my configs and scripts (stripped of comments)
----------- cfg ---------
telnet_port 4444
gdb_port 3333
interface ft2232
ft2232_device_desc "Turtelizer JTAG/RS232 Adapter A"
ft2232_layout "turtelizer2"
ft2232_vid_pid 0x0403 0xbdc8
jtag_device 4 0x1 0xf 0xe
daemon_startup reset
target cortex_m3 little run_and_init 0
reset_config srst_only separate
working_area 0 0x20000000 0x4096 nobackup
jtag_speed 10
target_script 0 reset ../../../scripts/grava-flash-lm3s6965.script
flash bank stellaris 0 0 0 0 0
---------- script ----------
halt
sleep 20
wait_halt
flash probe 0
sleep 50
flash info 0
sleep 50
flash erase_sector 0 0 255
sleep 20
flash write_binary 0 main.bin 0
sleep 200
reset run
shutdown
----------------------------

I can checkout / complile a particular version without problem... if I only fing which one to use ;-)

thanks,
Alain
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to