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.
Hi,
I am trying to get the LAUNCHXL-F280049C working with the DRV8311HEVM board for motor control. I have tried using the DRV8311xEVM InstaSPIN Universal GUI, but despite running through all the board configuration & steps, the firmware fails to control the motor correctly.
So I am instead now trying to run through the univeral motorcontrol lab examples to adapt and build the firmware myself, so I should at least have debug access to see what is going on.
However, when I try to debug (and flash) my built application, I get the following error:
C28xx_CPU1: GEL Output:
RAM initialization done
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset.
C28xx_CPU1: Warning: Failed unlocking device (zone 2) after reset.
C28xx_CPU1: Error occurred during flash operation: Unable to get file info from algorithm
C28xx_CPU1: Error occurred during flash operation: No algorithm has been loaded in which to look up "_exit"
C28xx_CPU1: Error writing the init algorithm. Flash algorithm returned error code. Operation cancelled.
C28xx_CPU1: File Loader: Memory write failed: Unknown error
C28xx_CPU1: GEL: File: C:\Users\stephen.crumpler\workspace_v11\universal_motorcontrol_lab_f28002x\Flash_lib_DRV8316RT\universal_motorcontrol_lab_f28002x.out: Load failed.
C28xx_CPU1: Error occurred during flash operation: Unable to get file info from algorithm
C28xx_CPU1: Error occurred during flash operation: No algorithm has been loaded in which to look up "_exit"
It looks like the flash is locked some how, presumably by the firmware loaded by the DRV8311xEVM InstaSPIN Universal GUI?
Any idea how I can get this unlocked?
Thanks.
The Universal Motor control lab is for the F28002x and the target .out file can't be program into the F28004x device directly.
Do you change the target configuration file for emulator connection, and change the .cmd file according to the F28004x if you want to migrate this project to F28004x?
Actually I've found this: https://e2e.ti.com/support/motor-drivers-group/motor-drivers/f/motor-drivers-forum/1037895/faq-drv8311hevm-drv8311hevm-source-code-for-motorcontrol-sdk-instaspin-foc which seems to provide a ready made solution for the same thing and supports my hardware combination out of the the box. So no need to use the universal control lab. I'm using it with the latest SDK rather than the suggested one but no problems seen so far.