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.

DRV 8301 InstaSPIN Lab 01 Problem: Debug Issue, No source available

Other Parts Discussed in Thread: DRV8301

 

Hello,

I have started the InstaSpin Projects & Labs User's Guide, InstaSPIN-FOC & InstaSPIN-MOTION, with the DRV 8301 kit and TMDSCNCD28069MISO control card.

I am in Code Composer Studio 5.5.0 and have Imported the lab1 through 12 Existing CCS/CCE Projects.

My board is powered off 23V and is connected to my computer by the mini USB given in the kit. The board is seen by my computer as COM14 and the two USB controllers "TI XDS100 Channel A and B" are seen as well

I click proj_Lab01 and click build and there are no errors and the build finishes.

Then I click debug and everything seems to work well and brings me to the CCS Debug Window.

I click Run --> Load Program (in the CCS Debug Window) and everything works well.

I click Resume and I get the error "No source available for "0x3f4fb"

The same error occurs if I click Restart --> Free Run

The LED on the inverter board does not turn on or blink

What should my next step be?

I think it may has something to do with the following lines of code in your program. When I click "step into" instead of Resume this is where the code breaks.

The code enters the drv.c file

// initialize the CPU handle

  obj->

cpuHandle = CPU_init(&cpu,sizeof(cpu)); 

// initialize the FLASH handle

  obj->

flashHandle = FLASH_init((void *)FLASH_BASE_ADDR,sizeof(FLASH_Obj));

 

The code now enters the flash.c file

FLASH_Handle FLASH_init(void *pMemory,const size_t numBytes)

{

 FLASH_Handle flashHandle; 

if(numBytes < sizeof(FLASH_Obj))

     {

return((FLASH_Handle)NULL);}

 

The error displays as:

No source available for "0x03ff781"

and does not let me step into the code further.

 

Any direction you can offer would be appreciated,

Thank you,

Aaron

  • Hello,

    If you delete the predefined FLASH, will it work?

    Best regards,

    Maria

  • Hello Aaron,

    perhaps at 0x3f4fb address the some library function is placed (of course without source code). Try go through that thread  http://e2e.ti.com/support/microcontrollers/c2000/f/171/p/252845/884720.aspx#884720

    Regards,

    Igor

  • In your first post you say your power is off, but you never say if you turn it on.

    The bus voltage of the DRV8301 board powers the hot side of the controlCARD, so please power your bus.

    Within CCS instead of using the debug button, try manualling going through the steps.

    Launch Target Emulation

    Connect Target

    Load Program

    Turn on Real-Time

    Resume

     

  • Last night I read on the http://processors.wiki.ti.com/index.php/Download_CCS site that Code Composer Studio 5.5 only works on Windows 8 if installation is run in Win 7 compatibility. Is this truly the case? I have no clue how to go to Windows 7 compatibility mode.

    I uninstalled code composer studio 5.5 and installed code composer studio 5.4 instead.

    Then I installed compiler 6.1.5

    Now none of my projects will run because they say I need compiler 6.2.3, and I can't find how to change the project settings (or maybe its grayed out) to allow compiler 6.1.5.

     

    If I can use code composer studio on Windows 8, I will reinstall CCS 5.5 and try the help answers above.

    Otherwise, how do I change the project settings so the labs run under the 6.1.5 compiler?

     

    I tried to run vcredist_x86.exe installation package as instructed on the site below but I could not find it in the folder where the other CSS5.4 was so it must not have came with it.

    http://processors.wiki.ti.com/index.php/Windows_8_CCS

     

     

    Thanks to everyone for their help so far,

    Aaron

     

  • Hello,

    If you have different compilers (for example 6.1 and 6.2), you can select it in Properties -> General -> Compiler version. Have you tried it?

    This picture below is CCS 5.4 (I don't have CCS 5.5 yet).

    Best regards,

    Maria

  • The reason lab 1 would not work for me was that the instructions in the InstaSPIN Projects & Labs User's Guide are not detailed enough. Lab 01 Procedure is as follows: 1. Insert the MCU control card, connect the USB cable to the control card, and finally apply power to the kit. 2. In Code Composer, build proj_lab01. Start a Debug session and download the proj_lab01a.out file to the MCU. 3. Run the code so that an LED on the inverter board will blink. The correct method I used to get Lab 1 to work was: 1. Insert the MCU control card, connect the USB cable to the control card, and finally apply power to the kit. 2. Click proj_lab01 at the top of the Project Explorer tab (near the top left of your screen) 3. Click the hammer that symbolizes "Build" 4. Click the green bug that symbolizes "Debug" 5. Click CCS Debug Perspective in the top right corner of CCS 6. Click the "Load" button that looks like two squiggly brackets in a folder 7. Click Real-Time Silicon Mode which looks like a clock and press okay if a small window pops up 8. Click Resume which looks like a yellow vertical line with a green triangle beside it LED2 on the F2806x Control Card should blink Red at about 1 second on, 1 second off. Lab 1 Complete. I am using Windows 8.1 with CCS 5.5.0 and control board Piccolo 2806x and instrumentation board DRV 8301, Compiler Version v6.2.3, and linker file f28069F_ram_lnk.cmd Thanks, Aaron
  • Aaron,

    That's a fair criticism. I've entered a bug to get this clarified in the next revision.