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.

Trouble Setting Breakpoint (auto run)

Other Parts Discussed in Thread: AM3359, AM3358

Hello all!

I'm completely new in this topic. I have the AM3359 ICE Board and I'm trying to flash the board with a program which controls one of the RGB EtherCAT leds (LED 5)

Blinking with one color, for example red, is working. But when I add the configurations for the other 2 (B&G) I cannot debug it. It tells me this:

<"Trouble Removing Breakpoint with the Action "Finish Auto Run" at 0x4030118c (address of my main)...>

I tried to figure out which function causes the error, and I added the configuration functions one after another, and it seems that the problem is with the GPIODirModeSet function, after adding it, it causes the error above.

Does anyone have an idea?

Thanks in advance,

Stefan

EDIT: I found some related threads, but they didn't help me...

  • Hey,

    thanks, I've gone through them.

    But my problem isn't actually to set breakspoints, my problem is that I can't debug because it doesn't get to the start of my main.

    And that just happens if I add 2 more configurations for other leds, the same functions which work when I debug with only one led...

  • Very weird, this shouldn't happen. I hope TI employee solves your issue soon; till then keep trying.

    Regards,

    Gautam

  • Hi Stefan,

    Did you try disabling the auto-run option? The error is confusing... it is actually complaining that it cannot remove the breakpoint it set at main once it reaches it.

    Thanks

    ki

  • Hi,

    yes I tried, but it didn't help....

    It's very weird, every single led works perfect (it's a RGB led), but if I add the setup function of another, it get stucked in a infinite loop...

  • It is indeed a weird problem. I doesn't sound like specifically a tools issue. It could be some memory allocation issue when you add the additional code. Check your linker settings and make sure memory is being allocated correctly. I'm afraid I can't offer much more suggestions since I don't have much knowledge of your application and my knowledge of the HW is limited. You may get more suggestion in the AM3x forums.

    ki

  • Stefan Lotis said:
    <"Trouble Removing Breakpoint with the Action "Finish Auto Run" at 0x4030118c (address of my main)...>

    That address is in the 64KB L3 OCMC0 RAM internal to the AM3359. That is not a problem in itself, but normally a program would be loaded into the larger external DDR2 memory.

    With a AM335x Starter Kit an empty "hello world" CCS project was created for an AM3358 device, with the connection set to "Texas Instruments XDS100v2 USB emulator". As the CCS default AM3358.cmd linker command only contains internal device memories, the program was linked to the 64KB L3 OCMC0 RAM. The first attempt to load and run a program after reset hang, and the second attempt worked.

    The default target configuration for the AM3358 created by CCS didn't have a GEL initialization script for the Cortex-A8.

    The GEL initialization script for the CortexA8 was set to ..\..\emulation\boards\sk_am3358\gel\AM3358_StarterKit.gel to match my hardware, which caused CCS to initialize the device upon connection and made the program load and run work the first time after a device reset.

    In your project in the target configuration for the CortexA8 is the initialization script set to ..\..\emulation\boards\ice_am3359\gel\TMDXICE3359.gel to cause CCS to initialize the AM3359 ICE Board?

  • I set the initialization script is to this gel file.

    But it didn't help. I still get this:

    Disassembly:

    Console:

    I'm trying to control one RGB led, so I have to multiplex the right GPIO pin and then enable the output mode of thist pin. Before it I configure the functional clock and do a reset of the GPIO module.

    Maybe this helps you...?

  • I did this setting, but it didn't help.

    It always get stucked at this address:

    403080e4:   EAFFFFFE B               0x403080E4

    and shows that error:

    CortxA8: Trouble Removing Breakpoint with the Action "Finish Auto Run" at 0x4030118c: (Error -1066 @ 0x3332) Unable to set requested breakpoint in memory. Verify that the breakpoint address is in writable memory. (Emulation package 5.1.73.0)

    To control one EtherCAT led, it's necessary to swith the appropriate GPIO pin. At first, the functional clock of GPIO module has to be switched on and i do module reset. Then I have to multiplex the right pin and to enable its output mode.

    This is my program.

    Maybe that helps you...?

  • Could something be wrong with my gel file??

    I found a thread where someone had the same error which was located in the gel file, there was a false implementation in the "reset" function. But he had a different device than me....

    Luna, 

    Finally I could sove my problem. 

    The gel file coming with the CCS5 for my DSP generation (F28335) disables by default the XINTF. Mine is locate in

    ccs5_2\ccsv5\ccs_base\emulation\gel

    You can edit and uncomment the following line

    OnReset(int nErrorCode)
    {
     ..

    XINTF_Enable(); /* Uncomment to enable XINTF on Reset */
    }

    Hope it will work with you too

  • Stefan - Have you also posted your questions on the AM3x forums? The folks there are more knowledgeable with regards to the target itself.

  • Not yet...

    Thank you for the hint, I'll post it there!

    Kind regards

  • Stefan,

    for some reason your post in AM3x forum disappeared. Is the issue solved?

    Regards.

  • No, but I added 2 pictures of my screens and now it has to be checked form anyone...