[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: 8416
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: 3001
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:stm32duinoforum.com/forum

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...

ted
Posts: 312
Joined: Sun Jul 16, 2017 9:57 pm

Re: [SOLVED] STM BluePill with Sierra 10.12.6

Post by ted » Sat Jan 19, 2019 2:28 am

I have the same problem with Sierra, St link was installed using homebrew, which library wasn't accessible from OSX, can you provide more details how you fixed.
When I opened I have this text

Code: Select all

Last login: Fri Jan 18 20:50:44 on ttys000
teds-iMac:~ tedkor$ /Users/tedkor/Desktop/Arduino/hardware/Arduino_STM32-master/tools/macosx/stlink_upload ; exit;
2019-01-18T20:56:51 WARN /Users/kuwatay/src/stlink-master/src/usb.c: Couldn't find any ST-Link/V2 devices
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]

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

Re: [SOLVED] STM BluePill with Sierra 10.12.6

Post by mrburnette » Sat Jan 19, 2019 2:35 am

ted wrote:
Sat Jan 19, 2019 2:28 am
I have the same problem with Sierra, St link was installed using homebrew, which library wasn't accessible from OSX, can you provide more details how you fixed.
....
McFly has not logged onot the forum since 12/2017.... he gave no more details than above. That is why the forum policy is to "Not wake up old threads."

Ray

ted
Posts: 312
Joined: Sun Jul 16, 2017 9:57 pm

Re: [SOLVED] STM BluePill with Sierra 10.12.6

Post by ted » Sat Jan 19, 2019 1:48 pm

Just googling

Post Reply