# Coder

**URL:** https://forum.plexim.com/c/coder/8.md?page=1

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

**Page:** 2

---

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

---

## [PLECS Coder block execution order in generated code (graphical order vs. signal dependency)](https://forum.plexim.com/t/plecs-coder-block-execution-order-in-generated-code-graphical-order-vs-signal-dependency/2793)

<div class="topic-metadata">

**Author:** [@Parth](https://forum.plexim.com/u/Parth)\
**Replies:** 1\
**Last updated:** [January 9, 2026, 4:49pm UTC](https://forum.plexim.com/t/plecs-coder-block-execution-order-in-generated-code-graphical-order-vs-signal-dependency/2793 "2026-01-09T16:49:03Z")

</div>

Hello, I am using PLECS Coder to generate embedded C code for a digital power converter controller (typical chain: ADC acquisition → Clarke/Park transforms → current controllers with decoupling/feedforward → inverse tra…

---

## [PI blocks integrating differently with PLECS blocks vs. with C2000 blocks and SIL approach - F280039C LaunchPad](https://forum.plexim.com/t/pi-blocks-integrating-differently-with-plecs-blocks-vs-with-c2000-blocks-and-sil-approach-f280039c-launchpad/2790)

<div class="topic-metadata">

**Author:** [@gutovsk](https://forum.plexim.com/u/gutovsk)\
**Replies:** 2\
**Last updated:** [January 7, 2026, 3:44pm UTC](https://forum.plexim.com/t/pi-blocks-integrating-differently-with-plecs-blocks-vs-with-c2000-blocks-and-sil-approach-f280039c-launchpad/2790 "2026-01-07T15:44:39Z")

</div>

Dear Plexim Community, For context: I am have prototyped a low-voltage (48V TO 24V, 2 A) LLC half-bridge converter with GaN switches and synchronous rectification operating at 500 kHz. I have used a PLECS simulation to …

---

## [Maximum PWM Frequency achievable with CI2000 F280039C LaunchPad](https://forum.plexim.com/t/maximum-pwm-frequency-achievable-with-ci2000-f280039c-launchpad/2785)

<div class="topic-metadata">

**Author:** [@gutovsk](https://forum.plexim.com/u/gutovsk)\
**Replies:** 1\
**Last updated:** [January 6, 2026, 6:58pm UTC](https://forum.plexim.com/t/maximum-pwm-frequency-achievable-with-ci2000-f280039c-launchpad/2785 "2026-01-06T18:58:15Z")

</div>

Dear Plexim community, I have been struggling with a few questions regarding the usage of PWM (Variable) TI C2000 block and how does it relate to the discretization step. Ideally, I need to generate a 2x 500 kHz PWM si…

---

## [Error during execution of code generation method 'Finalize'](https://forum.plexim.com/t/error-during-execution-of-code-generation-method-finalize/2789)

<div class="topic-metadata">

**Author:** [@Kailash](https://forum.plexim.com/u/Kailash)\
**Replies:** 1\
**Last updated:** [January 6, 2026, 6:22pm UTC](https://forum.plexim.com/t/error-during-execution-of-code-generation-method-finalize/2789 "2026-01-06T18:22:49Z")

</div>

When I connect the TI launchpad with PLECS on that time I facing the error of given below.

---

## [Is it necessary to discretize control blocks before Run from Coder or Generating Code for CCS on C2000 Launchpad?](https://forum.plexim.com/t/is-it-necessary-to-discretize-control-blocks-before-run-from-coder-or-generating-code-for-ccs-on-c2000-launchpad/2786)

<div class="topic-metadata">

**Author:** [@gutovsk](https://forum.plexim.com/u/gutovsk)\
**Replies:** 1\
**Last updated:** [January 5, 2026, 9:53pm UTC](https://forum.plexim.com/t/is-it-necessary-to-discretize-control-blocks-before-run-from-coder-or-generating-code-for-ccs-on-c2000-launchpad/2786 "2026-01-05T21:53:28Z")

</div>

Dear Plexim Community, I have simulated a half-bridge LLC converter model with continuous control implementation, successfully reaching my requirements. Now, I would like to run the control law in the F280039C Launchpa…

---

## [Variable CAN ID for the STM32 CAN transmit block](https://forum.plexim.com/t/variable-can-id-for-the-stm32-can-transmit-block/2762)

<div class="topic-metadata">

**Author:** [@HMgeorg](https://forum.plexim.com/u/HMgeorg)\
**Replies:** 3\
**Last updated:** [December 18, 2025, 4:12pm UTC](https://forum.plexim.com/t/variable-can-id-for-the-stm32-can-transmit-block/2762 "2025-12-18T16:12:30Z")

</div>

Dear PLEXIM forum, I would like to establish CAN communication between several STM32 controllers. The same software runs on each controller, and a DIP switch is used to assign an address to the controller. Depending on…

---

## [Problems with application of ePWM block in Digital Control](https://forum.plexim.com/t/problems-with-application-of-epwm-block-in-digital-control/2255)

<div class="topic-metadata">

**Author:** [@erick](https://forum.plexim.com/u/erick)\
**Replies:** 7\
**Last updated:** [December 4, 2025, 8:51pm UTC](https://forum.plexim.com/t/problems-with-application-of-epwm-block-in-digital-control/2255 "2025-12-04T20:51:03Z")

</div>

Hello everyone, In my past simulation-evaluation exercises using the PLECS Coder 1.10.5 version with PLECS Standalone 4.9.4 I had implemented a discrete PI controller in a single-loop to control the current, also becaus…

---

## [Sample time for task 0 on CPU 0 too small - raise sample time or system clock rate](https://forum.plexim.com/t/sample-time-for-task-0-on-cpu-0-too-small-raise-sample-time-or-system-clock-rate/2735)

<div class="topic-metadata">

**Author:** [@sahdev](https://forum.plexim.com/u/sahdev)\
**Replies:** 1\
**Last updated:** [December 3, 2025, 2:30pm UTC](https://forum.plexim.com/t/sample-time-for-task-0-on-cpu-0-too-small-raise-sample-time-or-system-clock-rate/2735 "2025-12-03T14:30:30Z")

</div>

Hope everyone is doing well. I am using F2837xD LaunchPad for the PWM generation by using ePWM, I am facing two problems. The first problem is when I add the ADC converter in the PLECS for the implementation in F2837xD, …

---

## [How can I convert the analog circuitry of the frequency converter to C200 compatible mode (by burning it into the 28069M)?](https://forum.plexim.com/t/how-can-i-convert-the-analog-circuitry-of-the-frequency-converter-to-c200-compatible-mode-by-burning-it-into-the-28069m/2689)

<div class="topic-metadata">

**Author:** [@PCL](https://forum.plexim.com/u/PCL)\
**Replies:** 5\
**Last updated:** [November 25, 2025, 2:13pm UTC](https://forum.plexim.com/t/how-can-i-convert-the-analog-circuitry-of-the-frequency-converter-to-c200-compatible-mode-by-burning-it-into-the-28069m/2689 "2025-11-25T14:13:11Z")

</div>

Dear all, I’m using a TI C200 to create a frequency converter closed loop. The waveforms simulated in PLECS are correct, but after programming to a 28069MHz processor, the waveform measured with an oscilloscope is fixed…

---

## [Static void Tasks(bool aInit, void \* const aParam) , Question about the content of this function](https://forum.plexim.com/t/static-void-tasks-bool-ainit-void-const-aparam-question-about-the-content-of-this-function/2616)

<div class="topic-metadata">

**Author:** [@rgartemann](https://forum.plexim.com/u/rgartemann)\
**Replies:** 8\
**Last updated:** [November 24, 2025, 6:17pm UTC](https://forum.plexim.com/t/static-void-tasks-bool-ainit-void-const-aparam-question-about-the-content-of-this-function/2616 "2025-11-24T18:17:25Z")

</div>

What is ‘Controller\_CPU0\_errorStatus’ and where can I see its content? How does it behave when the code is in the target MCU (TI2000)? Where is the variable ‘aInit’ used?

---

## [Plecs coder to CSS project](https://forum.plexim.com/t/plecs-coder-to-css-project/2712)

<div class="topic-metadata">

**Author:** [@MRB](https://forum.plexim.com/u/MRB)\
**Replies:** 1\
**Last updated:** [November 21, 2025, 4:28pm UTC](https://forum.plexim.com/t/plecs-coder-to-css-project/2712 "2025-11-21T16:28:38Z")

</div>

Hi! I have problems with setting up project generated by Plecs in CSS environment. My board is F28379D LaunchPadXL. I am using recommended versions of CSS 12.8 and Compiler version 22.6.1.LTS. I am following tutorial: h…

---

## [Using VREFBUF (analog internal reference) on STM32 G431RB](https://forum.plexim.com/t/using-vrefbuf-analog-internal-reference-on-stm32-g431rb/1920)

<div class="topic-metadata">

**Author:** [@rbjacobs](https://forum.plexim.com/u/rbjacobs)\
**Replies:** 7\
**Last updated:** [November 17, 2025, 10:05pm UTC](https://forum.plexim.com/t/using-vrefbuf-analog-internal-reference-on-stm32-g431rb/1920 "2025-11-17T22:05:45Z")

</div>

We have a board with an STM32G431RB MCU, which uses the MCU’s voltage reference buffer (VREFBUF) to produce the voltage reference for the ADCs. There is no option to enable the voltage reference buffer under Coder Optio…

---

## [Additional PWM - using XBAR inside Plecs Coder](https://forum.plexim.com/t/additional-pwm-using-xbar-inside-plecs-coder/2669)

<div class="topic-metadata">

**Author:** [@MRB](https://forum.plexim.com/u/MRB)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 2:10pm UTC](https://forum.plexim.com/t/additional-pwm-using-xbar-inside-plecs-coder/2669 "2025-11-03T14:10:02Z")

</div>

Hi, Is there any way I could use additional PWM from XBAR through Plecs Coder? I know I can initialize it with Native Code block, but how to change PWM value during run? Could you help me, how to refer to the input a…

---

## [Can PLECS program generic custom STM32 boards?](https://forum.plexim.com/t/can-plecs-program-generic-custom-stm32-boards/2652)

<div class="topic-metadata">

**Author:** [@erick](https://forum.plexim.com/u/erick)\
**Replies:** 4\
**Last updated:** [October 27, 2025, 2:36pm UTC](https://forum.plexim.com/t/can-plecs-program-generic-custom-stm32-boards/2652 "2025-10-27T14:36:30Z")

</div>

Hello PLECS community, in recent days I have been trying to make a communication between a custom board using STLinkv2 and PLECS, however, I have not been able to communicate them, I am using the STM32G431KBT6 microcontr…

---

## [Powerstage Protection in open-loop circuits](https://forum.plexim.com/t/powerstage-protection-in-open-loop-circuits/2638)

<div class="topic-metadata">

**Author:** [@erick](https://forum.plexim.com/u/erick)\
**Replies:** 3\
**Last updated:** [October 23, 2025, 6:07pm UTC](https://forum.plexim.com/t/powerstage-protection-in-open-loop-circuits/2638 "2025-10-23T18:07:03Z")

</div>

Hello, Plexim community I’ve been wondering how to properly run a simulation of a basic DC/DC converter topology for a while. The first thing I noticed is that the inrush current is a real deal in the application. I trie…

---

## [Scope preview during online mode TI](https://forum.plexim.com/t/scope-preview-during-online-mode-ti/2657)

<div class="topic-metadata">

**Author:** [@MRB](https://forum.plexim.com/u/MRB)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 8:15am UTC](https://forum.plexim.com/t/scope-preview-during-online-mode-ti/2657 "2025-10-23T08:15:25Z")

</div>

Hi, I would like to know if there is possibility to register long term values in Plecs coder. For example I would like to see estimated temperature. Sampling of this value can be very low (e.g. 1 sample per second), But …

---

## [3 phase control system and Plant model](https://forum.plexim.com/t/3-phase-control-system-and-plant-model/2641)

<div class="topic-metadata">

**Author:** [@brandontm85](https://forum.plexim.com/u/brandontm85)\
**Replies:** 1\
**Last updated:** [October 23, 2025, 3:02am UTC](https://forum.plexim.com/t/3-phase-control-system-and-plant-model/2641 "2025-10-23T03:02:54Z")

</div>

For my 3-phase control system, I am just trying to be able to build this model on my F28p55x controller. I keep running into this error when I try to build it. Having me stuck on about the memory blocks which is holdin…

---

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

---

## [STM32 coder in Linux](https://forum.plexim.com/t/stm32-coder-in-linux/2631)

<div class="topic-metadata">

**Author:** [@dfigueroa](https://forum.plexim.com/u/dfigueroa)\
**Replies:** 1\
**Last updated:** [October 16, 2025, 2:30pm UTC](https://forum.plexim.com/t/stm32-coder-in-linux/2631 "2025-10-16T14:30:55Z")

</div>

Hello, I’m a Linux user, in particular, a Fedora 42 version user. I would like to install the STM32 TSP packages to use it in my OS but the website to install the TSP’s is only showing that is available for Windows and…

---

## [MCU Lockup F28379d](https://forum.plexim.com/t/mcu-lockup-f28379d/2620)

<div class="topic-metadata">

**Author:** [@rgartemann](https://forum.plexim.com/u/rgartemann)\
**Replies:** 2\
**Last updated:** [October 10, 2025, 9:32pm UTC](https://forum.plexim.com/t/mcu-lockup-f28379d/2620 "2025-10-10T21:32:28Z")

</div>

\-Hello, We have created a project based on MCU F28379d using Plecs 4.9.8 and TI C2000 1.10.5. We have now loaded this software into a prototype. Unfortunately, we have noticed that CPU-0 stops working. The problem disa…

---

## [Is it possible to choose which pin gets configured as an epwm in the c2000 automatic code generation?](https://forum.plexim.com/t/is-it-possible-to-choose-which-pin-gets-configured-as-an-epwm-in-the-c2000-automatic-code-generation/1126)

<div class="topic-metadata">

**Author:** [@Chatumal](https://forum.plexim.com/u/Chatumal)\
**Replies:** 2\
**Last updated:** [October 6, 2025, 6:13pm UTC](https://forum.plexim.com/t/is-it-possible-to-choose-which-pin-gets-configured-as-an-epwm-in-the-c2000-automatic-code-generation/1126 "2025-10-06T18:13:18Z")

</div>

Is it possible to choose which pin gets configured as an epwm in the c2000 automatic code generation? For example, epwm1A could be configured as gpio\_0 or gpio\_145 in the TI F28379D dsp using c-code. But I don’t see any …

---

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

[Previous page](https://forum.plexim.com/c/coder/8.md)

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