This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Program application to LM4F232 using XDS100V2 and Uniflash

Other Parts Discussed in Thread: UNIFLASH

I have an test application for a Stellaris LX4F232H5QD (A3) which toggles an LED on a GPIO line.  I can emulate (Code Composer V5.3, XDS100V2) this successfully and can transfer the .out file successfully to the device using Uniflash V2.1.  When I program the device with Uniflash, the application runs until I remove the XDS100V2.  Can anybody explain what I might be doing wrong?

The connections between the microcontroller and the XDS100V2 are:

1 - TMS (and pulled high to 3V3 with 10k resistor)

2 - !RST

3 - TDI

4,8,10,12 - Ground

5 - 3V3

7 - TDO

11 - TCK  (and pulled high to 3V3 with 10k resistor)

Is there anything else that I need to do in order to get the application to boot the application when powered on?

Any help is much appreciated.

Many Thanks

Lee

  • I've resolved the problem of the program stopping when the XDS100V2 was removed - the !RST was being pulled low.  I still can't get the application to execute.  I've emulated the program with CCS, programmed it with Uniflash and removed the JTAG cable.  However, it doesn't boot when power-cycled.  What am I doing wrong?

    Thanks

    Lee

  • Hi Lee,

    I'm fuzzy remember been in the same situation some weeks ago. I do not know whether this is the answer to your question but check the following:

    The CCS tool chain expands some boot code out of the eabi library. It is linked automatically if your reset starting point is the _c_int00 label. Have a look into the example in the startup_ccs.c file.

    If you do not have it handy, here is the detail:

    extern void _c_int00(void);
    void ResetISR(void)
    {
    __asm("    .global _c_int00\n"
              "    b.w     _c_int00");
    }

    This is doing something mysterious (undocumented) and then branches to your main().

    Hope it helps.

  • Hi Juergen

    That works.  I copied startup_ccs.c from the boot_demo1.  I can now load my code on to the device using my XDS100V2.

    Thank you very much.

    Lee