Yey! Got this working...
Note: in Windows stm32loader.py must open the file as "rb" or it things it's a text file and loads only a short chunk.
Yey! Got this working...
Note: in Windows stm32loader.py must open the file as "rb" or it things it's a text file and loads only a short chunk.
I used the instructions from the first post to re-flash my Maple v5 with my the FTDI chip from my Arduino Duemilanove. I had to resort to this method when my Maple v5 did not respond at all. No LED's no USB etc.
Grab all the tools and build the Maple bootloader
Preparing the boards
--------------------
Remove the ATmega168/328 chip from your Arduino Duemilanove to gain full access to the FTDI chip over pins 0 and 1.
Remove all jumpers from the Maple (CHRG, BAT, USB and EXT). This will allow us to power the Maple via VIN from the Arduino 3V3 output.
Connecting the boards
---------------------
Connect Arduino pin 0 (RX) to Maple pin 8 (also RX)
Connect Arduino pin 1 (TX) to Maple pin 7 (also TX)
Connect Arduino GND to Maple GND
do not connect the power yet
Re-flashing your Maple
----------------------
Connect the Arduino to your computer and find the correct serial device (you can use the Arduino IDE for this). Test if the re-flash instruction can find your Arduino:
./stm32loader.py -p /dev/ttyUSB0 -evw build/maple_boot.bin
Should give you this error:
Can't init. Ensure that BOOT0 is enabled and reset device
Correct! The serial device has been detected and used, but the Maple board is not powered yet.
Keep the shell window open and keep pressing the BUT button on your Maple. Connect the 3V3 power from the Arduino to the VIN on the Maple. While still keeping BUT down, rerun the stm32loader instruction in your shell:
./stm32loader.py -p /dev/ttyUSB0 -evw build/maple_boot.bin
Output:
Bootloader version 22
Chip id
['0x4', '0x10']'Once the shell starts printing output, you can release the BUT button.
When the re-flashing process is done, you can disconnected both boards (from the computer and each other) and place the Maple jumper back over the USB pins. Also refit your ATmega168/328 in its socket on the Arduino Duemilanove.
Done!
A simpler connection/pressing sequence is to connect all the FTDI TX,RX, ground and power pins, hold BUT and press RESET, then release all. This leaves the ROM bootloader active and waiting for a transmit. Then you can go on at your leisure with the stm32loader.
Once it's done you press RESET again.
PLEASE HELP
I flashed (as instructed here, thank you!) my maple r5 with leaflabs-maple-bootloader-maple-rev1-18-gd329633.tar.gz that I downloaded from github and after flashing, the led is constantly blinking (like in a perpetual bootloader mode). Did I flash with some wrong .bin?
zviangi,
blinking is the expected behavior. (a throbbing pattern would indicate a problem).
did you try flashing a new program using the bootloader?
@mbolivar
I can not flash a program (if you mean to do it from Maple IDE) because the board is not recognized by IDE ("Tools->Serial Port" menu item is dimmed)
dmesg shows only this, when connecting the board to USB:
...
[56445.571953] usb 2-1.2: new full speed USB device using ehci_hcd and address 6
$
oh, I got it working, I have removed cdc-asm module and installed again and everything worked! Thank you!
zviangi,
Glad you got everything working.
hi everybody i want to flash the code to olimex stm32f103rb using only USB so what all the steps i have to follow (about bootloader,drivers and procedure)
Thank u.....
RAJENDRA,
I have used the instructions here with very little trouble to put the bootloaders on our maple mini compatible board
http://leaflabs.com/docs/bootloader.html <- instructions and source code...
I dont have any of the olimex boards so I cant test them but it should not be too hard to figure out from there.
Don.
hi feurig
could you please send me the schematic of maple mini u r using (on my olimex the component by oart name DTA114YKA is missing so is there alternative to this)
Hi now my board is taking the dfu driver when i connect it though usb but it is not prompting me to browse for serial driver i followed these steps https://www.olimex.com/dev/DUINO/OLIMEXINO-STM32/Olimexino-STM32_Installation.pdf what may be the issue please help me
You must log in to post.