Spark Logic

STM32F407 Discovery Compiling Issues

Touseef Sat Jun 04, 2016 10:50 am

Hi! I have watched Roger’s video on yourtube “https://www.youtube.com/watch?v=-zwGnytGT8M” in which he said said that “The board is connected via a USB to serial adapter, which is connected to Serial1 on the STM32.” by that what does he mean? Does he mean that he is using a simple USB cable to connect his STM32 board with a PC or he is using some hardware device to connect STM32 with PC. I’m connecting my STM32F407 board with a simple USB cable and it works perfectly fine while uploading a program using Keil software.

As I’m using STM32F407 Discovery with Arduino 1.5.8 with windows 8 and while uploading the same I2C program it is showing me an error:

“Cannot run program “{runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-g++”: CreateProcess error=2, The system cannot find the file specified”.

I have also used Arduino 1.6.9 but that didn’t even worked and shows some other error while compiling:
“#include <Wire.h>

^

compilation terminated.

exit status 1
Error compiling for board STM32 Discovery F407.”

Could you please let me know the reason behind this issue as I really need it urgently.

Waiting for your kind response.

Regards,
Touseef

Replies

martinayotte Thu Jun 30, 2016 8:44 pm

That is making 192KBytes/sec, if I’m not wrong, normal SDCard on Hardware SPI should then be able to handle that.

Sandrine Fri Jul 01, 2016 3:50 am

Yes it can, but it’s a RAM dump not record/play in real time as that’s already been done. The audio is modified then place on the SD Card when done. I’d like a few seconds at most as I have an Akai MPX-8 that takes as long as the sample plays to load so there’s this huge wait time (really poor planning on their part) for 8 samples. Even drum samples take forever :?

Sandrine Sun Jul 03, 2016 12:49 am

On compiling I get this stream of errors:
Arduino: 1.6.9 (Windows XP), Board: "STM32 Discovery F407"

WARNING: Category '' in library RTClock is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
Warning: platform.txt from core 'STM32F4 boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
arm-none-eabi-g++: error: and: No such file or directory
arm-none-eabi-g++: error: Settings\FreshNelly\My: No such file or directory
arm-none-eabi-g++: error: Documents\Arduino\hardware\Arduino_STM32-master\STM32F4\cores\maple/libmaple/usbF4: No such file or directory
arm-none-eabi-g++: error: and: No such file or directory
arm-none-eabi-g++: error: Settings\FreshNelly\My: No such file or directory
arm-none-eabi-g++: error: Documents\Arduino\hardware\Arduino_STM32-master\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Core/inc: No such file or directory
arm-none-eabi-g++: error: and: No such file or directory
arm-none-eabi-g++: error: Settings\FreshNelly\My: No such file or directory
arm-none-eabi-g++: error: Documents\Arduino\hardware\Arduino_STM32-master\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Class/cdc/inc: No such file or directory
arm-none-eabi-g++: error: and: No such file or directory
arm-none-eabi-g++: error: Settings\FreshNelly\My: No such file or directory
arm-none-eabi-g++: error: Documents\Arduino\hardware\Arduino_STM32-master\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_OTG_Driver/inc: No such file or directory
arm-none-eabi-g++: error: and: No such file or directory
arm-none-eabi-g++: error: Settings\FreshNelly\My: No such file or directory
arm-none-eabi-g++: error: Documents\Arduino\hardware\Arduino_STM32-master\STM32F4\cores\maple/libmaple/usbF4/VCP: No such file or directory

RogerClark Sun Jul 03, 2016 1:01 am

Check and empty sketch or Blink etc compiles OK, as it looks like the issue you are seeing are nothing to do with the STM32 stuff but are a limitation of the Arduino IDE, in that it doesn’t seem to accept spaces in file names

I’d intially rename all your files and folders to replace the spaces with underscores.

I’d go so far as to say, I never use spaces in file names when programming, as there are many programs and scripts etc which don’t allow spaces in file names.

I’d get into the habit of using underscores instead of spaces.

martinayotte Sun Jul 03, 2016 1:23 am

Poor MS-Sh$t ! Poor Arduino.cc for those Windows spaces in path bugs that last since several releases ! We have also another thread about that in the same day ! I thought that 1.6.9 had resolved all those bug !
Viva Linux !!!
(@Ray, you don’t have all those bugs since you’ve been Linuxified, right ? :lol: )

Sandrine Sun Jul 03, 2016 2:11 am

RogerClark wrote:Check and empty sketch or Blink etc compiles OK, as it looks like the issue you are seeing are nothing to do with the STM32 stuff but are a limitation of the Arduino IDE, in that it doesn’t seem to accept spaces in file names

I’d intially rename all your files and folders to replace the spaces with underscores.

I’d go so far as to say, I never use spaces in file names when programming, as there are many programs and scripts etc which don’t allow spaces in file names.

I’d get into the habit of using underscores instead of spaces.

Sandrine Sun Jul 03, 2016 2:22 am

I have moved the sketch book directory to C:\ and it’s working!! No more spaces. Just the standard warnings.

mrburnette Sun Jul 03, 2016 2:32 am

martinayotte wrote:
<…>
(@Ray, you don’t have all those bugs since you’ve been Linuxified, right ? :lol: )

martinayotte Sun Jul 03, 2016 1:08 pm

Sandrine wrote:I have moved the sketch book directory to C:\ and it’s working!! No more spaces. Just the standard warnings.

RogerClark Sun Jul 03, 2016 10:39 pm

Most users do not have a problem with using the default location for the Arduino folder, so I suspect there is something else going on.

It would be interesting to know if AVR code compiles in the location where the STM32 code doesnt

Sandrine Wed Jul 06, 2016 2:44 pm

Sure everything has always compiled, even though Arduino IDE itself is allergic to any non-alpha characters other than underscore or hyphen. Leading numbers are also a no no. But it appears the STM code isn’t using relative paths so …

One thing that is possibly different is I have 2 other versions of Arduino IDE in program files/Atmel folder, but V.1.69 is in default folder

Sandrine Tue Aug 23, 2016 2:03 pm

RogerClark wrote:Some F103 versions have SDIO, but it is only available on the F103RC or better e.g F103RE, F103Vxx and F103Zxx

unfortunately we do not have any code for libmaple that supports it.

But…

There are 2 possibilities to remedy this shortcomming.

Arduino.cc are working on SDIO code for the STAR OTTO and it will be published to github, we can then take this code and port it into the HAL MX core.
(@vassilis has already, kindly, ported the STAR OTTO I2C (Wire) library to the HAL MX core)

Alternatively, I made an experimental HAL library for the libmaple F103 code, so it may be possible to use STMs example SDIO code ( which uses the HAL) by making use of the HAL library.

But, the bottom line is at the moment, we do not have support for SDIO :-(

RogerClark Tue Aug 23, 2016 9:30 pm

Arduino.cc were working on an SDIO library, but they have not emailed me to say it has been released

You could check the Arduino.cc github repo to see if there have been any updates.

Sign in to reply