# \#plecs-coder

**URL:** https://forum.plexim.com/tag/plecs-coder/281.md

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

---

## [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…

---

## [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…

---

## [Discrepancy Between RT Box 2 Results and Offline Simulation in PLECS 4.9.5](https://forum.plexim.com/t/discrepancy-between-rt-box-2-results-and-offline-simulation-in-plecs-4-9-5/3085)

<div class="topic-metadata">

**Author:** [@dudu7963](https://forum.plexim.com/u/dudu7963)\
**Replies:** 2\
**Last updated:** [June 2, 2026, 7:29am UTC](https://forum.plexim.com/t/discrepancy-between-rt-box-2-results-and-offline-simulation-in-plecs-4-9-5/3085 "2026-06-02T07:29:45Z")

</div>

Issue description: I have encountered an issue with the PLECS Coder for HIL. Attachments: PLECS model (updated) scope figures HIL(3)(1) (1).plecs (308.7 KB) In the figure: Figure 1: RT Box 2 results Figu…

---

## [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…

---

## [Bandwidth Limits in Control Loops: A Delay-Based Perspective](https://forum.plexim.com/t/bandwidth-limits-in-control-loops-a-delay-based-perspective/3004)

<div class="topic-metadata">

**Author:** [@Beat\_Arnet](https://forum.plexim.com/u/Beat_Arnet)\
**Replies:** 0\
**Last updated:** [April 16, 2026, 6:44pm UTC](https://forum.plexim.com/t/bandwidth-limits-in-control-loops-a-delay-based-perspective/3004 "2026-04-16T18:44:06Z")

</div>

« La petite constante de temps, souvent, ce sont les petites choses qui comptent le plus » Prof. Hansruedi Bühler, EPFL When designing a control loop, a key question is: how much control bandwidth can I achieve? Th…

---

## [PWM Harmonic Spectrum: Analog and Digital Controllers Compared](https://forum.plexim.com/t/pwm-harmonic-spectrum-analog-and-digital-controllers-compared/2948)

<div class="topic-metadata">

**Author:** [@Beat\_Arnet](https://forum.plexim.com/u/Beat_Arnet)\
**Replies:** 0\
**Last updated:** [March 27, 2026, 11:54am UTC](https://forum.plexim.com/t/pwm-harmonic-spectrum-analog-and-digital-controllers-compared/2948 "2026-03-27T11:54:58Z")

</div>

You have run a frequency sweep, in PLECS or on the bench, and something looks off near Nyquist: the phase hooks upward instead of continuing its descent, or the gain rolls off more steeply than your plant model predict…

---

## [PWM Modulator Delay: Analysis verified by PLECS](https://forum.plexim.com/t/pwm-modulator-delay-analysis-verified-by-plecs/2928)

<div class="topic-metadata">

**Author:** [@Beat\_Arnet](https://forum.plexim.com/u/Beat_Arnet)\
**Replies:** 0\
**Last updated:** [March 18, 2026, 4:18pm UTC](https://forum.plexim.com/t/pwm-modulator-delay-analysis-verified-by-plecs/2928 "2026-03-18T16:18:42Z")

</div>

Predicting the delay and magnitude attenuation introduced by a PWM modulator is one of the less intuitive steps in designing a digital control loop. Get it wrong and the loop behaves differently in hardware than expect…

---

## [Current consumption](https://forum.plexim.com/t/current-consumption/2915)

<div class="topic-metadata">

**Author:** [@Rafael\_de\_Almeida](https://forum.plexim.com/u/Rafael_de_Almeida)\
**Replies:** 1\
**Last updated:** [March 11, 2026, 1:35pm UTC](https://forum.plexim.com/t/current-consumption/2915 "2026-03-11T13:35:24Z")

</div>

Good afternoon. I would like to know if it is possible to use the DAC block in PLECS to evaluate the current consumption of the STM32.

---

## [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…

---

## [CPU Overruns and CPU Usage - A Debugging Guide](https://forum.plexim.com/t/cpu-overruns-and-cpu-usage-a-debugging-guide/2877)

<div class="topic-metadata">

**Author:** [@sullivan](https://forum.plexim.com/u/sullivan)\
**Replies:** 0\
**Last updated:** [February 23, 2026, 10:26pm UTC](https://forum.plexim.com/t/cpu-overruns-and-cpu-usage-a-debugging-guide/2877 "2026-02-23T22:26:57Z")

</div>

Embedded CPU Usage Problems - Diagnosis and Troubleshooting This post will overview everything needed to know about CPU usage when it comes to the PLECS Coder embedded micro-controller (MCU) targets. This includes the TI…

---

## [Challenge modeling switch S3 in 4-Port DC-DC Converter on RT Box 1 (Sub-cycle Averaging issue)](https://forum.plexim.com/t/challenge-modeling-switch-s3-in-4-port-dc-dc-converter-on-rt-box-1-sub-cycle-averaging-issue/2740)

<div class="topic-metadata">

**Author:** [@FredericoSaviano](https://forum.plexim.com/u/FredericoSaviano)\
**Replies:** 3\
**Last updated:** [December 10, 2025, 4:23pm UTC](https://forum.plexim.com/t/challenge-modeling-switch-s3-in-4-port-dc-dc-converter-on-rt-box-1-sub-cycle-averaging-issue/2740 "2025-12-10T16:23:23Z")

</div>

Hello everyone, I am currently working on a HIL simulation of a 4-port DC-DC converter topology (shown in the attached images) using the PLECS RT Box 1 controlled by an external DSP. The system operates with a swi…

---

## [FMU Workflow in PLECS](https://forum.plexim.com/t/fmu-workflow-in-plecs/2713)

<div class="topic-metadata">

**Author:** [@Johannes\_Bruderer](https://forum.plexim.com/u/Johannes_Bruderer)\
**Replies:** 0\
**Last updated:** [November 20, 2025, 6:12pm UTC](https://forum.plexim.com/t/fmu-workflow-in-plecs/2713 "2025-11-20T18:12:26Z")

</div>

PLECS 5.0 supports versions 2.0 and 3.0 of the Functional Mock-up Interface (FMI) standard and enables the use of Functional Mock-up Units (FMUs) for both Model Exchange and Co-Simulation. This article describes the exp…

---

## [Activation of the action qualifier option on plecs](https://forum.plexim.com/t/activation-of-the-action-qualifier-option-on-plecs/2603)

<div class="topic-metadata">

**Author:** [@issa](https://forum.plexim.com/u/issa)\
**Replies:** 3\
**Last updated:** [October 16, 2025, 3:23pm UTC](https://forum.plexim.com/t/activation-of-the-action-qualifier-option-on-plecs/2603 "2025-10-16T15:23:03Z")

</div>

I am a beginner with PLECS, but I saw that it is possible to use the graphical blocks from TI to generate C code. My goal is to obtain the waveform on EPWMA (like in the figure), using only the Action Qualifier features…

---

## [PLECS code generator\_TMDSCNCD28379D](https://forum.plexim.com/t/plecs-code-generator-tmdscncd28379d/1366)

<div class="topic-metadata">

**Author:** [@oming0731](https://forum.plexim.com/u/oming0731)\
**Replies:** 2\
**Last updated:** [October 6, 2025, 6:10pm UTC](https://forum.plexim.com/t/plecs-code-generator-tmdscncd28379d/1366 "2025-10-06T18:10:56Z")

</div>

Hello, I am currently working on implementing a an inverter using PLECS(Controller : TMDSCNCD28379D). In the system, current measurement is performed using sigma-delta modulator. Grid Output Current Measurement: Senso…

---

## [Controller Memory Data Error](https://forum.plexim.com/t/controller-memory-data-error/2595)

<div class="topic-metadata">

**Author:** [@brandontm85](https://forum.plexim.com/u/brandontm85)\
**Replies:** 1\
**Last updated:** [September 29, 2025, 4:08pm UTC](https://forum.plexim.com/t/controller-memory-data-error/2595 "2025-09-29T16:08:14Z")

</div>

Plecs Control.plecs (64.5 KB) I am getting this error on the power protection for the memory, and I do not know how to solve it while trying to get this code to work for an RT box.

---

## [Plecs generate code for stm32cubeIDE](https://forum.plexim.com/t/plecs-generate-code-for-stm32cubeide/2493)

<div class="topic-metadata">

**Author:** [@Rafael\_de\_Almeida](https://forum.plexim.com/u/Rafael_de_Almeida)\
**Replies:** 2\
**Last updated:** [August 20, 2025, 9:32pm UTC](https://forum.plexim.com/t/plecs-generate-code-for-stm32cubeide/2493 "2025-08-20T21:32:11Z")

</div>

How do I load code generated by PLECS into STM32CubeIDE? Note: I set it up to generate code from a circuit in PLECS, but I just can’t load it as an STM32 project.

---

## [C2000 Powerstage Protection long delay by turning off](https://forum.plexim.com/t/c2000-powerstage-protection-long-delay-by-turning-off/2188)

<div class="topic-metadata">

**Author:** [@Z.W](https://forum.plexim.com/u/Z.W)\
**Replies:** 6\
**Last updated:** [June 9, 2025, 9:18pm UTC](https://forum.plexim.com/t/c2000-powerstage-protection-long-delay-by-turning-off/2188 "2025-06-09T21:18:15Z")

</div>

Hi there, I am currently working on a PLECS model and try to generate code to run on a C2000 DSP (TMS320F28379, 2xCPU). In PLECS model we use Powerstage Protection block to stop PWM outputs during overcurrent. The Signa…

---

## [How to Model a 3-Phase STATCOM Using Three Independent Single-Phase Units in PLECS?](https://forum.plexim.com/t/how-to-model-a-3-phase-statcom-using-three-independent-single-phase-units-in-plecs/2243)

<div class="topic-metadata">

**Author:** [@Azeef99](https://forum.plexim.com/u/Azeef99)\
**Replies:** 1\
**Last updated:** [June 6, 2025, 3:24pm UTC](https://forum.plexim.com/t/how-to-model-a-3-phase-statcom-using-three-independent-single-phase-units-in-plecs/2243 "2025-06-06T15:24:52Z")

</div>

Hello, I’m working on building a 3-phase STATCOM model in PLECS for an unbalanced load system. My approach is to use three independently controlled single-phase STATCOMs, each connected to one phase. The goal is for eac…

---

## [Plecs Code generation using c2000 tsp](https://forum.plexim.com/t/plecs-code-generation-using-c2000-tsp/2148)

<div class="topic-metadata">

**Author:** [@Kirankumar](https://forum.plexim.com/u/Kirankumar)\
**Replies:** 3\
**Last updated:** [May 30, 2025, 6:21pm UTC](https://forum.plexim.com/t/plecs-code-generation-using-c2000-tsp/2148 "2025-05-30T18:21:40Z")

</div>

Hi we are following the Getting Started with the TI C2000 Target Support Package to generate code in code composer studio but we are getting these errors .Please see the attached error screenshots. Please let us kn…

---

## [Announcing Embedded Office Hours: Controller & Filter Discretization with PLECS - May 29, 2025](https://forum.plexim.com/t/announcing-embedded-office-hours-controller-filter-discretization-with-plecs-may-29-2025/2159)

<div class="topic-metadata">

**Author:** [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Replies:** 0\
**Last updated:** [May 19, 2025, 6:32pm UTC](https://forum.plexim.com/t/announcing-embedded-office-hours-controller-filter-discretization-with-plecs-may-29-2025/2159 "2025-05-19T18:32:45Z")

</div>

From Continuous to Discrete: Controller & Filter Discretization with PLECS Engineers often design filters and controllers in the continuous domain - it’s more intuitive and makes tuning straightforward. But when it come…

---

## [Plecs Code generation with c2000ware](https://forum.plexim.com/t/plecs-code-generation-with-c2000ware/2141)

<div class="topic-metadata">

**Author:** [@sairaj](https://forum.plexim.com/u/sairaj)\
**Replies:** 5\
**Last updated:** [May 15, 2025, 4:59pm UTC](https://forum.plexim.com/t/plecs-code-generation-with-c2000ware/2141 "2025-05-15T16:59:01Z")

</div>

Hi iam using plecs c2000 ware To create a code generation file .as we are checking the generated code files some of the files are missing like the header files declared inside the hal.c file

---

## [Announcing Embedded Office Hours: TI C2000 ADCs - May 2, 2025](https://forum.plexim.com/t/announcing-embedded-office-hours-ti-c2000-adcs-may-2-2025/2082)

<div class="topic-metadata">

**Author:** [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Replies:** 0\
**Last updated:** [April 29, 2025, 9:44pm UTC](https://forum.plexim.com/t/announcing-embedded-office-hours-ti-c2000-adcs-may-2-2025/2082 "2025-04-29T21:44:43Z")

</div>

In our next Embedded Office Hours session we will be covering one of the most essential microcontroller peripherals for controlling power converters - the ADC! And more specifically, ADCs for Texas Instruments C2000 MCUs…

---

## [Exporting scope trace](https://forum.plexim.com/t/exporting-scope-trace/1691)

<div class="topic-metadata">

**Author:** [@mm1111](https://forum.plexim.com/u/mm1111)\
**Replies:** 4\
**Last updated:** [January 22, 2025, 2:36pm UTC](https://forum.plexim.com/t/exporting-scope-trace/1691 "2025-01-22T14:36:34Z")

</div>

Hello, is there a way to export traces from scope that i get during external mode? I am using launchpad LAUNCHXL-F28379D. It says that i cannot use block toFile. Thanks

---

## [Unwanted connection between STM32 pins](https://forum.plexim.com/t/unwanted-connection-between-stm32-pins/1661)

<div class="topic-metadata">

**Author:** [@HMgeorg](https://forum.plexim.com/u/HMgeorg)\
**Replies:** 1\
**Last updated:** [January 13, 2025, 6:59pm UTC](https://forum.plexim.com/t/unwanted-connection-between-stm32-pins/1661 "2025-01-13T18:59:07Z")

</div>

Hello everyone, I use the PLECS Coder with the STM32 G474 Nucleo board and am basically very happy with it. However, I have encountered a problem with my current project. I am using the PB6 as a digital input (pull-up…

---

## [Is there a way to log data acquired in External Mode?](https://forum.plexim.com/t/is-there-a-way-to-log-data-acquired-in-external-mode/1398)

<div class="topic-metadata">

**Author:** [@Gabriele\_Lozito](https://forum.plexim.com/u/Gabriele_Lozito)\
**Replies:** 2\
**Last updated:** [September 24, 2024, 6:55am UTC](https://forum.plexim.com/t/is-there-a-way-to-log-data-acquired-in-external-mode/1398 "2024-09-24T06:55:08Z")

</div>

I’m using an STM32 microcontroller to sample some voltages/currents of a power converter and use them in a control loop to generate the desired PWM. Since the application involves a lenghty battery charging/discharging,…

---

## [CCS support version](https://forum.plexim.com/t/ccs-support-version/1371)

<div class="topic-metadata">

**Author:** [@oming0731](https://forum.plexim.com/u/oming0731)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 1:34pm UTC](https://forum.plexim.com/t/ccs-support-version/1371 "2024-07-01T13:34:45Z")

</div>

Dear PLECS, I am using PLECS for TI MCU code generator. However, some function does not support in the PLECS code generator so I need to modify in CCS. I have 12.7.1.0001 CCS. Does it support this version? Best rega…

---

## [Overrun with Nucleo-G474RE](https://forum.plexim.com/t/overrun-with-nucleo-g474re/1365)

<div class="topic-metadata">

**Author:** [@raphael.baumeler](https://forum.plexim.com/u/raphael.baumeler)\
**Replies:** 1\
**Last updated:** [May 22, 2024, 10:05am UTC](https://forum.plexim.com/t/overrun-with-nucleo-g474re/1365 "2024-05-22T10:05:27Z")

</div>

Dear Plexim Team I do not understand what it means when the code reaches overrun = 1 in the dispatcher\_stm32g4xx.c File. The model in the attachement is very simple and i think it should be possible to reach a sampling…

---

## [Generate code into STM32CubeIDE project](https://forum.plexim.com/t/generate-code-into-stm32cubeide-project/1362)

<div class="topic-metadata">

**Author:** [@raphael.baumeler](https://forum.plexim.com/u/raphael.baumeler)\
**Replies:** 3\
**Last updated:** [May 16, 2024, 9:32am UTC](https://forum.plexim.com/t/generate-code-into-stm32cubeide-project/1362 "2024-05-16T09:32:41Z")

</div>

Dear Plecs Team I do not understand how i can generate code into an existing STM32CubeIDE project.I have an existing project which displays text on a ST7735 1.44’’ display. Now i want to build a additional project with …

---

## ["Unable to arm data capture. The connection to the server has been closed" error](https://forum.plexim.com/t/unable-to-arm-data-capture-the-connection-to-the-server-has-been-closed-error/1320)

<div class="topic-metadata">

**Author:** [@oming0731](https://forum.plexim.com/u/oming0731)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 3:35pm UTC](https://forum.plexim.com/t/unable-to-arm-data-capture-the-connection-to-the-server-has-been-closed-error/1320 "2024-02-21T15:35:28Z")

</div>

Hi, Plecs, I am using TI microcontroller using Plecs. I need to get a digital data from MCU to Plecs. But when I try to get the data, it shows the below error. “Unable to arm data capture. The connection to the serve…

---

## [Interfacing an INA219 via I2C on STM32](https://forum.plexim.com/t/interfacing-an-ina219-via-i2c-on-stm32/1298)

<div class="topic-metadata">

**Author:** [@Gabriele\_Lozito](https://forum.plexim.com/u/Gabriele_Lozito)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 3:02pm UTC](https://forum.plexim.com/t/interfacing-an-ina219-via-i2c-on-stm32/1298 "2023-12-14T15:02:37Z")

</div>

Hello! I’m trying to develop a controller for a DCDC converter for solar MPPT. For this to work, the system needs a power meter at the input of the DCDC converter. I am used to work with INA219 for these applications. I…

[Next page](https://forum.plexim.com/tag/plecs-coder/281.md?match_all_tags=true&page=1&tags%5B%5D=plecs-coder)
