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.

Compiler/LAUNCHXL-F28027F: f28027

Part Number: LAUNCHXL-F28027F

Tool/software: TI C/C++ Compiler

Hi,

I have asked this question before but haven't got satisfied response. I am just stuck at a point. When ever I am debugging simple hrpwm example from resource explorer then I get error due t which I am not getting any utput. The erroe is given in pictures. Kindly suggest me a solution.

  • Hi,

    What do you have towards the end of your main function ?

    Usually application code stays in a small idle loop like shown below at the end of main func, else the code might reach the exit routine as I see from your snapshots.

    //
    // Step 6. IDLE loop. Just sit and loop forever (optional)
    //
    for(;;)
    {
    __asm(" NOP");
    }

    Hope this helps.

  • Hi Karthik,

    First of all thank you very much for approaching.

    I have tried with inclusion of 6th step but still the same problem. After flashing the code, all lights of launchpad turns on which might shows that code has been progressed but there is no output on oscilloscope. After debuggung the status automatically changes to Suspended-SW Breakpoint and 3 points are highlighted in every example. The case in first picture is from main program(Example_2802xHRPWM.c), second error is from args_main.c and third is from boot28.asm. All there cases are mentioned with command below

  • Hello Ahsan,

    I still do not get your problem completely.

    1. Can you try to compile the project to Run from ram and let us know what happens (keeping the debugger connected) ?

    2. Does the PC go to main/1st instruction(InitSysCtrl() ); ?

    3. If Yes, on a run does it keep waiting at the delay loop that I mentioned earlier (it should be looping there whenever you halt the target) ?

    4. Do you see the PWM toggling for few times and goes away or it never does anything ?

  • Hi Karthik,

    1) Could you please give me the steps to do that as I am quite beginner with TI MCU

    2)Yes. USB debugg error Suspended problem occurs just after flashing due to which 3 breakpoints occur, This example was made with compiler 6.04. So it not noramlly run with latest version.

    3) the problem is same even after implementing the loop.

    4)I see some minor changing on oscillisope but not PWM

  • Ashan,

    I suggest you look at some of the existing training material to get the basics that might help you.

    https://training.ti.com/c2000-mcu-device-workshops