This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can not run without ULINK-ME

Hello,

I have a problem with my project, the code is running fine when debugging, men will not execute stand alone.

This is proberly a neewbie issue, so please come with all your good / bad ideas :)

Kasper

  • Have you tried to single-step from the beginning, i.e. the startup code? Do you have any JTAG interface, or are you just downloading using serial port and then running?

    There are many possibilities. A couple of things to think about:

    Have you verified that the project specifies the correct processor?

    Have you configured correct clock frequencies? The real hardware can get over-clocked.

    Have you made sure that you have defined correct amount of memory, so all code fits in the flash, and all variables and stack fits in the RAM?

    Have you tried to add just a LED output at the start of the program, to see if you get any toggles to indicate if anything starts?

    Have you enabled the watchdog? Are you kicking it?

  • My previous question can probably be misunderstood: "Do you have any JTAG interface, or are you just downloading using serial port and then running?"

    Does your program work if you download with ULINK but not work if you run without ULINK?

    Note that the sample codes normally have one target where the code is compiled for running in RAM. ULINK downloads into RAM and a debugger script sets the program counter to the start of the application in RAM.

    If you restart your board without the ULINK, then there will be no application to run.

    The examples also has a flash target, where the application is linked for use in the flash. If you download it with the ULINK, then you can remove the ULINK and restart the board and your application will run.

  • Hello, thank you for your input.

    I now came that long if i download the code with the ulink-me and disconnect it, turn off power and on power the board is not starting, after i make a reset on NRST the board starts up running the code fine.

    How do i make the code start when i power up the device?

    on NRST pin i have a 10K pull-up ressistor.

    do i need to activate POR somewhere?

    Kasper