Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Apple Mac OSX
Ragnarok
Posts: 13
Joined: Mon Aug 29, 2016 1:04 pm

Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by Ragnarok » Mon Aug 29, 2016 1:23 pm

Hey guys.
I'm relatively new to this field. I got my hands on an STM43f103c8t6 mini development board, and I wanted to try using it in my work. I followed this video : https://www.youtube.com/watch?v=Ze6q6NidS5w
I've followed all these steps, but I keep getting this error every time I try compiling anything -
Cannot run program "{runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-g++" (in directory "."): error=2, No such file or directory


Also, my Port shows "Bluetooth_incoming_port" which I know is wrong, because I faced the same error with an Arduino Uno board, and I figured that the port wasn't getting detected.

Any help is appreciated, thanks! :D

Better yet, if anyone has a step-by-step instruction on how to use the STM with Arduino IDE, please do tell.

Cheers!

User avatar
martinayotte
Posts: 1229
Joined: Mon Apr 27, 2015 1:45 pm

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by martinayotte » Mon Aug 29, 2016 2:50 pm

You need to install the GCC for ARM using BoardManager and choosing Arduino SAM installer.

Ragnarok
Posts: 13
Joined: Mon Aug 29, 2016 1:04 pm

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by Ragnarok » Sat Sep 03, 2016 10:13 am

Hey, thanks for the reply. I did this and now I'm getting a new error:
cannot init device

Is there something wrong with the hardware?

Thanks again! :)

User avatar
martinayotte
Posts: 1229
Joined: Mon Apr 27, 2015 1:45 pm

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by martinayotte » Sat Sep 03, 2016 12:19 pm

Do you mean that everything now compile, but the UpLoad failed ?
Please, provide more details such the output log.

Ragnarok
Posts: 13
Joined: Mon Aug 29, 2016 1:04 pm

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by Ragnarok » Tue Sep 06, 2016 12:20 pm

Yes, when I click on Verify, it says Done Compiling. But I try to upload, it shows me this:


Sketch uses 7,060 bytes (10%) of program storage space. Maximum is 65,536 bytes.
Global variables use 1,968 bytes of dynamic memory.
Failed to init device.
stm32flash Arduino_STM32_0.9

http://github.com/rogerclarkmelbourne/arduino_stm32

Using Parser : Raw BINARY
Interface serial_posix: 230400 8E1


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

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by RogerClark » Tue Sep 06, 2016 9:28 pm

Did you unlock / deprotect the board first ?

It may come preflashed with some code that just blinks the LED and which is locked.

Ragnarok
Posts: 13
Joined: Mon Aug 29, 2016 1:04 pm

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by Ragnarok » Wed Sep 07, 2016 12:24 pm

This is new information for me. I didn't know we had to unlock boards.

Will Google this, and try unlocking if it is locked first. :) Thanks!

Ragnarok
Posts: 13
Joined: Mon Aug 29, 2016 1:04 pm

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by Ragnarok » Wed Sep 07, 2016 2:38 pm

I did some research. Found out that my board didn't have anything pre flashed into it. Also, I have no errors related to the locked/protected status of the board.

I did not notice before but the LED doesn't blink when I plug in the FTDI. Back to square one!

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

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by RogerClark » Wed Sep 07, 2016 10:01 pm

If you are uploading via USB to Serial, and the upload succeeds and code does not run, there is a possibility that the 8mhz crystal oscillator is not running.

One other forum member had this problem.

I also have one STM32 board which will run directly after upload but not run if you power cycle it. again it had a faulty oscillator.

Also. Can you confirm which version of gcc your IDE is using, I think it should be 4.8

madias
Posts: 813
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: Error while compiling (El Capitan, STM32f103c8t6, FTDI RS232)

Post by madias » Wed Sep 07, 2016 10:46 pm

Can you post a link to your board? (sounds like the faulty "ugly board") or if it's the "blue pill" -> bad 10k USB resistor.

Post Reply