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 all,
I have purchased the LAUNCHXL-F28379D development board and BOOSTXL-POSMGR plug-in module, to communicate with a Tamagawa TS5700N8401 absolute encoder via the T-format serial interface.
Using the example software provided in the control suite examples and following the instructions provided in the attached pdf titled
TI Designs: TIDM-1011
Tamagawa T-Format Absolute-Encoder Master Interface
Reference Design for C2000™ MCUs
I have not had any success in extracting any data from the encoder. Software project is found here;
C:\ti\controlSUITE\development_kits\BOOSTXL_POSMGR\v01_01_00_00\tformat-F28379DLpad-S2\examples\PM_tformat_systemtest
The project builds and downloads to the TMS320F28379D with no errors.
When debugging the code, it seems to immediately run into a dead end with "no debug information or outside of program code" being reported. (See below). The cod, as defined by the example project, is currently set to run from RAM. I thought that the demo code that the LAUNCHXL-F28379D arrives with running on flash may be interfering with the T-format example running on RAM. I therefore erased the code running on flash and reloaded the t-format code to RAM, but still have no luck with the program getting stuck in the same dead end.
There is one warning during the build which is use of a different compiler to the one the project was created with;
Any help will be much appreciated.
Kind regards,
Alastair.
Hi Subrahmanya, I have removed the booster board and tried debugging the code. The code appears to go straight to an 'ESTOP' command (presumably an exception?). I have restarted the code using the 'restart' and 'reset cpu' buttons, but end up in the same place. In the disassembly window, the code is shown to be at location 3fe493. Please see attached screenshot.
Kind regards,
Alastair.
Following an uninstall of the control suite and re-installing, I can now run & debug the tformat code without the boostxl-posmgr board connected. When allowing the code to run and then pressing the pause button, the code stops at line 150 of "tformat.c".
The line is "while (tformatData.dataReady != 1) {}"
This loop appears to be waiting for new data to be ready from the encoder (which is not yet plugged in).
I will now try connecting in the boostxl-posmger board and see if the code still runs ok.
I have now connected in the boostxl-posmgr board. D18 (power) is on and now with the code running D16 (encoder 5V) is on as well.
Unfortunately the expressions in the window are not updating with new values (just staying at 0) when the code is running and turning the encoder. The code is still pausing at the same line of code as before (150 of tformat.c) and waiting for data to be ready.
Do you have any more suggestions?
Please see below for my connection details
Pin No.Function Wire colour from board Wire colour Tamagawa TS5700N8401
1 GND Black Black
6 Data+ Orange Blue
7 +5V Red Red
8 Data- Brown Blue/Black
N/C Batt+ N/C Brown
N/C GND N/C Brown/Black
J5 set to external
J9 set to master
Hi Subrahmanya,
I have tried stepping the code from the point at which it stops when paused.
line 150: while (tformatData.dataReady != 1) {}
When pressing the step into button, the code does not step and remains at line 150. Do you have any ideas why this could be?
Kind regards,
Alastair