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.

TMS320F2800137: C2000 microcontrollers forum code migration

Part Number: TMS320F2800137

hi

I recently learned TIDM02002 and found that

1. lab option cannot be changed in main.syscfg file, may I ask how to switch to other lab for other experiments?

2, in the engineering code lab corresponding statement does not have a specific function implementation, please help to analyze the purpose of the function here

thank you !

  • hi

    Question 1 has been solved, please explain question 2 clearly, thank you

  • Luoyongg,

    THe purpose of the second function is to be an enum. Or an "enumerated value", this enum is intended to be a human-readable indicator of which lab, or mode, that the code is executing in.

    This is important when running the software because the startup conditions as well as external conditions for each lab are different. During development observing this enum before running the code can help avoid damage to the hardware.  

    Regards,
    Cody 

  • Thank you for your answer,

    Global search, this enumeration type is only available in void CLLLC_ The setBuildLevelIndicator Variable (void) is used and does not serve as an indicator for any experiment in the program; Generally, this enumeration type should be used to determine which experiment to perform and which function to call in the if statement, but no similar statement was found in the program; Could you please help to analyze it.

    Thank you.

  • This is for a user to read. It does not affect the execution of the code, it is an indicator of the code that is executing.

    Regards,
    Cody 

  • Hello, Cody

    Thank you for your reply. This enumeration type does not affect the operation of the code. Can we assume that all 8 experiments in TIDM02002 are running the same code? Is the control logic the same?

    In theory, eight experiments should correspond to different code logics, with enumeration types as the basis for determining each experiment. However, looking at the code logic, it seems that these enumeration types have not worked. So I don't understand the logic, please help explain it. thanks
  • This enumeration type does not affect the operation of the code.

    Correct, indicators do not affect code operation.

    Can we assume that all 8 experiments in TIDM02002 are running the same code? Is the control logic the same?

    No and no. The logic changes based on a different definition. The enumeration then indicates which lab is running.

    In theory, eight experiments should correspond to different code logics, with enumeration types as the basis for determining each experiment.

    Correct they do correspond to different code and logic.