Other Parts Discussed in Thread: LAUNCHXL-F28379D, ENERGIA, C2000WARE, MOTORWARE, TMS320F28379D, TMS320F28069M, C2000WARE-MOTORCONTROL-SDK, 2MTR-DYNO
TLDR; How to get the BOOSTXL-3PHGANINV to work with the LaunchXL-F28379D LaunchPad?
Context
For professional motor control, I have on my workbench:
- LAUNCHXL-F28397D Launchpad
- BOOSTXL-3PhGaNInv Evaluation Module (EVM)
Toolchain installation attempts
The flyer contained in box 1 suggests I install drivers from ti.com/xds100drivers, which leads to a 404 url on energia.nu. On https://energia.nu/guide/install/windows/, the Launchpad type is not listed. Still, I download the latest Windows archive, place it in Program Files and launch energia.exe. This gives a dialog with 'This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted'. Also, I get the impression that the Arduino-like environment is not ideal for professional development. Therefore, I abandoned this first route. Rightly so?
Next, I tried to install C2000Ware from https://www.ti.com/tool/C2000WARE and its dependencies (according to the Quickstart Guide Rev. D, but the latest versions of each dependency):
- Code Compiler Studio 11: https://www.ti.com/design-resources/embedded-development/ccs-development-tools.html
- C2000 Compiler 21 LTS: https://www.ti.com/tool/C2000-CGT
- ARM compiler 19: https://www.ti.com/tool/ARM-CGT
Then (still according to the Quickstart Guide), within CCS, I go to View->Resource Explorer. I enter the LAUNCHXL F28397D filter:
I follow the instructions in
Under “Importing from TI Resource Explorer”, using the example project
And I am able to blink a LED without any problem. Changing the flash rate in the main() loop, rebuilding and reloading actually changes the flashing rate on the Launchpad. This all suggest that the toolchain works.
Motor control attempts
Next, I follow the instructions in
I remove jumper J5 on the BOOSTXL, because the LaunchPad is powered by USB. (Note that the User's Guide mentions J6.)
I connect the BOOSTXL to J5-J8 of the Launchpad (far side of the USB connector).
I connect 12.5V to the EVM ‘48V’ terminal from a lab supply. I connect an A2212/13T 1000KV BLDC motor to the ‘ABC’ terminals.
I install the latest MotorWare from https://www.ti.com/tool/MOTORWARE and ‘GUI for Evaluation Module (EVM)’ from https://www.ti.com/tool/BOOSTXL-3PHGANINV.
I import this project:
Target problem (solved)
Building succeeded, but launching a debug session gave a -1135 probe connection error message. Editing the .ccxml and selecting the correct target solved this issue:
The first debug time, I was prompted to select the actual target and selected C28xx_CPU1.
Now, we could proceed with the lab02a instructions until the real-time setting of the gMotorVars.Flag_enableSys and gMotorVars.Flag_Run_Identify flags.
Target problem (unsolved)
Unfortunately, nothing happened (even after enlarging the USER_MOTOR_RES_EST_CURRENT).
Using repeated breakpoints and step over/into, it turned out the execution was stuck at
- hal.c:652 obj->offsetHandle_I[cnt] = OFFSET_init(&obj->offset_I[cnt],sizeof(obj->offset_I[cnt]));
- 3fb513: 2CD6D20E LOOPZ *+XAR6[2], #0xd20e
Studying the context a bit, we noticed
- hal.c:646 obj->gpioHandle = GPIO_init((void *)GPIO_BASE_ADDR,sizeof(GPIO_Obj));
GPIO_BASE_ADDR is defined in "C:\ti\motorware\motorware_1_01_00_18\sw\drivers\gpio\src\32b\f28x\f2806x\gpio.h". Indeed, the User's Guide mentions a TMS320F28069M target, instead of the TMS320F28379D.
What is the recommended method to get this BOOSTXL-3PHGANINV to work with the LaunchXL-F28379D LaunchPad?
Thanks in advance,
Sjoerd Op 't Land