<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amken USA</title>
    <description>The latest articles on DEV Community by Amken USA (@amken3d).</description>
    <link>https://dev.to/amken3d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2295668%2F0809be74-b0c8-49f8-8849-8b0e7b3fa57b.png</url>
      <title>DEV Community: Amken USA</title>
      <link>https://dev.to/amken3d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amken3d"/>
    <language>en</language>
    <item>
      <title>Why I wrote an entire RP2350 SDK in pure ARM assembly</title>
      <dc:creator>Amken USA</dc:creator>
      <pubDate>Sun, 24 May 2026 12:59:00 +0000</pubDate>
      <link>https://dev.to/amken3d/why-i-wrote-an-entire-rp2350-sdk-in-pure-arm-assembly-2jf5</link>
      <guid>https://dev.to/amken3d/why-i-wrote-an-entire-rp2350-sdk-in-pure-arm-assembly-2jf5</guid>
      <description>&lt;p&gt;This post lives at the canonical source on ticktrace.io. Read it there for the latest version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.ticktrace.io/blog/why-pure-assembly/" rel="noopener noreferrer"&gt;Why I wrote an entire RP2350 SDK in pure ARM assembly&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;ticktrace is a pure-assembly firmware SDK for the Raspberry Pi RP2350. The default blinky is just 1192 bytes. The toolchain you&lt;br&gt;
  install to build it is 5.6 MB. No &lt;code&gt;gcc&lt;/code&gt;, no &lt;code&gt;newlib&lt;/code&gt;, no &lt;code&gt;libstdc++&lt;/code&gt;. The most minimalist, yet powerful SDK for the RP2 family.&lt;/p&gt;
&lt;h2&gt;
  
  
  What pure assembly actually looks like
&lt;/h2&gt;

&lt;p&gt;People hear "assembly" and picture something unreadable. Here is the entire &lt;code&gt;main&lt;/code&gt; function of the default firmware. This is the actual source, line for line, from &lt;a href="https://github.com/ticktrace-sdk/rp-asm/blob/main/src/main.S" rel="noopener noreferrer"&gt;&lt;code&gt;src/main.S&lt;/code&gt;&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    .thumb_func
    .global main
main:
    @ ---- Clock tree bring-up ---------------------------------------------
    bl      xosc_init                       @ XOSC stable
    bl      pll_sys_150_mhz                 @ pll_sys = 150 MHz
    bl      pll_usb_48_mhz                  @ pll_usb = 48 MHz
    bl      clocks_init                     @ wire muxes
    bl      tick_init                       @ 1 MHz tick to TIMER0/1/WDG
    bl      watchdog_disable                @ explicit safe state

    @ ---- Peripheral init at the new clock rate ---------------------------
    bl      gpio_led_init                   @ LED on GP25
    bl      uart0_init                      @ wrong baud (computed for 12 MHz)
    bl      clocks_post_pll_uart_baud_fixup @ fix to 150 MHz divisors

    ldr     r0, =banner
    bl      uart0_puts

.Lloop:
    bl      gpio_led_toggle

    @ 3-cycle inner body (subs + bne) at 150 MHz = 20 ns / iteration.
    @ DELAY_COUNT = 12_500_000 -&amp;gt; 250 ms half-period -&amp;gt; ~2 Hz blink.
    ldr     r0, =DELAY_COUNT_150MHZ
1:  subs    r0, #1
    bne     1b

    b       .Lloop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read the full version on the blog.There is also an entire 14 chapter book that walks you through the basics of Assembly on this family of microcontroller.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/ticktrace-sdk/rp-asm" rel="noopener noreferrer"&gt;github.com/ticktrace-sdk/rp-asm&lt;/a&gt;&lt;br&gt;
  Site: &lt;a href="https://www.ticktrace.io" rel="noopener noreferrer"&gt;ticktrace.io&lt;/a&gt;&lt;br&gt;
  Book: &lt;a href="https://www.ticktrace.io/book" rel="noopener noreferrer"&gt;Learning Assembly with ticktrace&lt;/a&gt;&lt;/p&gt;

</description>
      <category>iot</category>
      <category>assembly</category>
      <category>arm</category>
      <category>raspberrypi</category>
    </item>
  </channel>
</rss>
