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
It would be more convenient to us if you choose in which thread you want us to get your answers.
To the current one or to that one
It would be more convenient to us if you choose in which thread you want us to get your answers.
To the current one or to that one
It would be more convenient to us if you choose in which thread you want us to get your answers.
To the current one or to that one
Port menu for F4 is only used for Serial Monitor, it is not used for uploading sketch.
Did you upload a sketch while your F4 board were placed in DFU mode or uploaded using STLink ?
If Yes and upload succeeded, do you have any SerialUSB been initialized in the setup() of your sketch ?
(because it is only at this moment that SerialUSB will appear)
Port menu for F4 is only used for Serial Monitor, it is not used for uploading sketch.
Did you upload a sketch while your F4 board were placed in DFU mode or uploaded using STLink ?
If Yes and upload succeeded, do you have any SerialUSB been initialized in the setup() of your sketch ?
(because it is only at this moment that SerialUSB will appear)
HardwareSerial.hclass HardwareSerial : public Stream {
public:
HardwareSerial(usart_dev *usart_device,
uint8 tx_pin,
uint8 rx_pin);
/* Set up/tear down */
void begin(uint32 baud);
void end(void);
/* I/O */
virtual int available(void);
virtual int peek(void);
virtual void flush(void);
uint32 pending(void);
virtual int read(void);
virtual size_t write(unsigned char);
using Print::write;
/* Pin accessors */
int txPin(void) { return this->tx_pin; }
int rxPin(void) { return this->rx_pin; }
operator bool() { return true; } //<-------------- This line -----------------
private:
usart_dev *usart_device;
uint8 tx_pin;
uint8 rx_pin;
};
Under F4 the SerialUSB is not mapped to Serial, since Serial serial is already mapped to an hardware serial port, like other Serial1/Serial2/Serial3/Serial4.
You should change all Serial keywords in your sketch with explicit SerialUSB.
Here is the screenshot of my device manager and the tools menu of Arduino IDE 1.6.9 and I’m unable to understand why it’s not showing me any port option and on the other hand that port options works perfectly fine when I’m connecting my Arduino Mega 2560 board with my PC.
The stlink built into the f4 discovery does not have uart built in. You need to connect to the uart on the f4 with a separate USB-UART device.
martinayotte wrote:There is a small but important difference between F1 and F4 :
Under F4 the SerialUSB is not mapped to Serial, since Serial serial is already mapped to an hardware serial port, like other Serial1/Serial2/Serial3/Serial4.
You should change all Serial keywords in your sketch with explicit SerialUSB.
Along with this issue can you please let me know how can I write a code to blink an LED on Pin 12 and Pin 13 because STM32F4 has on board LEDs on these pins. May be I can upload a simple code to turn on these two LEDs.
I don’t see the goal here …
I don’t see the goal here …
I still don’t understand why it is there in your code since it seems useless …
I don’t see the goal here …
shows the same error “No Target Connected” after uploading the complete code.
Simply power-cycle your board to see it blinking.
I do not have an F4 Discovery Board … but with as many questions as we get about these darn things, I should probably buy one just to punish myself
Ray
For your punishment, you should purchase board like viewtopic.php?f=39&p=14454#p14450
With such punishments, it becomes a pleasure to be punished …
shows the same error “No Target Connected” after uploading the complete code.
For your punishment, you should purchase board like viewtopic.php?f=39&p=14454#p14450
With such punishments, it becomes a pleasure to be punished …
the board is probably shipped in a black leather carry-pouch and a miniature whip.
’tis would give a new meaning to chip torture.
And the chip can answer “meoww !”
Don’t get me wrong here … It is not me that going to shout “meow !” …
Here, in Quebec, there is currently a commercial on TV, from charity Org, that wish people to donate unused wearing.
We can see this big fat man wearing a leather clothe, we don’t see his women around using the “miniature whip”, but the man is screaming “meow !” …
He concluded that he doesn’t need this wearing anymore …
In fact, the comedian doing this is a well known artist, he support the campaign for donation !
I’m always laft when I see that commercial …
<…>
I’m always laft when I see that commercial …
Also, a question I’ll pose here:
I have chosen the STM32F407 chip because (mostly) it has SDIO implemented. It’s too bad the ‘duino development isn’t up to snuff yet, so does anyone know of a lesser, more supported STM32F chip that still has SDIO?
I know the 103 fall short on that bus, unless I’m missing part of the datasheet
Cheers!!
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 ![]()
You have saved me a lot of research time for sure. I won’t be developing until end of summer so fingers crossed.
I need a solution to transfer parallel 16 bit data (16MB) to an SD Card in a timely (not minutes) fashion under FATfs and looks like SPI is just too variable for it.
Cheers!
_BTW excellent work Roger!!
In that timeframe, I suspect the HAL MX core may be your best bet, as hopefully by then Arduino.org will have written the code for the OTTO which we can port.
Francesco @ Arduino.org is in fairly regular contact, via email, so I should know as soon as they have SD working.
BTW.
I think we have DMA transfer to SD card via SPI, but I can’t recall whether its working or not at the moment. i.e I thought at one point it was working, but we sometimes have setbacks and things stop working due changes in dependencies (other libs).
It’s audio data 16bit, 48Ks/s in stereo. Effectively to dump the RAM directly from the bus
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
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.
Viva Linux !!!
(@Ray, you don’t have all those bugs since you’ve been Linuxified, right ?
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.
<…>
(@Ray, you don’t have all those bugs since you’ve been Linuxified, right ?
It would be interesting to know if AVR code compiles in the location where the STM32 code doesnt
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
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 ![]()
You could check the Arduino.cc github repo to see if there have been any updates.



