Mleaf / stm32flash

Automatically exported from code.google.com/p/stm32flash
0 stars 0 forks source link

tried the example ./stm32flash /dev/ttyS0 and no dice, then/dev/stlinkv2_1 gives this error #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
/dev/stlinkv2_1: Inappropriate ioctl for device

What steps will reproduce the problem?
1. sudo ./stm32flash /dev/stlinkv2_1

What is the expected output? What do you see instead?
I expected the device version information.

What version of the product are you using? On what operating system?
STM32f0 Discovery board

Please provide any additional information below.
Ubuntu 64bit

Original issue reported on code.google.com by isil...@gmail.com on 9 Jun 2012 at 9:25

GoogleCodeExporter commented 9 years ago
Am ver new to this dev board stuff, so some handholding helps a bit for me. :) 
Eager to learn though.

Original comment by isil...@gmail.com on 9 Jun 2012 at 9:26

GoogleCodeExporter commented 9 years ago
The answer is simple: you should be connecting to the UART1 of the uC, most 
probably by using an UART<->USB converter. Also for STM32F0 you'll need to 
patch stm32flash with the patch in Issue 29.

Original comment by fercer...@gmail.com on 8 Jul 2012 at 5:22

GoogleCodeExporter commented 9 years ago
But with a dev-board that has on-board stlinkv2 you do not need the serial 
bootloader at all (btw, activating it needs proper BOOT[01] pins configuration 
during reset too), just use the texane/stlink tool or OpenOCD to flash and 
debug it.

Original comment by fercer...@gmail.com on 8 Jul 2012 at 5:23

GoogleCodeExporter commented 9 years ago

Original comment by lists.to...@gmail.com on 9 Dec 2013 at 11:15