<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MSPM0 project with VS Code, CMake and GCC - part 7a: middleware example stepper motor control</title><link>/technologies/embedded/b/blog/posts/mspm0-project-with-vs-code-cmake-and-gcc---part-7-middleware-example-stepper-motor-control</link><description>In this blog series, I build a Texas Instruments MSPM0 example with VS Code as IDE, and CMake as build infrastructure. In the next series of posts, I try to create a stepper motor project. It will be based on TI&amp;#39;s stepper motor middlew...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: MSPM0 project with VS Code, CMake and GCC - part 7a: middleware example stepper motor control</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/mspm0-project-with-vs-code-cmake-and-gcc---part-7-middleware-example-stepper-motor-control</link><pubDate>Fri, 25 Sep 2026 11:53:50 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9e2ca2c-8582-462e-b956-52369a253fe9</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I got good progress on MSPM0 and steppers. First understanding that TI example above was key.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m doing now, is to port a Pico design that I made, to the MSPM0.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the same:&amp;nbsp;I&amp;#39;m using a very similar stepper IC driver class, that I wrote for the A4988 IC. Just switched from Pico SDK API to TI&amp;#39;s.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What&amp;#39;s different:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;My Pico design ran the stepper logic on PIO state machines. The MSPM0 family doesn&amp;#39;t have anything like that.&lt;/p&gt;
&lt;p&gt;For the MSPM0 I use the PWM timer capability, and interrupts. Leaning strongly on TI&amp;#39;s example.&lt;/p&gt;
&lt;p&gt;I have a simple example working, that either can spin a motor at a given speed, or that can take a number of steps.&lt;/p&gt;
&lt;p&gt;&lt;img height="243" src="/resized-image/__size/1000x486/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-e9e2ca2c-8582-462e-b956-52369a253fe9/pastedimage1790337109991v1.png" width="500" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here, the STEP pin when asking the firmware to take 10 steps:&lt;/p&gt;
&lt;p&gt;&lt;img height="298" src="/resized-image/__size/994x596/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-e9e2ca2c-8582-462e-b956-52369a253fe9/DS1Z_5F00_QuickPrint1.png" width="497" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=30213&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: MSPM0 project with VS Code, CMake and GCC - part 7a: middleware example stepper motor control</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/mspm0-project-with-vs-code-cmake-and-gcc---part-7-middleware-example-stepper-motor-control</link><pubDate>Sat, 19 Sep 2026 18:57:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9e2ca2c-8582-462e-b956-52369a253fe9</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Another nice update Jan.&lt;/p&gt;
&lt;p&gt;It is too bad they do not have these tools for the older MSP430.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=30213&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: MSPM0 project with VS Code, CMake and GCC - part 7a: middleware example stepper motor control</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/mspm0-project-with-vs-code-cmake-and-gcc---part-7-middleware-example-stepper-motor-control</link><pubDate>Sat, 19 Sep 2026 15:32:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9e2ca2c-8582-462e-b956-52369a253fe9</guid><dc:creator>Qbit</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice update on the series! Great write up on the cmake setup and VS Code project files.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=30213&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: MSPM0 project with VS Code, CMake and GCC - part 7a: middleware example stepper motor control</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/mspm0-project-with-vs-code-cmake-and-gcc---part-7-middleware-example-stepper-motor-control</link><pubDate>Sat, 19 Sep 2026 15:05:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9e2ca2c-8582-462e-b956-52369a253fe9</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I learned that the conversation between GUI and firmware is over debug protocol, not via UART. The GUI knows firmware variable addresses (by inspecting hte binary). And uses the debug instructions to directly set and read those variables.&lt;/p&gt;
&lt;p&gt;So there is no UART to reuse as interface. I tested the VS Code generated firmware by doing the same as TI. Change variable values in a debug session. &lt;br /&gt;That works, and I now know&amp;nbsp;how to start from this code and build my own.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=30213&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>