Open port /dev/tty.usbserial-FTGVKLRW, baud 115200
Reading data from ./BL.bin
Traceback (most recent call last):
File "./stm32loader.py", line 548, in <module>
data = read(args[0])
File "./stm32loader.py", line 442, in read
if bytes.startswith('\x7FELF'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Any thoughts on whether this is python script problem? or something with the device I am trying to program? I have held the boot pin button while resetting the device.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I am trying to flash an STM32F0 device and added the ID to the list by modifying the python source as follows:
Then I invoke the python script as follows:
then I get the response:
Any thoughts on whether this is python script problem? or something with the device I am trying to program? I have held the boot pin button while resetting the device.
I should note that I am on macOS Sierra (10.12.1)