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.

TMS320F28379D: Using Macro "Device_Delay_US" causes debugging issues on TMS320F28379D Delfino Launchpad

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

hi Guys,
I took a Driverlib example from the directory \ ti \ c2000 \ C2000Ware_2_00_00_02 \ driverlib \ f2837xd \ examples \ epwm_ex4_digital_compare.c and extended it by a few lines of code to make the onboard LED blink.



GPIO_setPadConfig(31, GPIO_PIN_TYPE_STD); // Enable pullup on GPIO10 GPIO_writePin(31, 0); // Load output latch GPIO_setPinConfig(GPIO_31_GPIO31); // GPIO10 = GPIO10 GPIO_setDirectionMode(31, GPIO_DIR_MODE_OUT); // GPIO10 = output // // Loop indefinitely // do { GPIO_writePin(31,1); DEVICE_DELAY_US(80000); // ON delay GPIO_writePin(31,0); // Turn off LED DEVICE_DELAY_US(80000); // OFF delay } while(1);

if I use these lines of code, I can not debug the example - the code does not appear in the debug-window

Is not that possible or am I doing something wrong?
many thanks

CCS 9.1.0.00010

C2000Ware2_00_00_02

  • Holger,

    With that amount of delay, 80us, I would check to see if the internal watchdog has been disabled.  You should see reference code for this in the PLL setup in SysCtrl.c.  I would just leave it disabled to make sure that is the issue.  If you still want to use it you'll need to set up a background task to periodically ping it so it won't overflow and trigger a ISR/Reset.

    Best,

    Matthew

  • Holger,

    Wanted to check back in to see if the above reply was the root cause of your issue or you still required some assistance.  I'm going to mark the thread as TI thinks resolved, but feel free to reply back and we can continue the debug.

    Best,

    Matthew