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.

CCS/DRV8302-HC-C2-KIT: DRV8302-HC-C2-KIT doesn't run - halts at location 0x3ff599

Part Number: DRV8302-HC-C2-KIT

Tool/software: Code Composer Studio

I have been trying to commission the DRV8302-HC-C2-KIT, without success.

It has an F28035 control card, and I am attempting to run the application for the sensorless PM motor.

I am able to compile the code at BUILDLEVEL 1, and it loads.

However, operation is always suspended at location 0x3FF559.

I have read through the instructions in the "HowToRunGuide" several times, and I don't appear to be missing anything.

I am running Code Composer version 7.0.0.00042. I noticed that the How to guide is referencing CCS v4.

Is it possible there is a setting for CCS 7 that is required, or is there something else happening?

Thank you

Dale

  • Hi Dale, are you running this using the RAM or FLASH build configuration? Also, are you able to get any other ControlSuite examples to work on your controlCARD?

    Sean
  • Hi Sean

    This was built with a RAM configuration
    I recently tested the BLDC project, and I was able to both build and run.

    Thank you

    Dale
  • Which linker command file do you have active? And when you look in the .map file that is generated during compilation, which section does 0x3FF559 fall in?

    Sean
  • Hi Sean

    Address 0x3ff559 is in the BOOTROM section.
    The active linker file is "F28035_RAM_PM_Sensorless.CMD
    For reference, I copied the Page 0 information from the .map file:

    PAGE 0:
    BEGIN 00000000 00000002 00000000 00000002 RWIX
    BOOT_RSVD 00000002 0000004e 00000000 0000004e RWIX
    RAMM0 00000050 000003b0 00000235 0000017b RWIX
    progRAM 00008000 00001800 000010e6 0000071a RWIX
    IQTABLES 003fe000 00000b50 00000b50 00000000 RWIX
    IQTABLES2 003feb50 0000008c 00000000 0000008c RWIX
    IQTABLES3 003febdc 000000aa 00000000 000000aa RWIX
    BOOTROM 003ff27c 00000d44 00000000 00000d44 RWIX
    RESET 003fffc0 00000002 00000000 00000002 RWIX
  • Hi Sean

    Additional information.

    I am getting the following error message when I load code into the 28035:

    C28xx: Trouble Removing Breakpoint with the Action "Finish Auto Run" at 0x8000: (Error -1066 @ 0x8000) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 6.0.504.1)

    Also, I noticed LED3 on the F28035 control card is flashing.

    Thank you

    Dale

  • Is operation suspended when you are running with the debugger and CCS connected? If so, please load the boot ROM symbols and see where the code is halted.

    It appears that your device is resetting and then going to boot ROM.

    sal
  • Hi Sal

    Yes - operation is suspended with CCS connected.

    I tried running again. I used RUN->LOAD->LOAD SYMBOLS from the menu.

    Is there anotehr way I can load the boot rom symbols?

    A code window pops up, but it has the message "No source available for 0x3ff599

    If I "restart" a window pops up for boot28.asm; the instruction it appears to reach is "MOV      SP,#__stack"

    However, this instruction does not seem to match what is at location 0x3ff599. (the disassembly window shows 'ESTOP0' at 0x3ff599)

    Thank you

    Dale

  • Some more observations:

    After further investigation, I made several observations that seem to imply the code is being corrupted.

    1. Some variables that should be TRUE/FALSE, i.e. 0 or 1, have larger values, ex. EnableFlag = 35744
    2. More important: Alpha_State_Ptr = 0x02718E66; I am sure this should be 0x008XXX to point to the code segment of memory.
    3. Code starts execution immediately open loading, and proceeds to halt at Ox3ff599.

    Contrast this with the results of loading the BLDC code from the same package:

    1. Variables have correct values, such as 1 for EnableFlag.
    2. Execution does not start when loaded. I need to click the 'START/RESUME' icon

    I suspect that there is a compiler or CCS setting in this project that is incorrect, but I haven't been able to see anything when reviewing the settings.I am using CCS7, Compiler version is TI v16.9.1.LTS.

    just to be clear, this is NOT my code - it is the code that I downloaded form TI to run the DRV8302 evaluation kit. The BLDC code in the package seems to work fine; the Sensorless PM code causes the issue. Unfortunately, my application is a PM motor.

    Thank you

    Dale

  • Hey Dale, sorry for the lull in response here. Have you been able to work out the issues you're experiencing on your end?

    Sean
  • Hi Sean

    I recently downloaded the most recent version of the code through controlSuite.
    This resolved the issue and I could spin the motor. I was never able to figure out what the error was in the original code.

    Dale
  • Thanks for the update Dale.

    Sean