Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse and OpenOCD and STM32(Eclipse and OpenOCD and STM32)
Eclipse and OpenOCD and STM32 [message #676354] Fri, 03 June 2011 21:22
No real name is currently offline No real nameFriend
Messages: 1
Registered: June 2011
Junior Member
I am trying to use the Eclipse platform with OpenOCD v1.0 and an Olimex ARM-USB-OCD debugger to operate the Olimex MOD-MP3-X development board which has the STM32F103RBT6 Cortex-M3 microcontroller. I am trying to have it run the demo project "stm32f103-stk". My project builds fine in Eclipse, but I run into trouble when I try to run it with the option "OpenOCD for STM32". The following shows on the console when I run it:

Open On-Chip Debugger 1.0 (2008-10-15-13:12) svn:exported
$URL: svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): jtag_speed: 40, 40
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-15-13:12) svn:exported
Error: ft2232.c:235 ft2232_read(): couldn't read the requested number of bytes from FT2232 device (0 < 81)
Error: ft2232.c:379 ft2232_send_and_recv(): couldn't read from FT2232


It uses the executable file "openocd-r555-ftd2xx.exe" which was downloaded off of the disc that came with the ARM-USB-OCD debugger. It also uses the following configuration file: armusbocd.cfg

#daemon configuration
telnet_port 4444
gdb_port 3333


#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG B"
ft2232_layout jtagkey
jtag_speed 40
# jtag_khz 500

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst


#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e


#target configuration
daemon_startup reset


#target <type> <startup mode>
#target cortex_m3 <endianness> <reset mode> <chainpos> <variant>
target cortex_m3 little run_and_halt 0
run_and_halt_time 0 30


# working_area 0 0x20000000 16384 nobackup


#flash bank <driver> <base> <size> <chip_width> <bus_width>
flash bank stm32x 0x08000000 0x00010000 0 0 0

# 4k working area at base of ram
#working_area 0 0x20000800 0x1200 nobackup
# all ram
working_area 0 0x20000000 0x2000 nobackup


# For more information about the configuration files, take a look at:




I have no idea what needs to be done to make this work. Any suggestions are welcome.

Thanks,
Mark
Previous Topic:Start up trouble even though I changed the eclipse.ini
Next Topic:[404] Resource Not Found Error
Goto Forum:
  


Current Time: Tue Apr 23 10:40:15 GMT 2024

Powered by FUDForum. Page generated in 0.07786 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top