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.

TI_Hercules PIL Target for RM48 modification for targeting TMS570

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN, DRV8301

I need some help getting the TMS570 to work with Matlab 2015a. I have done all the steps listed here TI Hercules PIL Target for RM48 

After contacting Anthony Seely the author of the toolbox, I was able to get rid of some of the errors that were coming up. Now I am having an issue when I try to run the sample simulation my matlab keeps on getting stuck and unresponsive. 

Here is the image of the last command where this happens. 

I am also uploading my matlab env. to see fi you someone could look at it. 3000.TI_HERCULES_TMS570.zip

Any help would be appreciated. 

I am using the TMS570LS3137 MCU, 

Software used:

CCS 6.1.1 , HalCoGen 04.05.01, and Matlab 2015a. 

PC : Windows 7 64 bit, 4 GB RAM. 

Thank you in advance. 

  • Hi Marinko,

    I have not looked at the upload attached to this post yet - but i looked yesterday at what you sent privately to me and I thought that the issue was that you had left out the '--be32' switch from the 'linkerOpts' cell array. Thought I sent you an email response on this. If not my apologies.

    If so please let me know if you tried adding the '--be32' and if that worked or not.

    I was able to download the .out file that was built for the target in the slprj folder into the device, but it is loaded into memory byte swapped (likely because the linker --be32 option is missing) therefore the code does not run to main and halt there which I think the script expects. Instead it gets stuck at the undef exception vector.
  • Hi Anthony,

    Thank you for your help. Unfortunately I was unable to get the issue resolved with TMS570. I ended up buying a BoostXL DRV8301 and a LaunchXL F28027 Launchpad. I was able to control the PMSM using FOC in Matlab using the Launchpad.