That said…I am not sure what needs to be done in order to get this working with an STM32 device….change to the bootloader, new upload method, additional circuitry? Has anyone done this yet?
That said…I am not sure what needs to be done in order to get this working with an STM32 device….change to the bootloader, new upload method, additional circuitry? Has anyone done this yet?
Their Serial Bootloader is a branch of the Maple bootloader in the Leaflabs github account.
Ive never tried to run it, but it appears to implement the same serial upload protocol as used by the serial bootloader that is built into the hardware of the STM32.
I think your best option would be to modify that bootloader.
There is another option if you have a CC Debugger tool to reflash your BLE module.
Well, I presume you are running. cc254x based BLE board. aka HM10.
If you have one of those, there is some free custom firmware for the HM10 called BlueBasic.
Which would allows you to run a form of modified BASIC on a CC254x based BLE board, and this allows you to control GPIO etc on the CC254x as well as use serial and the BLE comms.
So you could get the BLE module to Pull Boot 0 HIGH, and toggle the Reset pin, then transfer data via serial from the BLE where you somehow send this using stm32flash on the PC.
One problem with using the hardware bootloader is that I think it requires Even Parity on the serial, and I’m not sure whether BlueBasic has any commands to change this.
BTW. you can get a CC Debugger clone on eBay for around $20, but be aware some of them dont come with firmware in the unit, so are useless.
That said…I am not sure what needs to be done in order to get this working with an STM32 device….change to the bootloader, new upload method, additional circuitry? Has anyone done this yet?
Which bluetooth device are you using?
Basically, you would need flexible handshake timing with uploading host, to allow for wireless latency.
Basically, you would need flexible handshake timing with uploading host, to allow for wireless latency.
http://www.st.com/content/st_com/en/pro … stm32.html
http://www.st.com/content/ccc/resource/ … 264342.pdf
Using RF wireless transceivers, 20mS+ latency was too long waiting for ACK from uploading host and caused timeout (NACK) on STM microcontroller Uart bootloader.
Which bluetooth device are you using?
That said…I am not sure what needs to be done in order to get this working with an STM32 device….change to the bootloader, new upload method, additional circuitry? Has anyone done this yet?
A better wzy, IMO, is how Bluebie manages micronucleus: like a virus.
Ray
DFRobot have designed a STM32 F103RET6 based Bluetooth board with built in Bluetooth that works for wireless upload – http://www.dfrobot.com/index.php?route= … 0Y279xS2Hs – I have one and it works well. They have created a custom Firmware and the communication to the STM32 is all done through the Bluetooth chip (CC2540). <…>
The problem with the CC2540 is that you can only program it with IAR – which costs $$$$
the nRF51822 can be developed with gcc and also MBED.
However HM10 (C2541) are around $4 (or less) but nRF51822 modules are twice the price.
You would still need to write your own custom bootloader to interface with the nRF51822
However, How are you going to transmit data over BLE from a PC ?????
I have looked at uploading to the nRF51822 before (for a RedBearLabs module), but only way to do it was via an Android phone
You would probably be better off using a ESP8266 and wifi rather than using BLE.
You would probably be better off using a ESP8266 and wifi rather than using BLE.
Although the STM32 is not directly mentioned, there is a section which talk about ARM in general.
You will probably need to have small modification to allow placing the STM32 in Boot mode using a GPIO.
Although the STM32 is not directly mentioned, there is a section which talk about ARM in general.
You will probably need to have small modification to allow placing the STM32 in Boot mode using a GPIO.
But I’m sure user @tve from JeeLab could help if you’re getting into troubles.
Although the STM32 is not directly mentioned, there is a section which talk about ARM in general.
You will probably need to have small modification to allow placing the STM32 in Boot mode using a GPIO.
It seems you’re not getting the point: it doesn’t exist it, and if you want it, you’ll have to make it yourself
it should something like that :
avrdude -p m328p -c arduino -b 115200 -P net:10.111.111.60:23 -Uflash:w:<tmp-build-path>/yourHexFile.hexit should something like that :
avrdude -p m328p -c arduino -b 115200 -P net:10.111.111.60:23 -Uflash:w:<tmp-build-path>/yourHexFile.hex