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.

TMS320F280048-Q1: Debug stops at ESTOP0 line in device.c

Part Number: TMS320F280048-Q1
Other Parts Discussed in Thread: C2000WARE

Hi,

I cannot debug my code because the code stops at ESTOP line in device.c

My code builds very well.

I'm using the reference code from the folder below;

C:\C2000Ware_4_02_00_00\training\device\f28004x\getting_started\lab_blinkyled_driverlib

How can I resolve the issue? Why does the debug stops at this line?

I showed it as below;

  • Hi Gokhan,

    Could you screenshot what ASSERT the code fails at before it gets to the __error__ function call?

    I will see if I can replicate what you're seeing in the mean time.

    Best,

    Ryan Ma

  • Hi Ryan,

    I push debug button and then play. Then the code halted at ESTOP line.

    Which part do you require? What do you need?

    By the way, code was RAM based and I changed the build option from RAM to FLASH by using setting FLASH active.

  • Hi, 

    I added some ss as below. I think it get error at below line;

    " GPIO_setAnalogMode(0, GPIO_ANALOG_DISABLED);"

    First one is the first stop and other continuous after I pushing the STEP RETURN button.

  • Hi Gokhan,

    I will forward this to a GPIO expert to further assist you.

    Best,

    Ryan Ma

  • Hi Gokhan,

    You are trying to set pins that are not Analog Mode capable (they don't need to set analog mode):

    Fullscreen
    1
    2
    3
    4
    //
    // Check the arguments.
    //
    ASSERT(((pin >= 224U) && (pin <= 247U)) || (pin == 22) || (pin == 23));
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Regards,

    Vince