How to properly connect to TI F28025C for code generation and model debugging?

8 vues (au cours des 30 derniers jours)
Raul
Raul le 3 Avr 2024
Hello All,
I'm trying to configure my TI LaunchPad with F28002x C2000. I constantly receive errors when trying to use the Monitor & Tune option (Hardware -> Run on Hardware -> Monitor & Tune) but my project/model won't connect to my device. However, the project/model seems to work when I press the Build, Deploy, and Start button. What am I missing?
So far, it seems like I need to manually change some of the Hardware Settings to properly switch my device from 'Boot-from-Flash' to 'Boot-from-SCI' or to 'Boot-from-Ram'. If so, then can someone please confirm this process?
System Info:
  • Matlab R2023b
  • Trying to run the following example: Parameter Tuning and Signal Logging with Serial Communication (c28x_serial_ext model)
  • All software requirements are met and properly installed
Device Info:
  • Using TI LaunchPad kit
  • Part no: LAUNCHXL-F280025C
  • Connecting to target device from my host PC to an on-board XDS110 Debug Probe through USB
Thank You,
Raul

Réponses (1)

Raghava S N
Raghava S N le 23 Avr 2024
Hi Raul,
From your description of the issue, errors seem to come up when you try to run your Simulink model on the TI hardware in the “Monitor & Tune” mode; but these errors abate when the boot method is changed, or you change the deployment method to “Build, Deploy & Start”.
Boot Options
The TI F280x series, with its limited RAM, requires specific settings for efficient operation. For this case, enabling the “Boot From Flash” option is advisable for running the “c28x_serial_ext” model effectively. Here is how to adjust your settings:
  1. Open your model and navigate from the Toolstrip to Hardware > Hardware Settings.
  2. Go to Hardware Implementation > Target Hardware Resources > Build options tab.
  3. Select “Boot From Flash (stand-alone execution)”.
To avoid system crashes from Stack/Heap collisions due to the limited RAM, it is important to increase the heap size. Access this through Model Configuration Parameters > Code Generation > Build Configuration > Specify > Linker and adjust the “--heap_size” value accordingly.
For detailed guidance on running the “c28x_serial_ext” model on TI hardware, refer to this MATLAB R2023b documentation page - https://www.mathworks.com/help/releases/R2023b/ti-c2000/ug/parameter-tuning-external-mode.html?searchHighlight=Parameter%20tuning%20and%20signal%20logging&s_tid=doc_srchtitle.
Understanding “Monitor & Tune” vs “Build, Deploy & Start”
The distinction between these modes lies in their operational approach and resource requirements:
  • Monitor & Tune: Establishes real-time communication for dynamic adjustments, demanding higher resource usage.
  • Build, Deploy & Start: Compiles and deploys code for autonomous operation, optimizing resource utilization.
This operational difference explains the errors you encounter in “Monitor & Tune” mode due to limited hardware resources. This MATLAB Answer describes the processes involved in “Build, Deploy & Start” - https://www.mathworks.com/matlabcentral/answers/524794-what-is-the-difference-between-the-build-deploy-start-and-build-buttons-from-embedded-coder#answer_432178.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by