"STM32 Discovery F407" Error compiling

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
Ron
Posts: 3
Joined: Sat Oct 31, 2015 8:39 pm

"STM32 Discovery F407" Error compiling

Postby Ron » Sun Nov 01, 2015 12:53 am

Hello,

I'm new to the forum, been using 8bit for several years.
Decided to look at the 32bit stuff, but have some errors.

1) Using arduino IDE 1.6.5
2) Went into the Tools/Board/Boards Manager and selected Arduino SAM Boards Arduino DUE Went Fine
3) Unzip Arduino_STM32-Master to Arduino/Hardware Directory
4) In the Hardware Directory renamed the Arduino_STM3-Master to Arduino_STM32, removed -Master

1) Ran Arduino 1.6.5 IDE, New 32bit boards are in the board section
2) Selected "STM32 Discovery F407"
3) Loaded Arduino 32bit example Blink
4) Verify blink gives these errors

Arduino: 1.6.5 (Windows 7), Board: "STM32 Discovery F407"

arm-none-eabi-g++: error: Files\Arduino\hardware\Arduno_STM32\STM32F4\cores\maple/libmaple/usbF4: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduno_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Core/inc: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduno_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Class/cdc/inc: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduno_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_OTG_Driver/inc: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduno_STM32\STM32F4\cores\maple/libmaple/usbF4/VCP: No such file or directory
Error compiling.

Strange but those directories are there!

I selected a different board STM32F3Discovery, verify blink compiles Fine

Looking at the errors looks like the slash is going in the wrong direction after maple, maybe OK Looks strange
Tried on Windows XP and Windows 7 – same error


Ron

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

Re: "STM32 Discovery F407" Error compiling

Postby RogerClark » Sun Nov 01, 2015 2:56 am

Just tried compiling blink for the F407 on Arduino 1.6.5.r5 and it was OK for me

When did you install the IDE ? I doubt this is the problem but the IDE team did seem to release a lot of fixes for 1.6.5 hence the R5 version

In preferences turn on verbose for compile and look at the line that has errors

e.g.

Code: Select all

C:\Users\rclark\AppData\Roaming\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_discovery_f407 -DVECT_TAB_BASE -DERROR_LED_PORT=GPIOD -DERROR_LED_PIN=14 -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10605 -DARDUINO_STM32DiscoveryF407 -DARDUINO_ARCH_STM32F4 -DMCU_STM32F406VG -mthumb -DSTM32_HIGH_DENSITY -DSTM32F2 -DSTM32F4 -DBOARD_discovery_f4 -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4 -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Core/inc -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Class/cdc/inc -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_OTG_Driver/inc -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/VCP -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple -IC:\Users\rclark\Documents\Arduino\hardware\Arduino_STM32\STM32F4\variants\discovery_f407 C:\Users\rclark\AppData\Local\Temp\build2836591131281272557.tmp\Blink.cpp -o C:\Users\rclark\AppData\Local\Temp\build2836591131281272557.tmp\Blink.cpp.o


BTW I'm running W7 x 64, but think that other people use the F4 on linux

Ron
Posts: 3
Joined: Sat Oct 31, 2015 8:39 pm

Re: "STM32 Discovery F407" Error compiling

Postby Ron » Sun Nov 01, 2015 2:05 pm

The arduino IDE version says 1.6.5 but the download file name I installed from says arduino-1.6.5-r5-windows
Ron
Verbose compilation
Arduino: 1.6.5 (Windows XP), Board: "STM32 Discovery F407"

C:\Documents and Settings\one\Application Data\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_discovery_f407 -DVECT_TAB_BASE -DERROR_LED_PORT=GPIOD -DERROR_LED_PIN=14 -mcpu=cortex-m4 -DF_CPU=168000000L -DARDUINO=10605 -DARDUINO_STM32DiscoveryF407 -DARDUINO_ARCH_STM32F4 -DMCU_STM32F406VG -mthumb -DSTM32_HIGH_DENSITY -DSTM32F2 -DSTM32F4 -DBOARD_discovery_f4 -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4 -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Core/inc -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Class/cdc/inc -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_OTG_Driver/inc -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/VCP -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple -IC:\Program Files\Arduino\hardware\Arduino_STM32\STM32F4\variants\discovery_f407 C:\DOCUME~1\one\LOCALS~1\Temp\build4795590044229318396.tmp\Blink.cpp -o C:\DOCUME~1\one\LOCALS~1\Temp\build4795590044229318396.tmp\Blink.cpp.o

