[SOLVED] STM BluePill with Sierra 10.12.6

Apple Mac OSX
Post Reply
McFly
Posts: 6
Joined: Fri Dec 01, 2017 4:05 pm

[SOLVED] STM BluePill with Sierra 10.12.6

Post by McFly » Fri Dec 01, 2017 4:27 pm

Hi Chaps,

after solving my first problems with CH340 driver for the Nano clones I got stuck by accessing the STM Blue Pill board under Mac OSX Sierra. I read some posts here in the forums but I didn't succeed yet...

Hardware:
STM32F103C8T6
USB Connection Cable
Boot jumper 0 set to HIGH
Boot jumper 1 set to LOW

Software:
Arduino IDE 1.8.5 Mac
Arduino_STM32 folder in /hardware
ARDUINO -> Boards -> Generic STM32F103C Series selected
ARDUINO -> Upload Method -> Serial selected
ARDUINO -> Programmer -> AVRISP mkII selected
ARDUINO -> Port -> NOTHING SELECTED SINCE THERE IS NO SERIAL DRIVER ON DISPLAY

As you can imagine... I cannot acces the board or upload anything... where is the problem? Anyone has an idea?
Thanks so much!

Christian

User avatar
RogerClark
Posts: 7478
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: STM BluePill with Sierra 10.12.6

Post by RogerClark » Fri Dec 01, 2017 6:43 pm

If you have the ch340 plugged in to the Mac and the IDE can’t see any available com ports, this is a problem with the IDE

I suggest you use the stm32flash utility to manually install the bootloader.

There are loads of posts about how to install and use the bootloader

McFly
Posts: 6
Joined: Fri Dec 01, 2017 4:05 pm

Re: STM BluePill with Sierra 10.12.6

Post by McFly » Fri Dec 01, 2017 10:19 pm

Roger, the CH340 Chip is only on my Nano Board... currently I have no USB to Serial adapter...
That means I have to manually program the bootloader into the board by connecting the STM32 board to a USB to serial adapter? Or can my nano board be coupled with the STM32 to program the bootloader?

Thanky for your help!

McFly
Posts: 6
Joined: Fri Dec 01, 2017 4:05 pm

Re: STM BluePill with Sierra 10.12.6

Post by McFly » Fri Dec 01, 2017 11:38 pm

Somehow I'm getting more and more confused...

- can I use the onboard USB connector of the Blue Pill Board to programm from the ARDUINO IDE or do I always have to programm with a FTDI USB to Serial adapter?

- do I have to modify the hardware on the Board with a pull up resistor?

- what do I have to do and connect for trying to get the STM32 Flash to work? Currently I have connected the board via the USB connector and get the following error code when trying to flash:

$ ./stlink/st-flash write generic_boot20_pc13.bin 0x8000000
2017-12-02T00:33:46 WARN /Users/kuwatay/src/stlink-master/src/usb.c: Couldn't find any ST-Link/V2 devices

What does Users/kuwatay mean?? My user name is totally different...

Please give me some advice... THANKS!

User avatar
mrburnette
Posts: 1885
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: STM BluePill with Sierra 10.12.6

Post by mrburnette » Sun Dec 03, 2017 5:14 pm

Maybe read this section of our WiKi:

https://github.com/rogerclarkmelbourne/ ... ill-Boards

Ray

Added:
You can use Google to search the forum for specific posts re: Bluepill

Code: Select all

bluepill site:stm32duino.com

McFly
Posts: 6
Joined: Fri Dec 01, 2017 4:05 pm

Re: STM BluePill with Sierra 10.12.6

Post by McFly » Tue Dec 05, 2017 2:20 pm

Well, I now have bought a STM-Link V2 connector...

-> with STM-Link I can upload my sketches from Arduiono to the BluePill.... ok!

-> with STM-Link and Boot Jumper 0 to HIGH I was able to upload the new generic stmduino bootloader.... ok!

-> connected to USB Port and Boot Jumper 0 reset to LOW, the Arduino software recognizes Port Serial FTDI1421... ok!

But I cannot upload any sketch... the error message is:

Code: Select all

dyld: Library not loaded: /opt/local/lib/libusb-1.0.0.dylib
  Referenced from: /Users/xxx/Documents/Arduino/hardware/Arduino_STM32/tools/macosx/dfu-util/dfu-util
  Reason: image not found
/Users/xxx/Documents/Arduino/hardware/Arduino_STM32/tools/macosx/maple_upload: line 53:  5515 Abort trap: 6           ${DFU_UTIL} -d ${usbID} -a ${altID} -D ${binfile} -R ${dfuse_addr} -R
Beim Hochladen des Sketches ist ein Fehler aufgetreten
Which Image is missing?? Any idea?

McFly
Posts: 6
Joined: Fri Dec 01, 2017 4:05 pm

Re: STM BluePill with Sierra 10.12.6

Post by McFly » Tue Dec 05, 2017 7:09 pm

SOLVED...

the library wasn't accessible from OSX.... had to install the homebrew system... now it works...

Post Reply