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! ![]()
Better yet, if anyone has a step-by-step instruction on how to use the STM with Arduino IDE, please do tell.
Cheers!
cannot init device
Is there something wrong with the hardware?
Thanks again! ![]()
Please, provide more details such the output log.
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
It may come preflashed with some code that just blinks the LED and which is locked.
Will Google this, and try unlocking if it is locked first.
Thanks!
I did not notice before but the LED doesn’t blink when I plug in the FTDI. Back to square one!
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
My Ugly board has a worse problem, its crystal oscillator does not start very well, which means it only seems to run directly after I upload via Serial
The Ugly board is a piece of junk anyway. I no longer use it.
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
Next up is trying to learn to use DMA to be able to store these values in an SD card separately. Will browse around this forums for ideas, but could you point me in the right way? As in, how do I start learning about using DMA with the Arduino IDE?
PS: The board was not protected after all! I downloaded the STM Demonstrator GUI that tells if the board is protected, and it wasn’t. I kept resetting and reuploading on my friend’s Windows 10 laptop, and it worked! I don’t even know why.
PPS: Thank you everyone, for all the useful things you told me. Even though it wasn’t the primary solution, I learnt a lot after googling up solutions to the questions you guys posted! ![]()