arm-none-eabi-g++: error: Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Core/inc: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_Device_Library/Class/cdc/inc: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/STM32_USB_OTG_Driver/inc: No such file or directory
arm-none-eabi-g++: error: Files\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/libmaple/usbF4/VCP: No such file or directory
Error compiling.

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

Re: "STM32 Discovery F407" Error compiling

Postby martinayotte » Sun Nov 01, 2015 2:56 pm

From what we can see above, the errors comes from the fact that your tree is located in "C:\Program Files\" and that all paths are not treated correctly as they been interpreted as "C:\Program" and "Files\" separately because of the space.
Simply move or re-install it in a simple folder such "C:\MyArduino\".

Ron
Posts: 3
Joined: Sat Oct 31, 2015 8:39 pm

Re: "STM32 Discovery F407" Error compiling

Postby Ron » Sun Nov 01, 2015 5:55 pm

Thanks, moving to C:\ did it!
Ron

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

Re: "STM32 Discovery F407" Error compiling

Postby RogerClark » Sun Nov 01, 2015 8:29 pm

On windows the normal installation location is in

MyDocuments/Arduino/hardware/arduino_stm32

not in with the IDE.

Adding cores with the IDE was only for 1.0 of the IDE and the hardware folder in the sketches folder was introduced in 1.5.x

cimd
Posts: 9
Joined: Fri Jul 01, 2016 9:35 pm
Location: Rio de Janeiro

Re: "STM32 Discovery F407" Error compiling

Postby cimd » Fri Jul 01, 2016 9:54 pm

I tried installing the Arduino_STM32 folder in the C:\Users\Ingo\Documents\Arduino\hardware folder as per installation instruction, but the Arduino IDE (1.6.7) does not recognizes the folder/boards. If I install it to the C:\Program Files (x86)\Arduino\hardware folder, the IDE recognizes it, but then I get all the "No such file or directory" on the includes.

Code: Select all

In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/WProgram.h:27:0,

                 from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/Arduino.h:3,

                 from sketch\sketch_jul01a.ino.cpp:1:

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F4\cores\maple/wirish.h:37:22: fatal error: libmaple.h: No such file or directory

 #include "libmaple.h"

                      ^

compilation terminated.

exit status 1
Error compiling for "STM32 Discovery F407"


What's wrong? Is it related to the 1.6.7 IDE version I'm using?
___________________________________________________
Christian D'Aquino

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

Re: "STM32 Discovery F407" Error compiling

Postby RogerClark » Fri Jul 01, 2016 10:13 pm

Yes.

1.6.7 has never been supported

Upgrade to 1.6.9 as the Arduino team have now fixed the problems which broke things in 1.6.6,1.6.7 and 1.6.8

zmemw16
Posts: 1066
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: "STM32 Discovery F407" Error compiling

Postby zmemw16 » Fri Jul 01, 2016 11:16 pm

RogerClark wrote:Yes.

1.6.7 has never been supported

Upgrade to 1.6.9 as the Arduino team have now fixed the problems which broke things in 1.6.6,1.6.7 and 1.6.8


so is 1.6.9 now the new 1.6.5 officially 'ish ? (trending toward :-) )

cimd
Posts: 9
Joined: Fri Jul 01, 2016 9:35 pm
Location: Rio de Janeiro

Re: "STM32 Discovery F407" Error compiling

Postby cimd » Sat Jul 02, 2016 12:24 am

Roger,

Thanks for the response. I've uninstalled IDE 1.6.7 and installed IDE 1.6.9, and yet I get the exact same results: IDE does not recognize the boards if the folder is in the mydocuments link; it does get recognized if it is in the arduino folder, but it doesn't compile. Is the IDE 1.6.5 the only version that's supported?
___________________________________________________
Christian D'Aquino


Return to “STM32F4 Boards”

Who is online

Users browsing this forum: No registered users and 2 guests