Things to pay attention to when learning TMS320C2000
[Copy link]
1) It can run in single step, and will always return to address 0 when running continuously: Watchdog is not turned off, and continuous running will reset the DSP back to address 0.
2) OUT files cannot be loaded into the on-chip flash: Flash is not RAM, and cannot be written with simple write instructions. A special program is required to write. The load command in CCS and C Source Debugger cannot write to flash. OUT files can only be loaded into on-chip RAM or off-chip RAM.
3) How to add breakpoints in flash: You can use single-step debugging in flash, or you can use hardware breakpoints to add breakpoints in flash. Software breakpoints cannot be added in ROM. Hardware breakpoints set the address of the memory, and an interrupt is generated when the address is accessed.
4) Interrupt vector: The interrupt vector of C2000 cannot be relocated, so the interrupt vector must be placed in the flash starting at address 0. When debugging the system, the code is placed in RAM, and the interrupt vector must also be placed in flash.
Also, the problem of initialization
After DSP is reset, the initial values of many registers are usually inconsistent with the user's requirements, such as wait registers, SP, interrupt positioning registers, etc., which need to be set to the values required by the user through the initialization program. The main functions of the initialization program are:
1) Set the initial value of the register.
2) Create an interrupt vector table.
3) Initialize peripheral components
|