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.

TMS320F28069M: Troubleshooting FLASH Build Errors for TMS320F28069M BLDC Motor Control

Part Number: TMS320F28069M
Other Parts Discussed in Thread: DRV8301-69M-KIT, DRV8301, INSTASPIN-BLDC, MOTORWARE

Dear TI Team,

I hope this email finds you well. I have been working on motor control using the TMS320F28069M microcontroller to drive a BLDC motor. For my custom hardware development, I referred to the DRV8301-69M-KIT.

Here are the key points of my project:

  1. Hardware Reference:

    • I used the DRV8301-69M-KIT as my hardware reference. This evaluation board features the DRV8301 gate driver and the InstaSPIN-enabled Piccolo TMS320F28069M MCU
  2. Motor Control Approach:

    • To achieve Field-Oriented Control (FOC) for my BLDC motor, I utilized INSTASPIN-BLDC. This software solution provides sensorless control for BLDC motors.
  3. Custom Code Integration:

    • I successfully integrated my custom code into the proj_lab05g example from the MotorWare package. The code compiles and runs flawlessly in RAM.
  4. FLASH Build Errors:

    • However, when I switch the build configuration to FLASH, I encounter errors. Specifically, I need assistance with resolving these issues. Unfortunately, I am unable to attach the screenshot directly to this email, but I  provided CCS screenshot error messages with this mail.
    • In the Code section, I got an error.
    • #ifdef FLASH
      #pragma CODE_SECTION(mainISR,"ramfuncs");
      #endif
  5. Troubleshooting Steps:

    • I have already checked the memory configuration, initialization routines, and FLASH programming. However, I believe I might be missing something critical during the transition from RAM to FLASH.
    • Could you guide me on the correct initialization and boot code for FLASH builds?
    • Additionally, I would appreciate any insights into handling FLASH programming errors.

Thank you for your support, and I look forward to your guidance on resolving the FLASH build errors. If you need additional details or specific error messages, please let me know.

Best regards,

Ram Singh

  • Hello Ram,

    The main error looks like they're related to the use of ramfuncs, can you try using the syntax ".TI.ramfunc" which is used in the linker command file? Does the error still occur, and which file is it occurring in (the line numbers in the error don't match the one in the main.cpp file)?