# Coder

**URL:** https://forum.plexim.com/c/coder/8.md

[Latest](https://forum.plexim.com/latest.md) · [Categories](https://forum.plexim.com/categories.md) · [Tags](https://forum.plexim.com/tags.md)

---

## [About the Coder category](https://forum.plexim.com/t/about-the-coder-category/2607)

<div class="topic-metadata">

**Author:** [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Replies:** 0\
**Last updated:** [October 6, 2025, 3:53pm UTC](https://forum.plexim.com/t/about-the-coder-category/2607 "2025-10-06T15:53:41Z")

</div>

This category is for all questions relating to code generation for microprocessors in PLECS. General questions can be posted in the main category and there are subcategories for questions regarding specific microprocesso…

---

## [PLECS C code generation for PLC - Beckhoff TwinCAT or Codesys](https://forum.plexim.com/t/plecs-c-code-generation-for-plc-beckhoff-twincat-or-codesys/3314)

<div class="topic-metadata">

**Author:** [@lingvo](https://forum.plexim.com/u/lingvo)\
**Replies:** 0\
**Last updated:** [September 15, 2026, 5:52am UTC](https://forum.plexim.com/t/plecs-c-code-generation-for-plc-beckhoff-twincat-or-codesys/3314 "2026-09-15T05:52:29Z")

</div>

Hello there I would like to use Beckhoff PLC to execute generated C-code from PLECS Models in real-time. The advantage over RT Box would be that PLCs are compliant with industry standards and offer more interfacing opti…

---

## [CHB Inverter PWM Synchronization Issues with Two F28379D DSPs](https://forum.plexim.com/t/chb-inverter-pwm-synchronization-issues-with-two-f28379d-dsps/3299)

<div class="topic-metadata">

**Author:** [@MHz](https://forum.plexim.com/u/MHz)\
**Replies:** 8\
**Last updated:** [September 14, 2026, 6:40am UTC](https://forum.plexim.com/t/chb-inverter-pwm-synchronization-issues-with-two-f28379d-dsps/3299 "2026-09-14T06:40:49Z")

</div>

I am currently developing a Cascaded H-Bridge (CHB) inverter model and would like to evaluate the multi-channel PWM generation and synchronization capabilities using the two TI F28379D DSP boards. I have attached two PL…

---

## [Plecs Ti PWM Block Limitation](https://forum.plexim.com/t/plecs-ti-pwm-block-limitation/3305)

<div class="topic-metadata">

**Author:** [@JL2026](https://forum.plexim.com/u/JL2026)\
**Replies:** 1\
**Last updated:** [September 11, 2026, 6:08pm UTC](https://forum.plexim.com/t/plecs-ti-pwm-block-limitation/3305 "2026-09-11T18:08:51Z")

</div>

Hello, I am a graduate student working on a CSI simulation for my thesis. I’m trying to implement space-vector PWM for a three-phase current-source inverter using PLECS Coder with a TI C2000 target, and I have run into a…

---

## [Troubleshooting TI C2000 GFM inverter simulation](https://forum.plexim.com/t/troubleshooting-ti-c2000-gfm-inverter-simulation/3304)

<div class="topic-metadata">

**Author:** [@henry\_01](https://forum.plexim.com/u/henry_01)\
**Replies:** 1\
**Last updated:** [September 11, 2026, 5:52pm UTC](https://forum.plexim.com/t/troubleshooting-ti-c2000-gfm-inverter-simulation/3304 "2026-09-11T17:52:01Z")

</div>

Hello, I am conducting research related to GFM + droop control. The experiment involves PLECS functioning as the TI C2000 controller, which will act as a PWM controller to subsequently control the plant on the inverter …

---

## [Redefinition error](https://forum.plexim.com/t/redefinition-error/3293)

<div class="topic-metadata">

**Author:** [@Yogesh](https://forum.plexim.com/u/Yogesh)\
**Replies:** 3\
**Last updated:** [September 4, 2026, 6:16pm UTC](https://forum.plexim.com/t/redefinition-error/3293 "2026-09-04T18:16:19Z")

</div>

I have followed the installation steps described in the video in the link: Installing TI C2000 Target Support Package | Plexim I have successfully designed a small blink led design and its getting simulated in Plecs but…

---

## [LAUNCHXL-F28069M Synchronize output through EPWMSYNCO](https://forum.plexim.com/t/launchxl-f28069m-synchronize-output-through-epwmsynco/2178)

<div class="topic-metadata">

**Author:** [@Camberlam](https://forum.plexim.com/u/Camberlam)\
**Replies:** 9\
**Last updated:** [September 3, 2026, 9:47am UTC](https://forum.plexim.com/t/launchxl-f28069m-synchronize-output-through-epwmsynco/2178 "2026-09-03T09:47:52Z")

</div>

Hello: I would like to use the same clock source for two boards. I found that the External Sync block can be used as the input for the PWM (Variable) block (as the synchronization impulse source). However, I couldn’t fi…

---

## [Dual-CPU targets (F28P65x) – GPIO direction](https://forum.plexim.com/t/dual-cpu-targets-f28p65x-gpio-direction/3277)

<div class="topic-metadata">

**Author:** [@Michael](https://forum.plexim.com/u/Michael)\
**Replies:** 2\
**Last updated:** [August 25, 2026, 4:41am UTC](https://forum.plexim.com/t/dual-cpu-targets-f28p65x-gpio-direction/3277 "2026-08-25T04:41:37Z")

</div>

Digital Output assigned to the secondary CPU never drives the pin (F28P65x dual-core) – bug, or are we missing something? What we are seeing On a dual-core F28P65x, a Digital Output block assigned to the secondary CPU (…

---

## [Complementary PWMs on different channels STM32](https://forum.plexim.com/t/complementary-pwms-on-different-channels-stm32/3240)

<div class="topic-metadata">

**Author:** [@Davi](https://forum.plexim.com/u/Davi)\
**Replies:** 1\
**Last updated:** [July 28, 2026, 1:24pm UTC](https://forum.plexim.com/t/complementary-pwms-on-different-channels-stm32/3240 "2026-07-28T13:24:47Z")

</div>

Hello, I would like to use the STM32’s PWM block to generate two complementary PWM signals on different channels, rather than generating them on the same channel. I am doing this for a three-phase converter control simul…

---

## [Support for the TMS320F28P551x](https://forum.plexim.com/t/support-for-the-tms320f28p551x/3215)

<div class="topic-metadata">

**Author:** [@caiodasilva05](https://forum.plexim.com/u/caiodasilva05)\
**Replies:** 1\
**Last updated:** [July 27, 2026, 5:26pm UTC](https://forum.plexim.com/t/support-for-the-tms320f28p551x/3215 "2026-07-27T17:26:39Z")

</div>

Hi! TI has recently released the TMS320F28P551x of TI C2000 last year. I am interested in using PLECS Coder for my project involving this line of MCUs. Does PLECS Coder support the F28P551x line? If not, when can we exp…

---

## [Differential ADC for TI C2000](https://forum.plexim.com/t/differential-adc-for-ti-c2000/2594)

<div class="topic-metadata">

**Author:** [@juppy](https://forum.plexim.com/u/juppy)\
**Replies:** 5\
**Last updated:** [July 14, 2026, 1:21pm UTC](https://forum.plexim.com/t/differential-adc-for-ti-c2000/2594 "2026-07-14T13:21:53Z")

</div>

Hello, Is it possible to use the TI C2000 ADC in a differential ADC configuration? I am currently using two single ended ADC inputs then subtracting the result, however this isn’t an ideal solution as the common mode no…

---

## [JTAG and External mode](https://forum.plexim.com/t/jtag-and-external-mode/3185)

<div class="topic-metadata">

**Author:** [@Oli](https://forum.plexim.com/u/Oli)\
**Replies:** 7\
**Last updated:** [July 1, 2026, 11:23am UTC](https://forum.plexim.com/t/jtag-and-external-mode/3185 "2026-07-01T11:23:39Z")

</div>

Hello, I’ve entered the correct directory in the “C2Prog GDB server directory” field, but whenever I try to connect using a custom board, this error always pops up. Is there a way to get round this issue using the L…

---

## [Code generation for Microcontrollers](https://forum.plexim.com/t/code-generation-for-microcontrollers/3182)

<div class="topic-metadata">

**Author:** [@Oli](https://forum.plexim.com/u/Oli)\
**Replies:** 2\
**Last updated:** [June 26, 2026, 7:26am UTC](https://forum.plexim.com/t/code-generation-for-microcontrollers/3182 "2026-06-26T07:26:49Z")

</div>

Hello, I was wondering if it was possible to generate code for a TMS320F28377S using the configuration for the TMS320F28379S? My code builds successfully using UniFlash, but the External Mode fails to connect (the targ…

---

## [C-Script Blocks Prevent DSP Flashing on LAUNCHXL-F28379D](https://forum.plexim.com/t/c-script-blocks-prevent-dsp-flashing-on-launchxl-f28379d/3158)

<div class="topic-metadata">

**Author:** [@Yung](https://forum.plexim.com/u/Yung)\
**Replies:** 5\
**Last updated:** [June 15, 2026, 6:55pm UTC](https://forum.plexim.com/t/c-script-blocks-prevent-dsp-flashing-on-launchxl-f28379d/3158 "2026-06-15T18:55:32Z")

</div>

Hi everyone, I am using PLECS Coder with a LAUNCHXL-F28379D. My PWM outputs and SPI-A block work when I use fixed constant inputs, and I can see the SPI signals on the oscilloscope. However, when I replace the constant…

---

## [HIL with TI C2000 (28379D) + RT BOX1 – How to control two converters using TI C2000 Target Support?](https://forum.plexim.com/t/hil-with-ti-c2000-28379d-rt-box1-how-to-control-two-converters-using-ti-c2000-target-support/3135)

<div class="topic-metadata">

**Author:** [@jack2](https://forum.plexim.com/u/jack2)\
**Replies:** 3\
**Last updated:** [June 5, 2026, 12:09pm UTC](https://forum.plexim.com/t/hil-with-ti-c2000-28379d-rt-box1-how-to-control-two-converters-using-ti-c2000-target-support/3135 "2026-06-05T12:09:40Z")

</div>

Hello everyone, I am trying to perform HIL experiments using a TI C2000 (28379D) and an RT BOX1. I followed the TI C2000 Target Support demos under power supplies / onboard charger to control two converters with the C20…

---

## [SPI C / SCI C not supported for code generation with TI2737x](https://forum.plexim.com/t/spi-c-sci-c-not-supported-for-code-generation-with-ti2737x/3111)

<div class="topic-metadata">

**Author:** [@kenzderbenz](https://forum.plexim.com/u/kenzderbenz)\
**Replies:** 1\
**Last updated:** [May 28, 2026, 5:32pm UTC](https://forum.plexim.com/t/spi-c-sci-c-not-supported-for-code-generation-with-ti2737x/3111 "2026-05-28T17:32:39Z")

</div>

With PlecsVersion 4.9.6 (64 bit)(and it looks like also v5) we experience an issue when generating code for theTI TMS320F28379D Control card. For both SPI C and SCI C, they do not seem to be supported by the code genera…

---

## [STM32G474 External Mode issue](https://forum.plexim.com/t/stm32g474-external-mode-issue/3039)

<div class="topic-metadata">

**Author:** [@ldumaslaussi](https://forum.plexim.com/u/ldumaslaussi)\
**Replies:** 5\
**Last updated:** [May 20, 2026, 2:25pm UTC](https://forum.plexim.com/t/stm32g474-external-mode-issue/3039 "2026-05-20T14:25:25Z")

</div>

Good afternoon, I am using an STM32G474VE board to control a synchronous buck converter. My initial goal is to implement an open-loop voltage controller and measure the buck converter’s current and voltage signals. I d…

---

## [Phase-shifted carrier PWM for cascaded H-bridge on C2000 + RTBox HIL](https://forum.plexim.com/t/phase-shifted-carrier-pwm-for-cascaded-h-bridge-on-c2000-rtbox-hil/3063)

<div class="topic-metadata">

**Author:** [@jack2](https://forum.plexim.com/u/jack2)\
**Replies:** 2\
**Last updated:** [May 16, 2026, 4:57am UTC](https://forum.plexim.com/t/phase-shifted-carrier-pwm-for-cascaded-h-bridge-on-c2000-rtbox-hil/3063 "2026-05-16T04:57:24Z")

</div>

Hi everyone, I am conducting HIL experiments using a C2000 LaunchPad and an RTBox, with a single-phase cascaded H-bridge inverter. Since the cascaded H-bridge uses phase-shifted carrier PWM modulation, I tried configuri…

---

## [The value about STM32G431 PWM Capture demo is incorrect when the frequency is below 3kHz](https://forum.plexim.com/t/the-value-about-stm32g431-pwm-capture-demo-is-incorrect-when-the-frequency-is-below-3khz/3052)

<div class="topic-metadata">

**Author:** [@xuli](https://forum.plexim.com/u/xuli)\
**Replies:** 6\
**Last updated:** [May 14, 2026, 2:18am UTC](https://forum.plexim.com/t/the-value-about-stm32g431-pwm-capture-demo-is-incorrect-when-the-frequency-is-below-3khz/3052 "2026-05-14T02:18:08Z")

</div>

Hello, I study the stm32 TSP recently. I find that the demo advanced\_pwm\_configuration about the stm32G431 PWM Capture has some problem. The value of PWM Capture is incorrect when the given frequency is below 3kHz. Why…

---

## [Why does CAN communication suddenly disconnect frequently in practical applications?](https://forum.plexim.com/t/why-does-can-communication-suddenly-disconnect-frequently-in-practical-applications/3046)

<div class="topic-metadata">

**Author:** [@yuhangzhou](https://forum.plexim.com/u/yuhangzhou)\
**Replies:** 4\
**Last updated:** [May 6, 2026, 2:38pm UTC](https://forum.plexim.com/t/why-does-can-communication-suddenly-disconnect-frequently-in-practical-applications/3046 "2026-05-06T14:38:53Z")

</div>

CAN\_trouble.plecs (452.3 KB) I used CAN communication in my model with the previous PLECS 4.9 version and never experienced sudden disconnections. However, after I upgraded PLECS to version 5.0, the exact same model keep…

---

## [PLECS 4.9.5 compatibility with PLECS Coder (C2000 F28379D LaunchXL)](https://forum.plexim.com/t/plecs-4-9-5-compatibility-with-plecs-coder-c2000-f28379d-launchxl/3040)

<div class="topic-metadata">

**Author:** [@BAEM](https://forum.plexim.com/u/BAEM)\
**Replies:** 2\
**Last updated:** [May 5, 2026, 5:03pm UTC](https://forum.plexim.com/t/plecs-4-9-5-compatibility-with-plecs-coder-c2000-f28379d-launchxl/3040 "2026-05-05T17:03:11Z")

</div>

Hello I am currently using PLECS version 4.9.5 and I am new to DSP controller development. I am working with the TI C2000 F28379D LaunchPad. My goal is to learn how to use PLECS Coder from creating blocksets to generat…

---

## [STM32G474RE ADC2 (PA1) Produces Unexpected ADC Readings](https://forum.plexim.com/t/stm32g474re-adc2-pa1-produces-unexpected-adc-readings/3019)

<div class="topic-metadata">

**Author:** [@rizalsaputra](https://forum.plexim.com/u/rizalsaputra)\
**Replies:** 8\
**Last updated:** [May 1, 2026, 6:16am UTC](https://forum.plexim.com/t/stm32g474re-adc2-pa1-produces-unexpected-adc-readings/3019 "2026-05-01T06:16:40Z")

</div>

Hello, I am currently trying to perform code generation on an STM32G474RE using a simple circuit model as shown in Fig. 1. However, when I attempt to read the output value from ADC2 channel 2 (PA1), the measured result …

---

## [Generating a double pulse PWM pattern on a TI C2000 based F280039C LaunchPad](https://forum.plexim.com/t/generating-a-double-pulse-pwm-pattern-on-a-ti-c2000-based-f280039c-launchpad/1972)

<div class="topic-metadata">

**Author:** [@Zizzi](https://forum.plexim.com/u/Zizzi)\
**Replies:** 6\
**Last updated:** [April 30, 2026, 5:46pm UTC](https://forum.plexim.com/t/generating-a-double-pulse-pwm-pattern-on-a-ti-c2000-based-f280039c-launchpad/1972 "2026-04-30T17:46:24Z")

</div>

I need to generate a typical double-pulse pattern \[used for dynamic charazterisation\] on a given Pin of my F280039C board. The pulse I want. I can use the C2000 PWM block to generatea fixed duty cycle PWM pattern wh…

---

## [STM32 Target protection setup: threshold issue](https://forum.plexim.com/t/stm32-target-protection-setup-threshold-issue/2974)

<div class="topic-metadata">

**Author:** [@ldumaslaussi](https://forum.plexim.com/u/ldumaslaussi)\
**Replies:** 3\
**Last updated:** [April 10, 2026, 7:13pm UTC](https://forum.plexim.com/t/stm32-target-protection-setup-threshold-issue/2974 "2026-04-10T19:13:39Z")

</div>

Good afternoon, I am trying to implement some fault detection using the submenu “Protection” on PLECS Coder. After defining the analog input and the threshold, I moved to real tests. I used a Powerstage block to shut do…

---

## [Error in running code to F28P55X LaunchPad](https://forum.plexim.com/t/error-in-running-code-to-f28p55x-launchpad/2919)

<div class="topic-metadata">

**Author:** [@imdaonlyjuan](https://forum.plexim.com/u/imdaonlyjuan)\
**Replies:** 2\
**Last updated:** [March 18, 2026, 9:26am UTC](https://forum.plexim.com/t/error-in-running-code-to-f28p55x-launchpad/2919 "2026-03-18T09:26:48Z")

</div>

First of all, thank you very much for the wonderful tech support and assistance! I have recently purchased a F28P55X LaunchPad as an alternative to my F28069 and to use as HIL setup based on the recent post I made earlie…

---

## [Request for Specific TSP Installation Files (STM32 v1.4.3 and TI v1.10.3)](https://forum.plexim.com/t/request-for-specific-tsp-installation-files-stm32-v1-4-3-and-ti-v1-10-3/2910)

<div class="topic-metadata">

**Author:** [@karce](https://forum.plexim.com/u/karce)\
**Replies:** 1\
**Last updated:** [March 9, 2026, 5:37pm UTC](https://forum.plexim.com/t/request-for-specific-tsp-installation-files-stm32-v1-4-3-and-ti-v1-10-3/2910 "2026-03-09T17:37:39Z")

</div>

Hi, We are currently working on a power electronics project and require the following specific versions of the Target Support Packages for our development environment: TSP STM32 version 1.4.3 (plecs\_tsp\_stm32-1.4.3.e…

---

## [Trigger activated Trigger activated out of sync](https://forum.plexim.com/t/trigger-activated-trigger-activated-out-of-sync/2882)

<div class="topic-metadata">

**Author:** [@Davi](https://forum.plexim.com/u/Davi)\
**Replies:** 3\
**Last updated:** [February 27, 2026, 9:20pm UTC](https://forum.plexim.com/t/trigger-activated-trigger-activated-out-of-sync/2882 "2026-02-27T21:20:07Z")

</div>

I am performing DC motor control using the STM32 NUCLEO-F303RE. Initially, I am only testing the current loop, applying a constant current reference of 1.5 A. However, the trigger is not working as expected. I configu…

---

## [How to configure the existing LLC resonant converter demo model for TI C2000 based on available model](https://forum.plexim.com/t/how-to-configure-the-existing-llc-resonant-converter-demo-model-for-ti-c2000-based-on-available-model/2835)

<div class="topic-metadata">

**Author:** [@imdaonlyjuan](https://forum.plexim.com/u/imdaonlyjuan)\
**Replies:** 5\
**Last updated:** [February 10, 2026, 4:41pm UTC](https://forum.plexim.com/t/how-to-configure-the-existing-llc-resonant-converter-demo-model-for-ti-c2000-based-on-available-model/2835 "2026-02-10T16:41:12Z")

</div>

Good day! I am currently working on an LLC resonant converter to be implemented using PLECS. In the lab, we currently have an RT Box, a TI F28069 LaunchPad, and a LaunchPad-Nucleo Interface board. I am planning to do a h…

---

## [Implementing phase shift for PSFB converter using TI C2000 Target Blocks](https://forum.plexim.com/t/implementing-phase-shift-for-psfb-converter-using-ti-c2000-target-blocks/2845)

<div class="topic-metadata">

**Author:** [@Shamanth](https://forum.plexim.com/u/Shamanth)\
**Replies:** 1\
**Last updated:** [February 10, 2026, 3:09pm UTC](https://forum.plexim.com/t/implementing-phase-shift-for-psfb-converter-using-ti-c2000-target-blocks/2845 "2026-02-10T15:09:35Z")

</div>

Dear Team, I am currently working on a Phase-Shifted Full Bridge (PSFB) converter simulation in PLECS Standalone using a peak current mode control technique. In the non–code-generation model, the peak current controller…

---

## [Error in building the program. Error in build step #5 (Make): Make process exited with code 2](https://forum.plexim.com/t/error-in-building-the-program-error-in-build-step-5-make-make-process-exited-with-code-2/2818)

<div class="topic-metadata">

**Author:** [@chiara](https://forum.plexim.com/u/chiara)\
**Replies:** 3\
**Last updated:** [January 22, 2026, 5:38pm UTC](https://forum.plexim.com/t/error-in-building-the-program-error-in-build-step-5-make-make-process-exited-with-code-2/2818 "2026-01-22T17:38:40Z")

</div>

Good evening everyone, I have a custom board with an STM32G474RE microprocessor that works perfectly when programmed with STM32CubeIDE. Problems arise when I try to use PLECS Coder: I cannot compile or flash the firmwar…

[Next page](https://forum.plexim.com/c/coder/8.md?page=1)
