A big fan of CoIDE too.
The set-up is super easy and tons of context-sensitive examples to get you going in no time.
Simpler than that:
1) download the gcc compiler from the launchpad and install it;
2) download coide and install it;
3) configure coide to use the installed gcc compiler: coide will prompt you;
4) create a new project for your chip, link in the components;
5) compile, download and you have a working project, :)
Cannot be simpler than that.
#include "stm32f4xx.h"
int main(void)
{
RCC -> AHB1ENR |= (1 << 3);
GPIOD -> MODER |= (1 << 26);
GPIOD -> ODR |= (1 << 13);
while(1)
{
}
}
Okay. Something isn't working.Code: [Select]#include "stm32f4xx.h"
int main(void)
{
RCC -> AHB1ENR |= (1 << 3);
GPIOD -> MODER |= (1 << 26);
GPIOD -> ODR |= (1 << 13);
while(1)
{
}
}
I can't seem to get the LED on PD13 to turn on.
Could anyone figure out whats wrong?
These are the errors I'm getting.
(http://i.imgur.com/ojSmiCB.png)
...I can upload that program but ...
Well, It said that it had flashed and the data LED was flashing....I can upload that program but ...
This might be a stupid question, but how do you know this if nothing happens?
Also, in CoIDE, when you upload a file to the board via the "Debug" button, it is actually (for me at least) paused by the debugger, and you have to push the "play" button to make it run.
Try running tasklist and gdbserver from a dos command prompt. If they don't start then hopefully you'll get some error messages that will help eg. wrong permissions etc.
I can confirm for you that on the F4 discovery board, your code runs and debugs as expected.
When setting up, was there anything you changed at all?
I can't seem to find gdbserver.exe on my computer, even in the GNU Tools ARM Embedded folder.
Found it :)
Still can't get stuff running though. I'm gonna buy another board incase mine is faulty somehow.
Yeh, It does seem to connect and all just fine... but the fact I can't program it etc is causing me some worry and no small amount of fustration...
When setting up, was there anything you changed at all?
...
And the plot thickens....
my STM32F051 board arrived today. That completely worked and was just fine... however this bored still doesn't work...
The debug on the new board works, but it doesn't on the original STM32F407 board.
And the plot thickens....
my STM32F051 board arrived today. That completely worked and was just fine... however this bored still doesn't work...
The debug on the new board works, but it doesn't on the original STM32F407 board.
How odd! Maybe try using the STLink section of the STM32F0 board for the STM32F4 processor and see if that makes a difference? If so, the STLink section of your STM32F4 might be messed up though the fact you could detect the processor with the STLink utility is quite odd. I'm sorry I can't be much more helpful!