<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Maksim Zadorskii on Medium]]></title>
        <description><![CDATA[Stories by Maksim Zadorskii on Medium]]></description>
        <link>https://medium.com/@sardox?source=rss-ac2f408c5b26------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*IpiB4HZF29mLnc498OI1mA.jpeg</url>
            <title>Stories by Maksim Zadorskii on Medium</title>
            <link>https://medium.com/@sardox?source=rss-ac2f408c5b26------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:20:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sardox/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fix for black screen on WaveShare RP2350 with 7″ RP2350 RGB LCD That Only Worked with a Prebuilt…]]></title>
            <link>https://medium.com/@sardox/fix-for-black-screen-on-waveshare-rp2350-with-7-rp2350-rgb-lcd-that-only-worked-with-a-prebuilt-f1b11b21be69?source=rss-ac2f408c5b26------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1b11b21be69</guid>
            <category><![CDATA[waveshare]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Maksim Zadorskii]]></dc:creator>
            <pubDate>Fri, 23 Jan 2026 00:50:03 GMT</pubDate>
            <atom:updated>2026-01-23T00:50:03.203Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fix for black screen on WaveShare RP2350 with 7″ RP2350 RGB LCD That Only Worked with a Prebuilt UF2</h3><p>This is my first ever harwdare project and I expected a smoth sailing by buying a board with built in LCD screen, existiance of factory drivers by WaveShare.. But ended up a 4 days quest to get LCD working.</p><p>Below an AI summary of my issue and troubleshooting Idid:</p><p>I bought the Waveshare RP2350‑Touch‑LCD‑7 (SKU 33488) and expected a quick demo: compile the vendor example, flash it, get things rendered on LCD. Instead I got a backlight that blinked…and a totally black display. The weird part: **the precompiled UF2 from Waveshare worked**, but compiling the same demo myself didn’t.</p><p>This write‑up is the debugging story and the fix.</p><p>— -</p><p>## Board Context</p><p>I’m using Waveshare’s RP2350‑Touch‑LCD‑7:</p><p>- **MCU**: RP2350B (dual‑core, dual‑architecture ARM Cortex‑M33 or Hazard3 RISC‑V) <br>- **Memory**: 520 KB SRAM, **16 MB flash**, **2 MB PSRAM** <br>- **Display**: 7″ IPS RGB panel, **800×480**, 65K colors <br>- **Display IC**: **ST7262** (RGB interface) <br>- **Touch**: **GT911** (I²C, 5‑point capacitive) <br>- **PIO**: 12 state machines (per Waveshare)</p><p>Official links:<br>- Board wiki: <a href="https://www.waveshare.com/wiki/RP2350-Touch-LCD-7">https://www.waveshare.com/wiki/RP2350-Touch-LCD-7</a> <br>- Product page: <a href="https://www.waveshare.com/rp2350-touch-lcd-7.htm?sku=33488">https://www.waveshare.com/rp2350-touch-lcd-7.htm?sku=33488</a></p><p>— -</p><p>## Symptoms</p><p>- Vendor UF2 works → screen shows RGB colors.<br>- My compiled demo → backlight on, **screen black**.<br>- Serial logs show the demo running, buffers filled, DMA started.<br>- Touch and other peripherals not relevant yet.</p><p>At first I assumed **timing** (pixel clock, porch values, sync polarity), and spent days tweaking. Nothing helped.</p><p>— -</p><p>## The Clue: The Working UF2</p><p>Eventually I stopped guessing and **unpacked the working UF2**:</p><p>1. Converted UF2 to raw binary with a small script.<br>2. Searched for display‑related constants and PIO instruction sequences.<br>3. Confirmed that the basic timing and pixel clock were **not** the issue.<br>4. Focused on how the PIO programs were wired to GPIOs.</p><p>That led to the real culprit: **PIO pin mapping**.</p><p>— -</p><p>## Root Cause (The Real Bug)</p><p>The driver uses PIO state machines with `wait pin` instructions, e.g. `wait pin 4..7` for DE/VS/HS/PCLK.</p><p>But the driver also:</p><p>- **remapped the PIO GPIO base**, and <br>- **used relative pin indices** in the SM config.</p><p>That mismatch meant the PIO `wait pin` instructions watched **the wrong GPIOs**, so the timing logic never synchronized. The result: **black screen even though the backlight worked**.</p><p>In other words, the PIO program was correct, but it was *listening to the wrong pins*.</p><p>— -</p><p>## The Fix</p><p>The fix was in the **driver**, not the demo.</p><p>What finally worked:</p><p>✅ **Stop remapping PIO GPIO base** <br>✅ **Use absolute GPIO numbers for side‑set/output pins** <br>✅ **Set the input pin base to GPIO16**, so `wait pin 4..7` maps to GPIO20–23 (DE/VS/HS/PCLK)</p><p>After this change, the screen immediately started showing RGB colors.</p><p>— -</p><p>## Why the UF2 Worked</p><p>The vendor’s UF2 was built with a driver configuration that matched the panel’s PIO pin expectations. My build wasn’t.</p><p>So the demo wasn’t wrong — **the driver was**.</p><p>— -</p><p>## Lessons Learned</p><p>1. **Backlight ≠ working RGB pipeline.** <br> If you only see light, your PIO timing is probably stalled.</p><p>2. **PIO `wait pin` depends on input base.** <br> If your pin base is wrong, the state machines never sync.</p><p>3. **When UF2 works but source doesn’t, compare binaries.** <br> It quickly narrows the problem down to configuration vs logic.</p><p>— -</p><p>## Resources</p><p>- Demo package: <a href="https://files.waveshare.com/wiki/RP2350-Touch-LCD-7/RP2350-Touch-LCD-7-Demo.zip">https://files.waveshare.com/wiki/RP2350-Touch-LCD-7/RP2350-Touch-LCD-7-Demo.zip</a> <br>- Board schematic: <a href="https://files.waveshare.com/wiki/RP2350-Touch-LCD-7/RP2350-Touch-LCD-7.pdf">https://files.waveshare.com/wiki/RP2350-Touch-LCD-7/RP2350-Touch-LCD-7.pdf</a> <br>- ST7262 datasheet: <a href="https://files.waveshare.com/wiki/common/ST7262.pdf">https://files.waveshare.com/wiki/common/ST7262.pdf</a> <br>- GT911 datasheet: <a href="https://files.waveshare.com/wiki/common/GT911_EN_Datasheet.pdf">https://files.waveshare.com/wiki/common/GT911_EN_Datasheet.pdf</a></p><p>— -</p><p>## Final Note</p><p>This issue ate days because it *looked* like a timing problem, but it was actually a **PIO pin‑mapping mismatch**. Once the driver’s input base was aligned with the LCD pinout, the display worked immediately.</p><p>If you’re stuck with a similar ST7262 RGB panel, **check your PIO pin base and wait‑pin mapping before you touch any timing constants**.</p><p>— -</p><p>If you want, I can also add code snippets (before/after) or a short “step‑by‑step fix” section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1b11b21be69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Windows BSOD crashes and Intel 13700k 14700k CPU Degradation and BEDaisy.sys]]></title>
            <link>https://medium.com/@sardox/random-windows-bsod-crashes-and-intel-13700k-14700k-cpu-degradation-and-bedaisy-sys-485ff1e5126c?source=rss-ac2f408c5b26------2</link>
            <guid isPermaLink="false">https://medium.com/p/485ff1e5126c</guid>
            <category><![CDATA[games]]></category>
            <category><![CDATA[intel-13th-gen]]></category>
            <category><![CDATA[bsod]]></category>
            <category><![CDATA[crash]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Maksim Zadorskii]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 15:12:39 GMT</pubDate>
            <atom:updated>2024-09-24T15:29:15.795Z</atom:updated>
            <content:encoded><![CDATA[<p>You might find this article if you are experiences crashes and blue screens on death in Windows. Purpose of this post is to help people with similar problem to faster diagnose the problem and avoid months of frustration.</p><p>Let’s go!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*zjRZylRcV9Nc9bYZhHlXMw.png" /></figure><p>There are many many possible reasons for BSODS but I want to cover some related to Intel CPU Degradation.<br>You might notice early crashes in games that are causes by BEDaisy.sys if you have games that use BattleEye:<br><em>Arma 2<br>PlanetSide 2<br>Arma 3<br>Rainbow Six Siege<br>Heroes &amp; Generals<br>Escape from Tarkov<br>Ark: Survival Evolved<br>Unturned<br>Destiny 2<br>PUBG: Battlegrounds<br>Ghost Recon: Wildlands<br>Atlas<br>Z1 Battle Royale<br>DayZ</em></p><p>This might not be the full list.<br>Apparantely, BattleEye is very sensitive to driver / CPU faults and will make your system crash.</p><p>Let’s start with my story.<br>I started to get some BSODS with BEDaisy.sys and PAGE_FAULT_IN_NONPAGED_AREA around 6 months ago.<br>My system is Intel 13700k and 64GB of 6400 DDR5 RAM.<br>After quickly scanning forums and stack overflows, I concluded that its the issue with memory.<br>I used TestMem5 v0.12 to test memory along with config from author with name anta777 (thx!) (You can google and download).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*OomNarSsP8edi0l-gpAK8w.png" /></figure><p>This config is brutal to your memory and will find issues. I was getting errors in first 4–5 seconds of the run!<br>As a temporary solution, I disabled XMP and set memory to RUN at default 4800 speed. Issue disappeared for a month or so. Meanwhile I submitted a warranty claim to CORSAIR to replace my memory. When NEW memory arrived couple weeks later along with BSODS I was confused. But at this point I knew that its not the memory. (Corsair has great RMA process, btw)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*-R3_-bkR5tBOi-PJpuaswQ.png" /></figure><p>I started stress testing my system with prime95 for hours and hours but it was incredibly stable in non 3D environment, no blue screens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*GxGZYk8Jw6SH_ZP7M8-Zag.png" /></figure><p>I was still getting BSODs in games for next couple weeks and one morning after another crash my system did not boot, my main SSD died (thanks to Intel?). Clean reinstall Windows 11 on brand new SSD, no extra apps, NVIDIA drivers only and.. again crash in games.<br>Status:</p><ol><li>Memory reinstall did no help</li><li>Windows reinstall did not help</li><li>Detaching all USB devices, including swapping mouse and keyboards also did not help.</li><li>Disabling extra monitors did not help.</li><li>Upgrading BIOS to latest version with Intel “fix” did not help</li><li>Downclocking RAM did not help</li></ol><p>In couple weeks I got my first non 3D game BSOD. I don&#39;t shut down my PC in nighttime (its goes to sleep mode) and I realized that quite often my PC was force restarted during night time, like 1am or 4am.<br>BlueScreenView app was showing me</p><p>PAGE_FAULT_IN_NONPAGED_AREA with 0x00000050<br>MEMORY_MANAGEMENT with 0x0000001a<br>IRQL_NOT_LESS_OR_EQUAL with 0x0000000a<br>System_Service_Exception</p><p>All coming from ntoskrnl.exe</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*-ItF4e0uWPV_05ClvoR4sw.png" /></figure><p>I started to think that my CPU might be the issue. I checked CPU serial number and it looks like it was manufactured in 23 week in Vietnam of 2022 (CPUT batch # X239***). Based on Intel’s info — those CPUs were not part of the oxidation issue (no match in manufacture date or factory location. It gave me false thinking that my CPU is good and I might be having issues with motherboard or GPU (no more components left from old system).</p><p>Meanwhile, BSODs kept happening more and more often. Last weekend I ordered exactly the same but brand new 13700k CPU with the same day delivery, swapped it in 30 minutes and I don’t have crashes for last 3 days. System is stable. New CPU was made on 29 week of 2023 (Batch X329***)</p><p>What are the conclusions?<br>1.</p><ol><li>If u have BSODs it might be related to degradation Intel CPU.</li><li>If TestMem5 and prime95 are stable -&gt; BSODs might be related to dying Intel CPU.</li><li>If Windows reisntall dont help -&gt; BSODs might be related to dying Intel CPU.</li><li>If Windows restarts randomly -&gt; BSODs might be related to dying Intel CPU.</li><li>Intel CPU manufacture date and location does not matter</li></ol><p>I will be filing warranty CLAIM with Intel in couple days to get my old 13700K CPU replaced, I’ve heard a lot of good about their RMA process. Will find out for myself soon.</p><p>There is a chance that new 13700K CPU will die again in 2 years, unless BIOS “FIX” updates will make it last longer with lower amps/voltage/power limits.</p><p>P.S. I’m still excited for 15700K. I believe Intel knows about all the issues and will put all the measures in place (in FABs, testing approach, working together with motherboard manufactures for optimal CPU bios settings, etc) to make sure it wont happen again with new 15 gen CPUs, at this point its crucial for Intel’s survival to have a successful 15 gen launch. (Intel stock is $22.74 at the moment of writing)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=485ff1e5126c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UDM SE DDNS setup with Cloudflare]]></title>
            <link>https://medium.com/@sardox/udm-se-ddns-setup-with-cloudflare-0af816e6ffc0?source=rss-ac2f408c5b26------2</link>
            <guid isPermaLink="false">https://medium.com/p/0af816e6ffc0</guid>
            <dc:creator><![CDATA[Maksim Zadorskii]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 02:19:13 GMT</pubDate>
            <atom:updated>2024-02-07T02:19:13.563Z</atom:updated>
            <content:encoded><![CDATA[<p>This article is mostly a reminder to myself how to setup DDNS on UDM machine with Cloudflare</p><ol><li>Create account at DNS-O-Matic and setup like below.</li></ol><p>More docs: <a href="https://developers.cloudflare.com/dns/manage-dns-records/how-to/managing-dynamic-ip-addresses/">https://developers.cloudflare.com/dns/manage-dns-records/how-to/managing-dynamic-ip-addresses/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*Vi47dnZdzPaODpoN9rwpig.png" /></figure><p>2. Login to Cloudflare and edit DNS records (if u want to use VPN — u need to disable proxy status for one of the cnames )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*fwmp7SyoWQlsb7FkKyNWNQ.png" /></figure><p>3. In UDM. Go to Setting -&gt; Internet -&gt; WAN1 and enable DDNS.</p><p>host: all.dnsomatic.com</p><p>server: updates.dnsomatic.com/nic/update?hostname=%h&amp;myip=%i</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*yHiYQkE79EkLkTC_9Khv_w.png" /></figure><p>4. Trigger a DDNS update through dnsomatic to cloudflare by SSH in UDM and runnign 2 commands:</p><p>ps aux | grep inadyn</p><p>inadyn -n -1 — force -f /run/ddns-wan1#-inadyn.conf</p><p>Lots of info was taken from this reddit post by dbsmith</p><p><a href="https://www.reddit.com/r/Ubiquiti/comments/17oozwk/how_to_configure_dynamic_dns_with_cloudflare_and/">https://www.reddit.com/r/Ubiquiti/comments/17oozwk/how_to_configure_dynamic_dns_with_cloudflare_and/</a></p><p><a href="https://github.com/workerforce/unifi-ddns/issues/42#issuecomment-1790029386">Better Instructions For Dummies · Issue #42 · workerforce/unifi-ddns</a></p><p><a href="https://www.reddit.com/r/Ubiquiti/comments/gbppr9/comment/jqcn35m/">https://www.reddit.com/r/Ubiquiti/comments/gbppr9/comment/jqcn35m/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0af816e6ffc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter tips and hints]]></title>
            <link>https://medium.com/@sardox/flutter-tips-and-hints-4ad63e32ca30?source=rss-ac2f408c5b26------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ad63e32ca30</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Maksim Zadorskii]]></dc:creator>
            <pubDate>Tue, 03 Sep 2019 12:01:01 GMT</pubDate>
            <atom:updated>2019-09-03T12:01:01.237Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*TjnhbHg1qSV0BOqvJK9V6g.png" /></figure><p>I’d like to share some Flutter tips and practices that can make your code a bit simpler and cleaner. Will start with the most basic ones.</p><ol><li>Use trailing commas and auto format</li></ol><pre>@override<br>Widget build(BuildContext context) {<br>  <strong>return </strong>Column(<br>    children: [<br>      _image(),<br>      _icon(),<br>      _title(),<br>      _message(),<br>      _button(),<br>    ],<br>  );<br>}</pre><p>instead of</p><pre>@override<br>Widget build(BuildContext context) {<br>  <strong>return </strong>Column(children: [_image(), _icon(), _title(), _message()]);<br>}</pre><p>2. Use _underscore for internal widgets and methods</p><pre>@override<br>Widget build(BuildContext context) {<br>  <strong>return </strong>Column(<br>    children: [<br>      <strong>const </strong>_UserImage(),<br>      SizedBox(height: 8),<br>      <strong>const </strong>_LogoutButton(),<br>    ],<br>  );<br>}</pre><p>3. Use const constructors if possible</p><pre><strong>const </strong>_UserImage()</pre><p>4. Always set height and width params to Image.asset to avoid resizing</p><pre>Widget _someImage() {<br>  <strong>return </strong>Image.asset(<br>    <strong>&#39;images/user_logo.png&#39;</strong>,<br>    width: 40,<br>    height: 40,<br>  );<br>}</pre><p>5. If and spread operators are very handy when building widgets</p><pre>Widget _homepage() {<br>  <strong>return </strong>Column(<br>    children: [<br>      <strong>if </strong>(<strong>isUserLoggedIn</strong>)<br>        const _RecentUserActivity()<br>      <strong>else </strong>...<strong>const </strong>[<br>        _LoginButton(),<br>        _TermsAndConditions(),<br>        _SomethingElse(),<br>      ],<br>    ],<br>  );<br>}</pre><p>6. Inline code by converting to expression body if appropriate:</p><p>Compare:</p><pre>@override<br>Widget build(BuildContext context) {<br>  <strong>return </strong>Text(<strong>&#39;not that</strong>);<br>}</pre><p>=&gt;</p><pre>@override<br>Widget build(BuildContext context) =&gt; <strong>const </strong>Text(<strong>&#39;nice&#39;</strong>);</pre><p>Thats about it for today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ad63e32ca30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter test and randomly missing assets in goldens]]></title>
            <link>https://medium.com/@sardox/flutter-test-and-randomly-missing-assets-in-goldens-ea959cdd336a?source=rss-ac2f408c5b26------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea959cdd336a</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[test]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Maksim Zadorskii]]></dc:creator>
            <pubDate>Fri, 30 Aug 2019 17:58:52 GMT</pubDate>
            <atom:updated>2019-08-30T21:32:06.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*TjnhbHg1qSV0BOqvJK9V6g.png" /></figure><p>Flutter allows developers to test UI with screenshot tests (goldens). Currently if you have additional assets (like images) you are not going to see those in your golden files. In order to achieve that, you will need to mock flutter channel for image loading or provide your own test asset bundle with pre-loaded assets and wrap your widget in DefaultAssetBundle.</p><p>You should not encounter any issues with those approaches until you hit some specific amount of assets in your app that will cause your assets to magically disappear from goldens.</p><p>The reason is implementaion of loadString() method in asset_bundle.dart</p><pre><a href="https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/services/asset_bundle.dart#L70">Future&lt;String&gt; loadString(String key, { bool cache = true }) async {<br>    final ByteData data = await load(key);<br>    if (data.lengthInBytes &lt; 10 * 1024) {<br>      // 10KB takes about 3ms to parse on a Pixel 2 XL.<br>      // See: https://github.com/dart-lang/sdk/issues/31954<br>      return utf8.decode(data.buffer.asUint8List());<br>    }<br>    return compute(_utf8decode, data);<br>  }</a></pre><p>If your AssetManifest.json file exceeds 10kb It will be loaded with isolate that (most likely) will cause your test to finish before assets are loaded so goldens will get empty assets.</p><p>One solution — create your own asset bundle and override this method without this size check</p><pre>class YourOwnTestAssetBundleextends CachingAssetBundle {<br>  <a href="http://twitter.com/override">@override</a><br>  Future&lt;String&gt; loadString(String key, {bool cache = true}) async {<br>    final ByteData data = await load(key);<br>    if (data == null) throw FlutterError(&#39;Unable to load asset&#39;);<br>    return utf8.decode(data.buffer.asUint8List());<br>  }</pre><pre>  <a href="http://twitter.com/override">@override</a><br>  Future&lt;ByteData&gt; load(String key) async =&gt; rootBundle.load(key);<br>}</pre><p>Your assets must be back!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea959cdd336a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>