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

Touseef Wed Jun 08, 2016 3:08 pm

OK I’ve uploaded your code and it shows the same error “No Target Connected” after uploading the complete code.

mrburnette Wed Jun 08, 2016 3:13 pm

Touseef wrote:<…>
shows the same error “No Target Connected” after uploading the complete code.

martinayotte Wed Jun 08, 2016 4:32 pm

You should not bother about the “No target connected”, I think it is simply that it doesn’t seems to be able to execute “reset”.
Simply power-cycle your board to see it blinking.

mrburnette Wed Jun 08, 2016 4:49 pm

Thanks, Martin!
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 :lol:

Ray

martinayotte Wed Jun 08, 2016 6:27 pm

Hi Ray, the “reset” issue is not only F4 related …
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 … :lol:

Touseef Wed Jun 08, 2016 7:48 pm

mrburnette wrote:Touseef wrote:<…>
shows the same error “No Target Connected” after uploading the complete code.

RogerClark Wed Jun 08, 2016 9:19 pm

For a start, dont use pin numbers, use the official STM names for the pins, which you already quoted in your post.

mrburnette Wed Jun 08, 2016 10:40 pm

martinayotte wrote:Hi Ray, the “reset” issue is not only F4 related …
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 … :lol:

martinayotte Wed Jun 08, 2016 10:59 pm

mrburnette wrote:
the board is probably shipped in a black leather carry-pouch and a miniature whip. :roll:
’tis would give a new meaning to chip torture.

mrburnette Thu Jun 09, 2016 12:26 am

martinayotte wrote:
And the chip can answer “meoww !” :lol:

martinayotte Thu Jun 09, 2016 2:23 am

Hi Ray !
Don’t get me wrong here … It is not me that going to shout “meow !” … :lol:
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 !” … :lol:
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 ! :ugeek:
I’m always laft when I see that commercial … :lol:

mrburnette Thu Jun 09, 2016 12:07 pm

martinayotte wrote:
<…>
I’m always laft when I see that commercial … :lol:

Sandrine Wed Jun 29, 2016 2:56 pm

It looks to me like that STK link thingy isn’t even coming up as a serial port, rather a proprietary USB connection that only links to the ST IDE. Perhaps an interface soft like Serial Emulator would be able to deal with it. I myself can’t try that as I haven’t a discovery board (yet)

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 :lol:

Cheers!!

RogerClark Wed Jun 29, 2016 9:55 pm

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 :-(

Sandrine Thu Jun 30, 2016 4:09 am

Thanks so much for taking the time to reply Roger!
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!!

RogerClark Thu Jun 30, 2016 4:28 am

No worries

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).

martinayotte Thu Jun 30, 2016 12:58 pm

Could I ask what kind of data which takes such huge space ?

Sandrine Thu Jun 30, 2016 3:33 pm

Oh I hope so!

It’s audio data 16bit, 48Ks/s in stereo. Effectively to dump the RAM directly from the bus

Sign in to reply