<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to USB Communication for IP Configuration &amp; Application Update – STM32H Series PLC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/26bbbbbcfa/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/26bbbbbcfa/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/26bbbbbcfa/</id><updated>2026-03-30T05:54:20.068000Z</updated><subtitle>Recent posts to USB Communication for IP Configuration &amp; Application Update – STM32H Series PLC</subtitle><entry><title>USB Communication for IP Configuration &amp; Application Update – STM32H Series PLC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/26bbbbbcfa/?limit=25#aee2" rel="alternate"/><published>2026-03-30T05:54:20.068000Z</published><updated>2026-03-30T05:54:20.068000Z</updated><author><name>max1987martin</name><uri>https://forge.codesys.com/u/max1987martin/</uri></author><id>https://forge.codesys.comdc5bd76ac6fb406b9d321f6319e7d4657f8d4237</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;CODESYS does NOT natively support USB for program download on custom STM32 runtimes.&lt;/p&gt;
&lt;p&gt;Best Approach&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Use USB CDC (Virtual COM Port)&lt;br/&gt;
STM32 appears as a COM port on PC&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Make a simple custom protocol&lt;br/&gt;
Commands like: SET_IP, UPLOAD_APP, REBOOT&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use a USB Bootloader (Recommended)&lt;br/&gt;
PC tool sends application via USB&lt;br/&gt;
Bootloader writes to flash&lt;br/&gt;
Reboots into CODESYS runtime&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Result&lt;/strong&gt;&lt;br/&gt;
Change IP via USB &lt;br/&gt;
Update application via USB &lt;br/&gt;
No need to modify CODESYS internals&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Avoid&lt;/strong&gt;&lt;br/&gt;
Trying to directly download from CODESYS IDE over USB (complex + unsupported)&lt;/p&gt;
&lt;p&gt;If you want, I can give a minimal STM32 USB bootloader + protocol example.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>USB Communication for IP Configuration &amp; Application Update – STM32H Series PLC</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/26bbbbbcfa/?limit=25#7e7c" rel="alternate"/><published>2026-02-26T05:26:09.419000Z</published><updated>2026-02-26T05:26:09.419000Z</updated><author><name>kunal-pinetics</name><uri>https://forge.codesys.com/u/kunal-pinetics/</uri></author><id>https://forge.codesys.coma6dcd2704d4f8fdd76d1f498c42108e614fba0f6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I am currently working on a PLC device based on the STM32H series MCU, running CODESYS.&lt;/p&gt;
&lt;p&gt;At the moment, I can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change the Ethernet IP address&lt;/li&gt;
&lt;li&gt;Update/download the PLC application&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;via Ethernet without any issues.&lt;/p&gt;
&lt;p&gt;However, I would like to implement the same functionality over USB (or Serial via USB) instead of Ethernet.&lt;/p&gt;
&lt;p&gt;My goals are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Change the device’s Ethernet IP address via USB&lt;/li&gt;
&lt;li&gt;Download/update the PLC application via USB communication&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Possibly use USB as a service/programming interface&lt;/p&gt;
&lt;p&gt;The hardware platform is based on STM32H series, and I am looking for guidance on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Whether CODESYS supports USB device communication for runtime download&lt;/li&gt;
&lt;li&gt;If a custom USB CDC (Virtual COM Port) implementation is required&lt;/li&gt;
&lt;li&gt;Whether a specific CODESYS runtime configuration is needed&lt;/li&gt;
&lt;li&gt;If a bootloader approach is recommended for application updates via USB&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If anyone has experience implementing USB communication for runtime download or device configuration on an STM32-based PLC, I would really appreciate your guidance.&lt;/p&gt;
&lt;p&gt;Thank you in advance for your help.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>