Trying to use the CM-900 bootloader...

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
2 postsPage 1 of 1
2 postsPage 1 of 1

Trying to use the CM-900 bootloader...

Post by siempre.aprendiendo » Fri Apr 12, 2013 6:30 am

Post by siempre.aprendiendo
Fri Apr 12, 2013 6:30 am

I have created an hex and bin file using Coocox (http://www.coocox.org/CooCox_CoIDE.htm) and now I'm trying to upload it using WinM3 (Windows)  and  stm32flash (Ubuntu) but no luck. Win3M says that can't find file (the file is there, sure) and stm32flash says "Failed to get init ACK from device".

The only doc I've found about using the CM-900 bootloader is this: http://profmason.com/?p=3385, where profmason said :
"Tie a jumper wire between pin PA0 and 3.3V on the board"

Is this the only way, there's no soft way?

Thanks!
I have created an hex and bin file using Coocox (http://www.coocox.org/CooCox_CoIDE.htm) and now I'm trying to upload it using WinM3 (Windows)  and  stm32flash (Ubuntu) but no luck. Win3M says that can't find file (the file is there, sure) and stm32flash says "Failed to get init ACK from device".

The only doc I've found about using the CM-900 bootloader is this: http://profmason.com/?p=3385, where profmason said :
"Tie a jumper wire between pin PA0 and 3.3V on the board"

Is this the only way, there's no soft way?

Thanks!
siempre.aprendiendo offline
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 559
Joined: Wed Aug 08, 2007 9:13 pm
Location: Barcelona

Post by siempre.aprendiendo » Mon Apr 15, 2013 9:21 am

Post by siempre.aprendiendo
Mon Apr 15, 2013 9:21 am

In case anyone else is interested here is the answer profmason published:

Here is the gist. You need to use the zigbee port, not the USB port. Hook up a USB to TTL converter (STM uses 0 - 3V logic inverted to RS232) to the Zigbee port, open up your favorite terminal program at 57600 and reset. You should see a message.

Now do this, based on the instructions from Martin Thomas:

- Install the STM32 Flash Loader Demonstrator
- connect a PC serial-port (or USB-UART bridge) to the connector
labeled Zigbee of the board
- Select boot-mode "System Memory". This is pins Boot0:1 and Boot1:0 (see
STmicro application-note AN2606 for further information)
- Power-up the board or reset the STM32
- Start the the flash loader software, select the COM-Port keep all
other settings.
- Select [Next] and the software will establish the communication with
to the STM32. If not: double check the connection, verify the BOOT
settings, Reset the STM32, hit [Back] followed by [Next].
- Select [Next], select (*) Download, hit [...], select the .bin file,
keep "@" as 08000000. "Verify" and "Jump to user program" are optional but
enabling both is a good idea for the first tests.
- hit [Next] and the machine-code from .bin will be transfered to the
STM32's flash. If "Jump to user program" has been enabled the program should start to run.
- Set Boot0:0 Boot1:0 (boot-mode "User Flash Memory") and reset/power-toogle
the STM32 to start the new program.
In case anyone else is interested here is the answer profmason published:

Here is the gist. You need to use the zigbee port, not the USB port. Hook up a USB to TTL converter (STM uses 0 - 3V logic inverted to RS232) to the Zigbee port, open up your favorite terminal program at 57600 and reset. You should see a message.

Now do this, based on the instructions from Martin Thomas:

- Install the STM32 Flash Loader Demonstrator
- connect a PC serial-port (or USB-UART bridge) to the connector
labeled Zigbee of the board
- Select boot-mode "System Memory". This is pins Boot0:1 and Boot1:0 (see
STmicro application-note AN2606 for further information)
- Power-up the board or reset the STM32
- Start the the flash loader software, select the COM-Port keep all
other settings.
- Select [Next] and the software will establish the communication with
to the STM32. If not: double check the connection, verify the BOOT
settings, Reset the STM32, hit [Back] followed by [Next].
- Select [Next], select (*) Download, hit [...], select the .bin file,
keep "@" as 08000000. "Verify" and "Jump to user program" are optional but
enabling both is a good idea for the first tests.
- hit [Next] and the machine-code from .bin will be transfered to the
STM32's flash. If "Jump to user program" has been enabled the program should start to run.
- Set Boot0:0 Boot1:0 (boot-mode "User Flash Memory") and reset/power-toogle
the STM32 to start the new program.
siempre.aprendiendo offline
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 559
Joined: Wed Aug 08, 2007 9:13 pm
Location: Barcelona


2 postsPage 1 of 1
2 postsPage 1 of 1