stm32flash 0.9: Error probing interface "serial_posix"

Apple Mac OSX
Post Reply
jcu
Posts: 4
Joined: Fri Jun 17, 2016 1:18 pm

stm32flash 0.9: Error probing interface "serial_posix"

Post by jcu » Fri Jun 17, 2016 5:19 pm

Hi,

I am new to the STM32, porting a project from Arduino Pro Mini to blue pill module.
Under OS X (version 10.11.5), using the FTDI232 USB-to-serial adapter, the upload failed to open the port.

Code: Select all

Error probing interface "serial_posix"
After googling it, I found this ticket:
https://sourceforge.net/p/stm32flash/tickets/89/

Adding these two lines:

Code: Select all

	if ( port_parity != 0 )
		h->newtio.c_iflag |= INPCK;
in port_err_t serial_setup of serial_posix.c resolved the issue.

Then, the upload failed on chip erase and I had to unlock the chip with the Flash Loader Demonstrator utility as mentioned in another post by RogerClark.
http://www.st.com/content/st_com/en/pro ... stm32.html

Back to macos, I was just excited to make the Blink sketch work. :)
The next step will be to set up the USB bootloader (replacing the R10 resistor from 10K to 1.5K) and I will be all set to tackle the many compilation errors from Arduino libraries.

For learning the ropes, I realized how helpful this forum is.
Thank you all

swap20
Posts: 2
Joined: Tue Jun 28, 2016 11:42 am

Re: stm32flash 0.9: Error probing interface "serial_posix"

Post by swap20 » Tue Jun 28, 2016 12:00 pm

Hi,

I have exactly the same issue on OSX 10.11.5 using the FTDI232. I added the above code, but still I get

Code: Select all

Error probing interface "serial_posix"
. Did I miss somethings.

please help

jcu
Posts: 4
Joined: Fri Jun 17, 2016 1:18 pm

Re: stm32flash 0.9: Error probing interface "serial_posix"

Post by jcu » Tue Jun 28, 2016 1:07 pm

@swap20

Did you follow the steps indicated in the post:
viewtopic.php?f=21&t=1183#p14900

swap20
Posts: 2
Joined: Tue Jun 28, 2016 11:42 am

Re: stm32flash 0.9: Error probing interface "serial_posix"

Post by swap20 » Tue Jun 28, 2016 3:14 pm

OK very interesting stuff, without building a new stm32flash binary it's working fine with PL2303hx. After building new binary FTDI232 works as well. :D :D

EDIT: PL2303hx is faster to upload than FTDI232

Great Help Thanks

Post Reply