C2000 Control Blockset does not work
Show older comments
Hello everyone,
I have an issue when using the C2000 control blockset for TI F28379D launchpad. As you can see, after "build,deploy&start", there was nothing in the output (zero voltage). I did set the constant 1 (boolean type), as you can see in the images. Hope that someone could help me. Much appreciated. I am using 2023a
Answers (1)
Umar
2 minutes ago
0 votes
Hi @BTV,
I took a close look at your three screenshots and I don't think there's anything wrong with your block setup at all. Your Constant block is configured correctly (value 1, boolean output), and your GPIO Digital Output block is also set up right — GPIO19 checked, "Toggle GPIO19" left unchecked, so it's in regular mode like it should be. Your build log also shows a clean, successful build and deploy, so the toolchain isn't the problem either.
The real issue is the specific pin you picked: GPIO19. On the F28379D LaunchPad, that pin doubles as the SCI‑B receive line (SCIRXDB) — it's literally documented that way in TI's own board pinout guide for this LaunchPad. So even though your Simulink model configures it correctly as a plain digital output, the board's hardware wiring/pin muxing means it doesn't behave as a clean GPIO output. I also found an older TI/MathWorks support case where another user hit this exact same problem on this exact board — GPIO19 came out stuck instead of toggling the way it was commanded, and MathWorks confirmed it was a UART pin conflict and told them to just avoid that pin. On top of that, I found a separate TI E2E thread (unrelated to Simulink, just plain C firmware) where someone independently ran into GPIO19 failing to work correctly specifically on this LaunchPad, while the same code worked fine on other boards with different pin numbers for SCI‑B. So this isn't a one-off fluke.
Bottom line: it's not a blockset bug, it's a pin choice issue. Try switching your Digital Output to a different pin in that same GPIO16~GPIO23 group — GPIO20, GPIO21, GPIO22, or GPIO23 should all be safe bets since they're not shared with UART. Rebuild, deploy, and check the voltage again. I'd expect it to work right away once you're off GPIO19.
Let me know how it goes after you swap the pin.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!