nickma
1
Hi,
it seems for me like a breakpoint isn’t blocking the execution of my (simple blinkled) program
It doesnt do a thing (doesn’t blink and also doesn’t produce serial debug output).
wrote 32768 bytes from file bin/getting_started_sam3-h256_sam3s4-flash.bin in 2.941670s (10.878 KiB/s)
verified 21936 bytes in 1.281859s (16.712 KiB/s)
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20002a1c
shutdown command invoked
See whole flash procedure in attachment.
Setting:
- gnu make – running with
- arm-none-eabi-gcc (Sourcery CodeBench Lite 2011.09-69) 4.6.1
- Open On-Chip Debugger 0.6.0-rc1
- SAM3-H256 (ATSAM3S4BA)
- ARM-USB-OCD-H
Looks fine to me. OpenOCD has programmed/verified your target etc.
Now all you need to do is cycle the power or issue a reset to OpenOCD.
Spen
nickma
3
Hi Spen,
ntfreak:
Looks fine to me. OpenOCD has programmed/verified your target etc.
Ok, so the problem is rather in the .c code than in the flashing process...
[attachment=0]main.c[/attachment]
ntfreak:
Now all you need to do is cycle the power or issue a reset to OpenOCD.
Tried it before, but with the same outcome
Thanks for your help.
Nick
nickma
4
File attachment isn’t working so:
/** \file main.c
*/
#include "board.h"
#include <stdint.h>
static void _Wait(unsigned long delay) {
uint32_t elapsed;
do {
elapsed ++;
}
while (elapsed < delay);
}
int main(void) {
uint8_t en_led = 0;
LowLevelInit(); //don't know what this does
//Configure LED PIOs
LED_Configure( 0 );
while (1) {
if(en_led == 0) {
en_led = 1;
LED_Clear(0);
} else {
en_led = 0;
LED_Set(0);
}
_Wait(2000000);
}
}
nickma
5
It’s solved!!!
It was an failure in the low lvl initialisation (http://www.mikrocontroller.net/topic/245304)
Thx