F28388D Simulink model failed to boot from flash

8 views (last 30 days)
Xuejie Wu
Xuejie Wu on 25 Feb 2021
Answered: Aditya Padmanabha on 11 Mar 2022
Hi :
ccs version: v10.1.1
C2000Ware version: 3_03_00_00.
MATLAB version:R2020B
Simulink demo: Attachment
kit board: f28388d control card REV.B
phenomenon:
1. Use the built-in TI CCS project (ccs project demo: C:\ti\c2000\C2000Ware_3_03_00_00\driverlib\f2838x\examples\c28x\led\led_ex1_blinky) to burn the FLASH of the chip and start it successfully.
2. The built Simulink model can be programmed to the chip's Flash, but the program runs incorrectly after powering off and on. The error phenomenon is as follows:
A logic to light up the LED is set in the Simulink model. The first time it is downloaded, the LED flashes normally, the flashing period is 500ms, and the frequency is 2HZ. When the power is turned off and on again, the LED light is always on and the brightness is reduced. The oscilloscope measures the LED pin, which is a square wave with a small duty cycle of 60HZ.
3. Open the CCS project generated by Simulink with CCS and modify it as follows:
  1. Properties->C2000 Linker->Symbol Management set "Specify program entry point for the output module" to code_start
  2. Set "f2838x_codestartbranch.asm" WD_DISABLE .set 1 (the default is 1 in the file)
The modification was also unsuccessful.
It is normal to run the Demo that comes with TI, and troubleshoot hardware problems. But in terms of software, the CMD file seems to be no problem.
  1 Comment
Serdar Tombul
Serdar Tombul on 14 Jan 2022
I have encountered the same problem.
When I use CCS led blinky example , GPIO31 led flashes even after turn off/turn on power cycle.
Similar example is built, in Simulink with "GPIO31 toggle" and works after first build/load procedure the led flashes correctly. After power off and on the led is lit at half brightness and does not blink. out file is loaded to chip using CSS and checked that if it is on flash, however it is not working after a power cycle.
I tried to use cmd files provided by C2000Ware and the one used in led blinky example but it is not compiling.
I can flawlessly work with 28379D launchpad and 28335 control card using Matlab 2020B embedded coder.

Sign in to comment.

Answers (1)

Aditya Padmanabha
Aditya Padmanabha on 11 Mar 2022
Hi All,
In Case of TI F2838x you need to flash all the cores with executable generated from same version of support package. If one of the core is not flashed properly the board may not boot up after power cycle.
Thanks,
Aditya

Community Treasure Hunt

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

Start Hunting!

Translated by