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.

Stellaris DK-LM3S-DRV8312

Other Parts Discussed in Thread: DRV8312, DRV8301

Hi

I am using the DRV8312 Stellaris kit and when I build the project, debug it and enable the flag, the motor runs then I had an error:

CORTEX_M3_0: Trouble Reading Memory Block at 0x20000000 on Page 0 of Length 0xff0: Timed out while waiting for target powerup/polling a hardware resource.

Can anyone help?

Thanks,

Ahmad

  • Ahmad,

    Although I don't have such board with me, reading the error message says it had timeout issues while waiting for target powerup. That leads me to believe there's something compromising the stable functionality of the processor when the motor engages.

    Could you test your hardware and verify if the processor is being reset, or the power lines are fluctuating or noise is being introduced in the JTAG lines?

    Hope this helps,

    Rafael

  • Rafael,

    Thank you for your response, I will check what you wrote.

    I got another problem, which is I don't have the real time silicon button in my CCS. I have downloaded the CCS from the DVD attached with the Kit.

    And when I open it from Debug options, the choices appear in Grey.

    Thanks,

    Ahmed

  • Ahmed,

    Stellaris doesn't support exactly what we call real-time mode as that is something specific to TI emulation IP which is not in the Stellaris devices (tied into the feature to handle interrupts while halted).

    However, M3/M4 devices do support real-time accesses via the DAP. The Stellaris ICDI driver uses the DAP automatically for these when running. Thus you won't see the real-time mode options shown but the reads performed while running will be done without halting the processor - for example, enabling continuous refresh on a memory window. CCS would only halt to do the read if you enable the legacy stop mode operation in the debugger options (off by default).

    Regards,

    Rafael

  • Hi Rafael,

    I enable the watch and clicked the automatic refresh and it is working. Should I ask here for the code itself?? or should I post in the motor drive forum?? Thank you very much for your fast response and support.

    I notices something else which is when I debug the program and run it without the Dual Time Graphs but only with the watch, no error occurs.

    Thank you again :)

    Ahmed

  • Ahmed,

    Thanks for reporting your findings.

    You will get some more insightful answers about the code itself in the Stellaris forum - we are not necessarily what you would call "experts" in motor control techniques... :)

    Cheers,

    Rafael

  • Hi Ahmed and Rafael,

    I am working with hercules drv8301. I think the real time procesure is same like Stellaris. So I couldnt work on continuos refresh mode, while the motor is running. I want to sketch the actual graphics but if the continuous refresh mode is active, motor interrups and stops. If continuous refresh mode is off then I couldnt get the actual values on my graphic. Can you please help me. How can I work on continuous Refresh mode, without interruptig the motor ??

     

    Thank you in advance!

    Mete 

  • Hi Mete,

    I have faced the same problem of the refresh mode. Can I know what is the interface between the DRV and the computer?

    When I had that problem, I have changed the code of the GUI that comes with the DRV so I can simulate the motor.

    Another solution is to use an oscilloscope.

  • Hi Mete, Ahmed, 

    I believe one of the control card options for DRV8301 is TMS570LS31 or RM48, which have XDS100V2 emulator on the control card. If you are using that combination of emulator/processor, then you will need CCSv5.3, which has driver support to access target non-intrusively through DAP. You should not have to enable "Real-time mode" just like for Stellaris. I believe that XDS100v2 and CortexR based devices should work. I don't know if any other combination of emulator/processor works in the same way. 

    Martin

  • Hi Ahmed and Martin,

     

    first of all thank you for your responce. @Martin, yes the card is RM48 which have XDS100V2 emulator. but we use CCS v5 may be it causes the problem.

     @ Ahmed,  The Interface is CCS v5, which one you have ? We use the codes which come with DRV package. How did you change the GUI code ? 

     

    Regards

    Mete 

  • A correction, my code composer is CCS v5.2.1. Do you have any idea, whether it can support to access target conveniently through DAP? Actually it is the code composer which comes with DRV package.

     

    Regards

    Mete

  • Hi Mete, 

    CCS v5.3 should have it. Stock CCS 5.2.1 does not have this support. You might want to check for updates and install latest TI Emulation Pack. If it does not work after the update, then you will need 5.3. 

    Martin

  • Hi Martin,

    I have done it yesterday, just like you said. So firstly tried the update, but promlem was not solved. After that downloaded v5.3, now it runs convenient. Thank you for your response.

     

    Mete