We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I can get the GNU blinky example to compile and download, but it doesn't work. The example was targeted at the LPC2106 so I had to change the GPIO references to port 1, as in the non-GNU example (which works fine). Any clues as to what I should look at?
What happens when you debug this example?
The debug button launches the simulator, which lets me step through the machine code. I haven't taught myself ARM assembler yet, so I didn't learn anything from it.
Any more suggestions?
So it loads the code, but the startup code seems to be incorrect? Do you see the startup code when you start simulating?
Try expanding on what you mean by "It doesn't work", that doesn't give much information, now does it?
I see that those examples use iteration loops to generate delays to make the blink perceptible to the eye. I also see that the non-GNU start-code configures the PLL and the GNU code does not.
If "doesn't work" == "not blinking" then I would suggest that it is actually blinking but it is blinking too fast for you to be able to perceive it.
All the LEDs are lit, fully on 100% (checked with oscilloscope). I was really hoping that the supplied examples would just work, which is why I've been reluctant to delve in to the start up assembler code. I noticed that the gcc startup doesn't clear the bss segment and it doesn't copy _etext to _data, but neither seems strictly necessary for the blinky example.
I've tried the debugger again, and now it just steps through the C source!
Am I the only person to try the examples?