<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PICSimLab</title>
	<atom:link href="https://picsimlab.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://picsimlab.com</link>
	<description>The Ultimate Open Source Simulator for PIC, Arduino &#38; ESP32.</description>
	<lastBuildDate>Thu, 22 Oct 2026 04:35:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://picsimlab.com/wp-content/uploads/2026/05/favicon-150x150.png</url>
	<title>PICSimLab</title>
	<link>https://picsimlab.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>AVR, STM32 and ESP32 in PICSimLab: VSCode + PlatformIO, and the Arduino IDE</title>
		<link>https://picsimlab.com/arduino-ide-picsimlab-workflow/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:52 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://picsimlab.com/arduino-ide-picsimlab-workflow/</guid>

					<description><![CDATA[AVR, STM32 and ESP32 in PICSimLab: VSCode + PlatformIO, and the Arduino IDE For non-PIC boards, PICSimLab documentation names two distinct integration paths, and they are often confused. Keep them separate: The Code Project Wizard path is VSCode + PlatformIO. For boards based on AVR, STM32 and ESP32, the wizard generates projects that use VSCode...]]></description>
										<content:encoded><![CDATA[<h1>AVR, STM32 and ESP32 in PICSimLab: VSCode + PlatformIO, and the Arduino IDE</h1>
<p>For non-PIC boards, PICSimLab documentation names two distinct integration paths, and they are often confused. Keep them separate:</p>
<ul>
<li><strong>The Code Project Wizard path is VSCode + PlatformIO.</strong> For boards based on <strong>AVR, STM32 and ESP32</strong>, the wizard generates projects that use <strong>VSCode with PlatformIO</strong> — not Arduino IDE projects.</li>
<li><strong>The Arduino IDE path is an integration, not the wizard.</strong> PICSimLab integrates with the Arduino IDE for programming — the simavr (AVR) board examples use the Arduino IDE with avr-gcc, and ESP32 firmware can be flashed from the Arduino IDE (or IDF) tooling via esptool.py over the serial link.</li>
</ul>
<p>PICSimLab itself still edits no source code on either path; editing and compiling happen in VSCode/PlatformIO or in the Arduino IDE, exactly as with a real board.</p>
<h2>Path A: VSCode + PlatformIO (the wizard path)</h2>
<ol>
<li><strong>Install the prerequisite first:</strong> the official requirements state that ESP32, STM32, Atmel (AVR) and STM8/C51 boards need <strong>PlatformIO IDE for VSCode</strong> installed before you use the wizard.</li>
<li><strong>Select the board and chip</strong> in PICSimLab — for example Arduino Uno (ATmega328P), Blue Pill (STM32F103C8T6) or ESP32-DevKitC.</li>
<li><strong>Generate the project</strong> with the Code Project Wizard. The official template list covers these boards under PlatformIO with the <strong>Arduino framework</strong> (Arduino Mega/Nano/Uno, Blue Pill, STM32 H103, ESP32, ESP32-C3, Franzininho DIY, uCboard/STM8S103), plus <strong>CMSIS</strong> templates for the two STM32 boards and <strong>IDF</strong> templates for the ESP32 boards.</li>
<li><strong>Build and load:</strong> build in VSCode, then load the resulting firmware into PICSimLab — the <code>picsimlab_tool</code> command-line helper (documented form: <code>picsimlab_tool file [.hex or .bin]</code>) exists precisely to upload firmware and integrates with PlatformIO. Board and chip must match the build, as the <a href="https://picsimlab.com/load-hex-file-picsimlab/">hex loading guide</a> explains.</li>
<li><strong>Debug (desktop only):</strong> each QEMU/simavr backend has a GDB path — avr-gdb for AVR, arm-gdb for STM32, esp32-gdb for ESP32 — and PlatformIO can be configured with <code>debug_tool = custom</code> for graphical debugging. Connection failures are covered in <a href="https://picsimlab.com/picsimlab-gdb-debug-connection/">GDB connection fixes</a>.</li>
</ol>
<h2>Path B: The Arduino IDE integration</h2>
<p>If your code already lives in the Arduino IDE, you do not have to move it to PlatformIO to use PICSimLab:</p>
<ul>
<li><strong>AVR / simavr boards:</strong> the official documentation&#8217;s serial chapter has a dedicated <em>Arduino IDE Integration (simavr)</em> section, and the simavr board example sources are used with the Arduino IDE + avr-gcc. Compile the sketch for the matching board chip (ATmega328P for Uno/Nano, ATmega2560 for Mega) and load the produced firmware — see the board notes in <a href="https://picsimlab.com/arduino-uno-nano-picsimlab/">Arduino Uno and Nano in PICSimLab</a>.</li>
<li><strong>ESP32:</strong> the QEMU ESP32 documentation states you can use the Arduino IDE or IDF <code>esptool.py</code> to flash PICSimLab&#8217;s ESP32-DevKitC as if it were a real ESP32 board, following the serial-port setup. One hard rule from the same page: <strong>QEMU ESP32 does not support the QIO and QOUT flash modes — use only DIO or DOUT</strong>. Flash failures are covered in <a href="https://picsimlab.com/picsimlab-esp32-flash-mode-qemu/">ESP32 flash mode fixes</a> and board context in <a href="https://picsimlab.com/esp32-devkitc-picsimlab/">ESP32-DevKitC in PICSimLab</a>.</li>
<li><strong>Serial prerequisite:</strong> both flashing and serial sketches rely on the desktop serial setup — a virtual null-modem pair (com0com on Windows, tty0tty on Linux) at 8N1. Setup is in <a href="https://picsimlab.com/virtual-serial-ports-picsimlab/">virtual serial ports for PICSimLab</a>. The <a href="https://picsimlab.com/online/">online version</a> cannot do this: it has no serial communication beyond the IO Vterm terminal.</li>
</ul>
<h2>Which path should you pick?</h2>
<p>New project on an AVR, STM32 or ESP32 board: use Path A — it is the wizard&#8217;s documented route, the templates are maintained for it, and debugging hooks are described for it. Existing Arduino IDE sketch you do not want to port: use Path B, accepting that it is an integration for programming/flashing rather than the project-generation path. PIC chips are a third, separate route entirely: <a href="https://picsimlab.com/mplab-x-xc8-picsimlab-workflow/">MPLAB X + XC8</a>. All three meet on the <a href="https://picsimlab.com/getting-started/">getting started path</a> once your first simulation runs.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Best PIC Simulators and Free Microcontroller Simulators: An Honest Roundup</title>
		<link>https://picsimlab.com/best-pic-simulators/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:51 +0000</pubDate>
				<category><![CDATA[Comparisons]]></category>
		<guid isPermaLink="false">https://picsimlab.com/best-pic-simulators/</guid>

					<description><![CDATA[Best PIC Simulators and Free Microcontroller Simulators: An Honest Roundup Verdict: There is no single &#8220;best&#8221; PIC simulator — there is a best fit per job. For free, board-level PIC simulation on your own machine, PICSimLab is our top pick: it is open source, works offline, and simulates the actual trainer and development boards PIC...]]></description>
										<content:encoded><![CDATA[<h1>Best PIC Simulators and Free Microcontroller Simulators: An Honest Roundup</h1>
<div style="border:2px solid #1a7a4a;background:#f0f8f3;padding:14px 16px;margin:0 0 18px">
<p style="margin:0"><strong>Verdict:</strong> There is no single &#8220;best&#8221; PIC simulator — there is a best fit per job. For <strong>free, board-level PIC simulation on your own machine</strong>, PICSimLab is our top pick: it is open source, works offline, and simulates the actual trainer and development boards PIC courses use. For <strong>source-level PIC debugging inside the official IDE</strong>, the simulator built into MPLAB X is the reference tool — and it pairs with PICSimLab rather than competing with it. For <strong>schematic + PCB + simulation in one professional suite</strong>, Proteus is the paid standard, priced by a configurator quote rather than a fixed public price. For <strong>zero-install browser simulation</strong>, Wokwi leads, with paid plans from around €5.6/month (checked Oct 2026). For a <strong>free circuit-first alternative</strong>, SimulIDE is the other open-source desktop option. The table and the per-audience picks below explain the trade-offs honestly — including where our own featured tool is not the answer.</p>
</div>
<h2>The five simulators compared</h2>
<table style="border-collapse:collapse;width:100%">
<thead>
<tr>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Simulator</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Price</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Model</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">PIC coverage</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Runs</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Best for</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>PICSimLab</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free, open source (GPL-2.0)</td>
<td style="border:1px solid #ccc;padding:6px">Board-level emulation of 21 development boards with spare parts</td>
<td style="border:1px solid #ccc;padding:6px">Strong: PIC16F/PIC18F trainer boards (PIC16F877A, PIC18F4550 and more), plus AVR, STM32F103, ESP32</td>
<td style="border:1px solid #ccc;padding:6px">Windows, Linux, macOS, offline; limited online version</td>
<td style="border:1px solid #ccc;padding:6px">Students and hobbyists learning PIC on realistic boards, free</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>MPLAB X Simulator</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free with MPLAB X IDE</td>
<td style="border:1px solid #ccc;padding:6px">Software model of the chip inside the IDE</td>
<td style="border:1px solid #ccc;padding:6px">Broadest PIC range (follows MPLAB X device support), Microchip devices only</td>
<td style="border:1px solid #ccc;padding:6px">Wherever MPLAB X runs</td>
<td style="border:1px solid #ccc;padding:6px">Source-level debugging of PIC code</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Proteus (Labcenter)</strong></td>
<td style="border:1px solid #ccc;padding:6px">Paid; packages assembled and quoted via its Configurator (no fixed public price we can quote)</td>
<td style="border:1px solid #ccc;padding:6px">Schematic-driven circuit simulation within a full EDA suite (schematic + PCB + VSM)</td>
<td style="border:1px solid #ccc;padding:6px">PIC families available as VSM modules in the quoted package</td>
<td style="border:1px solid #ccc;padding:6px">Windows desktop</td>
<td style="border:1px solid #ccc;padding:6px">Schools and professionals needing schematic-to-PCB in one tool</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Wokwi</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free tier; paid plans from around €5.6/month (checked Oct 2026)</td>
<td style="border:1px solid #ccc;padding:6px">Browser-based, freely wired boards and components, shareable by link</td>
<td style="border:1px solid #ccc;padding:6px">Limited compared with its Arduino/ESP32 strength</td>
<td style="border:1px solid #ccc;padding:6px">Any modern browser (internet required)</td>
<td style="border:1px solid #ccc;padding:6px">Quick shared demos and Arduino/ESP32 sketches</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>SimulIDE</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free, open source (AGPL); voluntary donations via Open Collective</td>
<td style="border:1px solid #ccc;padding:6px">Circuit-level: components and a microcontroller wired on a canvas</td>
<td style="border:1px solid #ccc;padding:6px">PIC among its simulated microcontroller components</td>
<td style="border:1px solid #ccc;padding:6px">Desktop operating systems</td>
<td style="border:1px solid #ccc;padding:6px">Learning electronics circuit-first, free</td>
</tr>
</tbody>
</table>
<h2>Recommendations by audience</h2>
<h3>Students</h3>
<p>Start with <strong>PICSimLab + the MPLAB X simulator together</strong>. They are both free, and together they cover the whole learning loop: write XC8 code in MPLAB X, debug the logic in its simulator, then run the same firmware on a simulated McLab2 or PICGenios board in PICSimLab and watch the LCD, keypad and LEDs respond. Our <a href="https://picsimlab.com/pic16f877a-blink-led-picsimlab/">first PIC16F877A project tutorial</a> is a good starting point, and the head-to-head details are in <a href="https://picsimlab.com/picsimlab-vs-mplab-x-simulator/">PICSimLab vs the MPLAB X Simulator</a>. Add Wokwi when you need to share a running demo with a link, and SimulIDE when a class exercise is about wiring the circuit itself.</p>
<h3>Teachers</h3>
<p>For a PIC course built around trainer boards, PICSimLab mirrors the hardware students will meet in the lab, works offline on ordinary lab PCs, and costs the department nothing — the board pages such as <a href="https://picsimlab.com/mclab2-board-picsimlab/">McLab2</a> document exactly which chips each board covers. If your curriculum instead teaches schematic capture and PCB design as one subject, that is Proteus territory, with institutional licensing handled through Labcenter&#8217;s distributors and configurator quotes — see <a href="https://picsimlab.com/picsimlab-vs-proteus/">PICSimLab vs Proteus</a> for the honest split. Wokwi&#8217;s shareable links are handy for homework demos where installs are impossible; its classroom terms are a separate enquiry with Wokwi.</p>
<h3>Advanced users and hobbyists moving to hardware</h3>
<p>Use the MPLAB X simulator for register-level logic checks, PICSimLab for board integration (spare parts, serial, the oscilloscope — see the <a href="https://picsimlab.com/picsimlab-oscilloscope/">oscilloscope guide</a>), and keep Proteus in mind only if custom PCB design enters the workflow. Beyond PIC, PICSimLab&#8217;s <a href="https://picsimlab.com/blue-pill-stm32-picsimlab/">Blue Pill</a> and <a href="https://picsimlab.com/esp32-devkitc-picsimlab/">ESP32</a> boards let the same habits carry over — with the honest limits stated on those pages (two STM32F103 chips only; ESP32 wireless support is incremental). Our remaining comparisons, <a href="https://picsimlab.com/picsimlab-vs-wokwi/">PICSimLab vs Wokwi</a> and <a href="https://picsimlab.com/picsimlab-vs-simulide/">PICSimLab vs SimulIDE</a>, dig into the browser and circuit-first alternatives.</p>
<h2>A note on honesty in roundups like this</h2>
<p>Simulator roundups often invent prices, star ratings and &#8220;best overall&#8221; winners. We do not: Proteus pricing is configurator-quoted so we quote no number; Wokwi&#8217;s paid-plan figure is the one we checked in Oct 2026 and is dated as such; PICSimLab&#8217;s limits (21 boards, two STM32 chips, a limited online version) are stated on this page and in our <a href="https://picsimlab.com/download/">download page</a>, which links only to the official GitHub release files. PICSimLab is the tool this site documents, so judge our top pick by the trade-offs in the table — where another tool fits better, we have said so.</p>
<h2>From simulation to real hardware</h2>
<p>Every simulator on this page is preparation for a real board. The usual student shopping list, matched to the boards these tools simulate:</p>
<ul>
<li><a href="https://picsimlab.com/go/esp32-devkit/" rel="nofollow sponsored">An ESP32 development board</a> — for the ESP32 projects simulated in PICSimLab and Wokwi.</li>
<li><a href="https://picsimlab.com/go/arduino-uno/" rel="nofollow sponsored">An Arduino Uno</a> — the ATmega328P board covered by PICSimLab, Wokwi and SimulIDE alike; a full <a href="https://picsimlab.com/go/elegoo/" rel="nofollow sponsored">ELEGOO starter kit</a> adds the breadboard and components around it.</li>
<li><a href="https://picsimlab.com/go/blue-pill/" rel="nofollow sponsored">An STM32 Blue Pill board</a> — the F103 board from PICSimLab&#8217;s QEMU backend.</li>
<li><a href="https://picsimlab.com/go/pickit/" rel="nofollow sponsored">A PICkit programmer</a> — essential once PIC projects leave the simulator for real chips.</li>
<li>To go further with PCB fabrication for a finished project, see <a href="https://picsimlab.com/go/pcbway/" rel="nofollow sponsored">PCBWay</a> and <a href="https://picsimlab.com/go/jlcpcb/" rel="nofollow sponsored">JLCPCB</a> (referral links, not cash affiliate programmes — both are useful student fabrication services).</li>
<li>For structured learning alongside practice: embedded courses on <a href="https://picsimlab.com/go/udemy-embedded/" rel="nofollow sponsored">Udemy</a> and certificate programmes on <a href="https://picsimlab.com/go/coursera-embedded/" rel="nofollow sponsored">Coursera</a>.</li>
</ul>
<p>These links are affiliate or referral links routed through our /go/ redirects — see our <a href="https://picsimlab.com/affiliate-disclosure/">affiliate disclosure</a>. They never change the price you pay.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>The PIC Workflow: MPLAB X + XC8 Projects for PICSimLab</title>
		<link>https://picsimlab.com/mplab-x-xc8-picsimlab-workflow/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:42 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://picsimlab.com/mplab-x-xc8-picsimlab-workflow/</guid>

					<description><![CDATA[The PIC Workflow: MPLAB X + XC8 Projects for PICSimLab PICSimLab has no source-code editor — by design, it emulates hardware, and you write code with the same tools you would use for a real board. For PIC microcontrollers that tool chain is MPLAB X IDE with the XC8 compiler, and PICSimLab&#8217;s Code Project Wizard...]]></description>
										<content:encoded><![CDATA[<h1>The PIC Workflow: MPLAB X + XC8 Projects for PICSimLab</h1>
<p>PICSimLab has no source-code editor — by design, it emulates hardware, and you write code with the same tools you would use for a real board. For PIC microcontrollers that tool chain is <strong>MPLAB X IDE with the XC8 compiler</strong>, and PICSimLab&#8217;s Code Project Wizard is built around it: <strong>for boards based on PIC16F and PIC18F microcontrollers, the wizard generates projects that use MPLAB X</strong>. This guide walks the whole path from wizard to a debuggable simulation.</p>
<h2>Prerequisite: install MPLAB X and XC8 first</h2>
<p>The wizard&#8217;s PIC path assumes its tools already exist. Per the official software requirements, boards based on <strong>PIC16F and PIC18F need MPLAB X IDE and the XC8 compiler installed beforehand</strong>. Install both from Microchip before you generate a project; without XC8, the generated project opens but cannot build. (The AVR, STM32 and ESP32 boards use a different wizard path — VSCode + PlatformIO — covered in the <a href="https://picsimlab.com/arduino-ide-picsimlab-workflow/">PlatformIO / Arduino IDE workflow</a>.)</p>
<h2>Step 1: Select the board and chip in PICSimLab</h2>
<p>Select your board and microcontroller first — for example McLab2 with a PIC16F877A, or the same board with a PIC18F4550. The wizard generates the project for the current selection, so changing the chip afterwards means regenerating. Board pages on this site list exactly which chips each board supports: see <a href="https://picsimlab.com/mclab2-board-picsimlab/">McLab2</a> and <a href="https://picsimlab.com/picgenios-board-picsimlab/">PICGenios</a>.</p>
<h2>Step 2: Generate the project with the Code Project Wizard</h2>
<p>Run the Code Project Wizard for the selected board. For PIC16F/PIC18F boards it creates an <strong>MPLAB X project</strong> using XC8, with the official code templates as the starting point — the template list includes Blink examples (including a Blink FreeRTOS template) for the PIC boards. Save the generated project in your own working folder.</p>
<h2>Step 3: Write code and build in MPLAB X</h2>
<p>Edit the code in MPLAB X, not in PICSimLab. Two habits save debugging time later:</p>
<ul>
<li>Set the clock define your code relies on (for example <code>_XTAL_FREQ</code> in XC8 delay calls) to the clock configured for the board in PICSimLab.</li>
<li>Build until the project compiles cleanly. A successful build produces the <code>.hex</code> file you will load — if the build fails, fix it here; PICSimLab can only run firmware that actually built.</li>
</ul>
<h2>Step 4: Load the .hex and run</h2>
<p>Back in PICSimLab, with the same board and chip selected, load the built <code>.hex</code> and run. The full loading order and the mismatch checks are in the <a href="https://picsimlab.com/load-hex-file-picsimlab/">hex loading guide</a>; the <a href="https://picsimlab.com/pic16f877a-blink-led-picsimlab/">PIC16F877A blink tutorial</a> and the <a href="https://picsimlab.com/pic18f4550-picsimlab-first-project/">PIC18F4550 first project</a> show this exact workflow with complete example code.</p>
<h2>Step 5 (optional): Debug from MPLAB X</h2>
<p>The desktop version can be debugged from inside MPLAB X, the way you would debug a real board: install the PICSimLab plugin file <code>com-picsim-picsimlab.nbm</code> in MPLAB X, and MPLAB X connects to PICSimLab through a TCP socket on <strong>port 1234</strong> (allow it through your firewall). The complete setup is in the <a href="https://picsimlab.com/mplab-x-picsimlab-plugin/">MPLAB X plugin guide</a>; if the connection fails, work through <a href="https://picsimlab.com/picsimlab-mplab-x-plugin-connection/">plugin connection fixes</a>. Note this is a desktop-only feature — the <a href="https://picsimlab.com/online/">online version</a> has no debugging support.</p>
<p>Where does this fit in the bigger picture? This workflow is Step 4 material on the <a href="https://picsimlab.com/getting-started/">getting started path</a>: install, first simulation, board choice, then your own compiled projects.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PICSimLab vs the MPLAB X Simulator: Board-Level Simulation vs Software-Only Simulation</title>
		<link>https://picsimlab.com/picsimlab-vs-mplab-x-simulator/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:42 +0000</pubDate>
				<category><![CDATA[Comparisons]]></category>
		<guid isPermaLink="false">https://picsimlab.com/picsimlab-vs-mplab-x-simulator/</guid>

					<description><![CDATA[PICSimLab vs the MPLAB X Simulator: Board-Level Simulation vs Software-Only Simulation Verdict: This is not really an either/or choice — the two are designed to work together. The MPLAB X simulator is the software simulator built into Microchip&#8217;s free MPLAB X IDE: it executes your PIC firmware on a model of the chip, with source-level...]]></description>
										<content:encoded><![CDATA[<h1>PICSimLab vs the MPLAB X Simulator: Board-Level Simulation vs Software-Only Simulation</h1>
<div style="border:2px solid #1a7a4a;background:#f0f8f3;padding:14px 16px;margin:0 0 18px">
<p style="margin:0"><strong>Verdict:</strong> This is not really an either/or choice — the two are designed to work together. The <strong>MPLAB X simulator</strong> is the software simulator built into Microchip&#8217;s free MPLAB X IDE: it executes your PIC firmware on a model of the chip, with source-level debugging, and it needs no hardware and no extra program. <strong>PICSimLab</strong> simulates the <em>board around the chip</em>: the development board, its LEDs, displays, keypads and other spare parts reacting in real time while your firmware runs. Used alone, the MPLAB X simulator is the quickest way to debug PIC logic. Used together — MPLAB X debugging PICSimLab through its official plugin — you get source-level breakpoints <em>and</em> a board you can see and poke. For pure code logic, start in MPLAB X; for anything involving the board&#8217;s peripherals, add PICSimLab.</p>
</div>
<h2>At a glance</h2>
<table style="border-collapse:collapse;width:100%">
<thead>
<tr>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Aspect</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">PICSimLab</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">MPLAB X Simulator (built into MPLAB X IDE)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>What is simulated</strong></td>
<td style="border:1px solid #ccc;padding:6px">A complete development board (21 boards) — microcontroller plus the board&#8217;s circuits — with attachable spare parts and a basic two-channel oscilloscope.</td>
<td style="border:1px solid #ccc;padding:6px">The microcontroller itself: CPU and on-chip peripherals as a software model inside the IDE. There is no board visualisation.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Price</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free and open source (GPL-2.0).</td>
<td style="border:1px solid #ccc;padding:6px">Included free with MPLAB X IDE; firmware is typically built with Microchip&#8217;s XC8 compiler.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Debugging view</strong></td>
<td style="border:1px solid #ccc;padding:6px">You watch the board: LEDs light, the LCD prints, motors turn. Source debugging happens in MPLAB X (via the plugin) or GDB.</td>
<td style="border:1px solid #ccc;padding:6px">Source-level: breakpoints, single-stepping, watch variables and register/peripheral views in the IDE, with stimulus for exercising inputs.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>External circuits</strong></td>
<td style="border:1px solid #ccc;padding:6px">Spare parts: HD44780 and I2C LCDs, keypads, 7-segment displays, sensors, buttons, motors, W5500 Ethernet, SD card, RTCs and more.</td>
<td style="border:1px solid #ccc;padding:6px">No physical-style external parts; inputs are provided as programmed stimulus rather than clickable components.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Chip coverage</strong></td>
<td style="border:1px solid #ccc;padding:6px">Defined by its boards: a documented set of PIC16F/PIC18F chips (for example PIC16F877A, PIC18F4550), plus AVR, STM32F103 and ESP32 boards.</td>
<td style="border:1px solid #ccc;padding:6px">Microchip&#8217;s own PIC (and related) device range as supported by MPLAB X — far broader PIC coverage, but only Microchip devices.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>How they connect</strong></td>
<td style="border:1px solid #ccc;padding:6px" colspan="2">PICSimLab ships an official MPLAB X plugin (<code>com-picsim-picsimlab.nbm</code>, distributed with each release) that connects MPLAB X to the running simulator over a TCP socket (port 1234 by default), so MPLAB X can debug and program PICSimLab much as it would a real hardware tool — for PICs and AVRs.</td>
</tr>
</tbody>
</table>
<h2>What the MPLAB X simulator does best</h2>
<p>If your question is &#8220;does my code do the right thing?&#8221; — a timer calculation, an interrupt sequence, an EEPROM write routine — the MPLAB X simulator answers it without leaving the IDE: set breakpoints, step through the XC8 source, inspect registers and variables, and drive inputs with stimulus files. It is also the reference environment for Microchip devices that PICSimLab does not cover, since its device support follows MPLAB X itself. For a PIC developer it is not optional software; it is the default first tool, and it costs nothing.</p>
<h2>What PICSimLab adds</h2>
<p>What the MPLAB X simulator cannot show you is the board. In PICSimLab the same firmware drives a visible development board: the LED on RB0 actually lights, the HD44780 LCD shows your text, the matrix keypad responds to clicks, and the oscilloscope traces a pin while the code runs — the workflow in our <a href="https://picsimlab.com/pic16f877a-blink-led-picsimlab/">PIC16F877A blink</a>, <a href="https://picsimlab.com/pic16f877a-lcd-hd44780-picsimlab/">LCD</a> and <a href="https://picsimlab.com/pic16f877a-timers-interrupts-picsimlab/">timers and interrupts</a> tutorials. That board-level feedback is what makes PICSimLab the teaching tool of the pair, especially on the McLab2 and PICGenios trainer boards (<a href="https://picsimlab.com/mclab2-board-picsimlab/">McLab2 guide</a>) used in so many PIC courses — and it extends beyond PIC to Arduino, Blue Pill and ESP32 boards that MPLAB X&#8217;s simulator does not address at all.</p>
<h2>Using them together (the recommended workflow)</h2>
<ol>
<li>Write and build your project in MPLAB X with XC8, exactly as you would for real hardware.</li>
<li>For quick logic checks, debug it in the MPLAB X simulator.</li>
<li>Install the PICSimLab plugin in MPLAB X and start PICSimLab with your board loaded — our <a href="https://picsimlab.com/mplab-x-picsimlab-plugin/">plugin installation guide</a> covers the .nbm install, the port 1234 connection and the firewall prompt.</li>
<li>Debug from MPLAB X while watching the simulated board react; attach spare parts for the peripherals your project uses.</li>
<li>If a connection problem appears, our <a href="https://picsimlab.com/picsimlab-mplab-x-plugin-connection/">plugin connection troubleshooting</a> walks through the usual causes.</li>
</ol>
<h2>Which should you choose? By scenario</h2>
<ul>
<li><strong>Debugging PIC logic, registers and timing calculations:</strong> the MPLAB X simulator — fastest path, inside the IDE.</li>
<li><strong>Teaching or learning with a visible board and peripherals:</strong> PICSimLab.</li>
<li><strong>A PIC chip that PICSimLab&#8217;s boards do not include:</strong> the MPLAB X simulator (its device coverage follows MPLAB X).</li>
<li><strong>Arduino, STM32F103 or ESP32 firmware:</strong> PICSimLab — outside MPLAB X simulator territory.</li>
<li><strong>Serious project work:</strong> both, connected by the plugin — that combination, not either tool alone, is the complete setup. Start with PICSimLab free from our <a href="https://picsimlab.com/download/">download page</a>.</li>
</ul>
<h2>From simulation to real hardware</h2>
<p>The step after simulation is a programmer and a real board. For PIC work that means:</p>
<ul>
<li><a href="https://picsimlab.com/go/pickit/" rel="nofollow sponsored">A PICkit programmer</a> — the hardware counterpart of the MPLAB X programming workflow you practised in simulation.</li>
<li><a href="https://picsimlab.com/go/starter-kit/" rel="nofollow sponsored">An electronics starter kit</a> with a breadboard and components to wire your simulated circuits for real.</li>
<li><a href="https://picsimlab.com/go/arduino-uno/" rel="nofollow sponsored">An Arduino Uno</a> if your PICSimLab work also used the simavr boards.</li>
<li>Structured PIC and embedded C courses on <a href="https://picsimlab.com/go/udemy-embedded/" rel="nofollow sponsored">Udemy</a> and <a href="https://picsimlab.com/go/coursera-embedded/" rel="nofollow sponsored">Coursera</a> if you want a curriculum around the practice.</li>
</ul>
<p>These links are affiliate links routed through our /go/ redirects — see our <a href="https://picsimlab.com/affiliate-disclosure/">affiliate disclosure</a>. They never change the price you pay.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Load a .hex or .bin File into PICSimLab</title>
		<link>https://picsimlab.com/load-hex-file-picsimlab/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:32 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://picsimlab.com/load-hex-file-picsimlab/</guid>

					<description><![CDATA[How to Load a .hex or .bin File into PICSimLab PICSimLab does not run source code. It runs compiled firmware — the .hex file (or, on some paths, a .bin file) that your compiler produced. Loading sounds trivial, and it is, provided one rule is respected: the board and microcontroller selected in PICSimLab must match...]]></description>
										<content:encoded><![CDATA[<h1>How to Load a .hex or .bin File into PICSimLab</h1>
<p>PICSimLab does not run source code. It runs <strong>compiled firmware</strong> — the <code>.hex</code> file (or, on some paths, a <code>.bin</code> file) that your compiler produced. Loading sounds trivial, and it is, provided one rule is respected: <strong>the board and microcontroller selected in PICSimLab must match the chip the firmware was built for</strong>. Most &ldquo;it loads but does nothing&rdquo; reports trace back to that single mismatch.</p>
<h2>Where the file comes from</h2>
<ul>
<li><strong>PIC (PIC16F / PIC18F):</strong> build the project in MPLAB X with the XC8 compiler; the build output folder contains the <code>.hex</code>. See the <a href="https://picsimlab.com/mplab-x-xc8-picsimlab-workflow/">MPLAB X + XC8 workflow</a>.</li>
<li><strong>AVR, STM32, ESP32:</strong> the Code Project Wizard generates VSCode + PlatformIO projects for these boards; PlatformIO builds produce the firmware file to load. The command-line helper <code>picsimlab_tool</code> can also upload a file directly — its documented form is <code>picsimlab_tool file [.hex or .bin]</code> — and it integrates with PlatformIO. See the <a href="https://picsimlab.com/arduino-ide-picsimlab-workflow/">PlatformIO / Arduino IDE workflow</a>.</li>
<li><strong>Online version:</strong> files are loaded by drag and drop or the Load button in the browser, as <code>.hex</code>, <code>.pzw</code> (workspace) or <code>.pcf</code> (spare-parts configuration). See <a href="https://picsimlab.com/online/">PICSimLab Online</a>.</li>
</ul>
<h2>The loading order that works</h2>
<ol>
<li><strong>Select the board first.</strong> Pick the board your project targets (for example McLab2 for a PIC16F877A project).</li>
<li><strong>Select the exact microcontroller.</strong> Set the chip to the one the firmware was compiled for — PIC16F877A firmware on a PIC18F4550 selection is a mismatch even though both sit on the same board list.</li>
<li><strong>Load the file.</strong> Use the load/open control to point PICSimLab at the freshly built <code>.hex</code> (or <code>.bin</code> where that is the build output). If you rebuilt after a code change, reload — the simulator keeps running the old file until you do.</li>
<li><strong>Run.</strong> Start the simulation and check for the expected behaviour: an LED state change, output on a spare part, characters in the terminal.</li>
</ol>
<h2>Three checks before you blame the simulator</h2>
<ul>
<li><strong>Did the build actually succeed?</strong> A failed compile can leave a stale <code>.hex</code> from an earlier, different project in the output folder. Rebuild cleanly and confirm the file&#8217;s timestamp is new.</li>
<li><strong>Is the clock consistent?</strong> If your code uses delays based on a clock define such as <code>_XTAL_FREQ</code>, it must match the clock configured for the board in PICSimLab, or everything runs at the wrong speed.</li>
<li><strong>Are you loading the right file type?</strong> A <code>.pzw</code> is a saved workspace and a <code>.pcf</code> is a spare-parts configuration — neither is firmware. The firmware itself is the <code>.hex</code> / <code>.bin</code>.</li>
</ul>
<p>Still stuck — the file will not load, or loads with no visible effect? Work through the dedicated troubleshooting guide: <a href="https://picsimlab.com/picsimlab-hex-file-not-loading/">PICSimLab hex file not loading</a>. If the file loads and the board is selected correctly but the simulation itself will not run, see <a href="https://picsimlab.com/picsimlab-simulation-not-running/">simulation not running</a> instead. And if you have not run anything yet, start with the <a href="https://picsimlab.com/picsimlab-first-simulation/">first simulation walkthrough</a>, which uses a built-in example so the firmware side is known-good.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PICSimLab vs SimulIDE: Two Free, Open-Source Microcontroller Simulators Compared</title>
		<link>https://picsimlab.com/picsimlab-vs-simulide/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:31 +0000</pubDate>
				<category><![CDATA[Comparisons]]></category>
		<guid isPermaLink="false">https://picsimlab.com/picsimlab-vs-simulide/</guid>

					<description><![CDATA[PICSimLab vs SimulIDE: Two Free, Open-Source Microcontroller Simulators Compared Verdict: Both simulators are free and open source, so this choice is about approach, not price. SimulIDE is a real-time electronic circuit simulator: you build circuits from individual components and microcontrollers on a canvas. It is free and open source under the AGPL, sustained by voluntary...]]></description>
										<content:encoded><![CDATA[<h1>PICSimLab vs SimulIDE: Two Free, Open-Source Microcontroller Simulators Compared</h1>
<div style="border:2px solid #1a7a4a;background:#f0f8f3;padding:14px 16px;margin:0 0 18px">
<p style="margin:0"><strong>Verdict:</strong> Both simulators are free and open source, so this choice is about approach, not price. <strong>SimulIDE</strong> is a real-time electronic circuit simulator: you build circuits from individual components and microcontrollers on a canvas. It is free and open source under the AGPL, sustained by voluntary donations (its support page now points to Open Collective). <strong>PICSimLab</strong> (GPL-2.0) instead emulates complete, real development boards and lets you attach ready-made spare parts to them, with MPLAB X and GDB debugging paths. If you think in terms of circuits and components, SimulIDE&#8217;s model may suit you; if your course or project is organised around a specific development board — a PIC trainer board, an Arduino, a Blue Pill, an ESP32 DevKit — PICSimLab&#8217;s board-level model matches it more directly.</p>
</div>
<h2>At a glance</h2>
<table style="border-collapse:collapse;width:100%">
<thead>
<tr>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Aspect</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">PICSimLab</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">SimulIDE</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Price / licence</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free, open source, GPL-2.0.</td>
<td style="border:1px solid #ccc;padding:6px">Free, open source, AGPL. Development is supported by voluntary donations via Open Collective.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Simulation model</strong></td>
<td style="border:1px solid #ccc;padding:6px">Board-level: pick one of 21 simulated development boards, load firmware (.hex), attach spare parts.</td>
<td style="border:1px solid #ccc;padding:6px">Circuit-level: place components and a microcontroller on a canvas and wire the circuit yourself.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Microcontrollers</strong></td>
<td style="border:1px solid #ccc;padding:6px">PIC16F/PIC18F, AVR (Arduino Uno/Nano/Mega, ATtiny85), STM32F103 (two boards), ESP32/ESP32-C3, plus C51, Z80 and STM8S103 — coverage is defined per board.</td>
<td style="border:1px solid #ccc;padding:6px">PIC, AVR and Arduino-class microcontrollers among its simulated components, plus a library of electronic components for the surrounding circuit.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Peripherals</strong></td>
<td style="border:1px solid #ccc;padding:6px">Spare parts system: LCDs (including HD44780 and I2C variants), keypads, 7-segment displays, sensors, DC/stepper motors, an Ethernet (W5500) part, SD card, RTCs, plus a basic two-channel oscilloscope and virtual instruments.</td>
<td style="border:1px solid #ccc;padding:6px">Components are placed and wired individually on the circuit canvas, including displays, sensors and logic parts from its component library.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Debugging</strong></td>
<td style="border:1px solid #ccc;padding:6px">MPLAB X integrated debugging for PIC/AVR via the official plugin; avr-gdb, arm-gdb and esp32-gdb paths; uCsim telnet console for the uCboard.</td>
<td style="border:1px solid #ccc;padding:6px">Built-in debugging/watch facilities inside its own circuit environment.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Code editing</strong></td>
<td style="border:1px solid #ccc;padding:6px">None — by design you use MPLAB X, the Arduino IDE or VS Code with PlatformIO, as with real hardware.</td>
<td style="border:1px solid #ccc;padding:6px">Includes its own code editor for working on firmware alongside the circuit.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Platforms</strong></td>
<td style="border:1px solid #ccc;padding:6px">Desktop builds for Windows, Linux and macOS, fully offline; a limited official online version also exists.</td>
<td style="border:1px solid #ccc;padding:6px">Desktop application for the major desktop operating systems.</td>
</tr>
</tbody>
</table>
<h2>The real difference: board first, or circuit first?</h2>
<p>Most confusion between these two comes from expecting one to behave like the other. In PICSimLab, the starting point is a board that exists (or existed) as hardware: the McLab2 trainer with its PIC16F877A, an Arduino Uno, a Blue Pill. The board&#8217;s core circuits are fixed; your creativity goes into the firmware and into the spare parts you attach — the exact workflow of our <a href="https://picsimlab.com/pic16f877a-lcd-hd44780-picsimlab/">PIC16F877A LCD tutorial</a> and <a href="https://picsimlab.com/picsimlab-oscilloscope/">oscilloscope walkthrough</a>. In SimulIDE, the starting point is a blank circuit: you choose the microcontroller and build everything around it, which teaches more electronics but takes longer to reach a running system.</p>
<p>Debugging follows the same split. PICSimLab plugs into the professional toolchains — see our <a href="https://picsimlab.com/mplab-x-picsimlab-plugin/">MPLAB X plugin guide</a> — so breakpoints and inspection happen in the same IDE you would use with a hardware debugger. SimulIDE keeps debugging inside its own window, next to the circuit.</p>
<h2>Which should you choose? By scenario</h2>
<ul>
<li><strong>Your course uses a named trainer board (McLab2, PICGenios) or a specific dev board:</strong> PICSimLab — the board is already there, wired as the real one.</li>
<li><strong>You want to learn electronics by wiring components yourself:</strong> SimulIDE&#8217;s circuit-first model is built for that.</li>
<li><strong>You need STM32F103 or ESP32 simulation in a free desktop tool:</strong> PICSimLab covers the Blue Pill, STM32 H103, ESP32-DevKitC and ESP32-C3 boards — see our <a href="https://picsimlab.com/blue-pill-stm32-picsimlab/">Blue Pill</a> and <a href="https://picsimlab.com/esp32-devkitc-picsimlab/">ESP32-DevKitC</a> pages for the honest scope (two STM32 chips only; ESP32 wireless support is incremental, not complete).</li>
<li><strong>You want an editor and simulator in one window:</strong> SimulIDE.</li>
<li><strong>You are not sure:</strong> both are free — install PICSimLab from our <a href="https://picsimlab.com/download/">download page</a>, try SimulIDE from its own site, and keep the one whose mental model matches your project.</li>
</ul>
<p>One shared caution: neither tool&#8217;s simulation is the physical world. Timing, analogue behaviour and electrical edge cases differ from real silicon in any simulator, which is why both communities treat simulation as preparation for hardware, not a replacement for it.</p>
<h2>From simulation to real hardware</h2>
<p>When a simulated project is ready to become a physical one, the parts are inexpensive:</p>
<ul>
<li><a href="https://picsimlab.com/go/arduino-uno/" rel="nofollow sponsored">An Arduino Uno</a> or a complete <a href="https://picsimlab.com/go/elegoo/" rel="nofollow sponsored">ELEGOO starter kit</a> with the Uno, breadboard and the components most beginner exercises use.</li>
<li><a href="https://picsimlab.com/go/blue-pill/" rel="nofollow sponsored">An STM32 Blue Pill board</a> to run the F103 projects physically.</li>
<li><a href="https://picsimlab.com/go/starter-kit/" rel="nofollow sponsored">An electronics starter kit</a> for breadboard prototyping of the circuit you designed.</li>
<li><a href="https://picsimlab.com/go/logic-analyzer/" rel="nofollow sponsored">A USB logic analyzer</a> — the real-hardware counterpart of the simulator&#8217;s waveform views, for checking actual signals.</li>
</ul>
<p>These links are affiliate links routed through our /go/ redirects — see our <a href="https://picsimlab.com/affiliate-disclosure/">affiliate disclosure</a>. They never change the price you pay. SimulIDE itself has no affiliate programme; we mention its donation model above because supporting free tools you rely on is worth doing directly.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Your First Simulation in PICSimLab</title>
		<link>https://picsimlab.com/picsimlab-first-simulation/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:21 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">https://picsimlab.com/picsimlab-first-simulation/</guid>

					<description><![CDATA[Your First Simulation in PICSimLab: From Install to a Blinking LED This walkthrough takes you from a fresh install to a running simulation with a visible result: an LED switching on and off. It uses the best-documented combination in PICSimLab — a PIC16F877A on the McLab2 board — and the built-in example route, so you...]]></description>
										<content:encoded><![CDATA[<h1>Your First Simulation in PICSimLab: From Install to a Blinking LED</h1>
<p>This walkthrough takes you from a fresh install to a running simulation with a visible result: an LED switching on and off. It uses the best-documented combination in PICSimLab — a <strong>PIC16F877A</strong> on the <strong>McLab2</strong> board — and the built-in example route, so you do not need to write or compile any code for your first run. Once this works, every other tutorial on this site follows the same flow.</p>
<h2>What you need</h2>
<ul>
<li>PICSimLab 0.9.3 installed — follow the <a href="https://picsimlab.com/install-picsimlab-windows/">Windows install guide</a> (or the <a href="https://picsimlab.com/download/">download page</a> for Linux and macOS). No compiler is needed for this first run; compiling your own code comes in the workflow guides linked at the end.</li>
<li>About ten minutes. Nothing else: the example firmware ships with PICSimLab.</li>
</ul>
<p>No install possible right now? The <a href="https://picsimlab.com/online/">online version</a> runs the same simulator in a browser tab with documented limits (no debugging, no serial, about half desktop speed) — the steps below for selecting a board and loading an example are the same idea, with files loaded by drag and drop or the Load button.</p>
<h2>Step 1: Start PICSimLab and select the board</h2>
<p>Launch PICSimLab. Select the <strong>McLab2</strong> board and set the microcontroller to <strong>PIC16F877A</strong>. Board selection comes first in every PICSimLab session: the board defines which microcontrollers you can pick and how the firmware you load will be interpreted. McLab2 officially supports the PIC16F877A (along with the PIC16F777, PIC18F452, PIC18F4520, PIC18F4550 and PIC18F4620); the PICGenios board supports the same set if you prefer it.</p>
<h2>Step 2: Open a built-in example</h2>
<p>Open the examples from the <em>Help &rarr; Examples</em> menu and choose an McLab2 example written for the PIC16F877A — a blink or LED example is ideal for a first run. The examples are the fastest way to reach a known-good simulation, because the firmware, board and microcontroller already match. Alternatively, if you have already compiled a project, load your own firmware instead — the <a href="https://picsimlab.com/load-hex-file-picsimlab/">hex loading guide</a> covers that path.</p>
<h2>Step 3: Run the simulation</h2>
<p>Start the simulation with the run control. A working example shows immediate life: board LEDs change state, and the simulated clock starts counting. If absolutely nothing happens, do not guess — work through the <a href="https://picsimlab.com/picsimlab-simulation-not-running/">simulation not running checklist</a> (run state, reset, clock and workspace checks) before changing anything else.</p>
<h2>Step 4: Add an LED spare part and watch a pin</h2>
<p>Board LEDs are fixed to the board. To watch a pin of <em>your</em> choosing, add a spare part:</p>
<ol>
<li>Open <em>Modules &rarr; Spare parts</em>.</li>
<li>From the <em>Outputs</em> category, add <strong>LEDs</strong> (a bank of 8 red LEDs).</li>
<li>Right-click the part, open <strong>Properties</strong>, and connect the first LED to the pin your example toggles (for a typical blink example, check which port pin the example drives — RB0 is a common choice).</li>
<li>Run the simulation again and watch the LED follow the pin. Right-clicking any spare part also gives you Move, Rotate, Delete and Help.</li>
</ol>
<p>You have now used the three building blocks of every PICSimLab session: a board, a firmware file and spare parts wired in Properties. The dedicated <a href="https://picsimlab.com/picsimlab-led-push-button-spare-parts/">LED and push button spare parts tutorial</a> goes further, and the <a href="https://picsimlab.com/pic16f877a-blink-led-picsimlab/">PIC16F877A LED blink tutorial</a> shows the same blink written and compiled by you, end to end.</p>
<h2>Step 5: Stop, reset, experiment</h2>
<p>Stop the simulation, change one thing — a different example, a different LED pin in Properties, a push button part wired to an input pin — and run again. Small, reversible experiments are how the spare-parts system clicks. When you are ready to run your own code, continue with the workflow that matches your chip family: <a href="https://picsimlab.com/mplab-x-xc8-picsimlab-workflow/">MPLAB X + XC8 for PIC</a> or <a href="https://picsimlab.com/arduino-ide-picsimlab-workflow/">PlatformIO / Arduino IDE for AVR, STM32 and ESP32</a>. The full beginner path is collected on the <a href="https://picsimlab.com/getting-started/">getting started page</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PICSimLab vs Wokwi: Desktop Offline Simulation or Browser-Based Simulation?</title>
		<link>https://picsimlab.com/picsimlab-vs-wokwi/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:20 +0000</pubDate>
				<category><![CDATA[Comparisons]]></category>
		<guid isPermaLink="false">https://picsimlab.com/picsimlab-vs-wokwi/</guid>

					<description><![CDATA[PICSimLab vs Wokwi: Desktop Offline Simulation or Browser-Based Simulation? Verdict: Wokwi runs entirely in your browser — nothing to install, easy to share a project link, and strong for quick Arduino and ESP32 sketches. Its fuller features sit behind paid plans (paid plans from around €5.6/month, checked Oct 2026). PICSimLab is a free, open-source desktop...]]></description>
										<content:encoded><![CDATA[<h1>PICSimLab vs Wokwi: Desktop Offline Simulation or Browser-Based Simulation?</h1>
<div style="border:2px solid #1a7a4a;background:#f0f8f3;padding:14px 16px;margin:0 0 18px">
<p style="margin:0"><strong>Verdict:</strong> <strong>Wokwi</strong> runs entirely in your browser — nothing to install, easy to share a project link, and strong for quick Arduino and ESP32 sketches. Its fuller features sit behind paid plans (paid plans from around €5.6/month, checked Oct 2026). <strong>PICSimLab</strong> is a free, open-source desktop application that works completely offline, simulates full development boards with attachable spare parts, and is the stronger free option for PIC microcontrollers in particular. PICSimLab also has an official online version, but it is limited compared with the desktop build (see below). Choose Wokwi for zero-install convenience and sharing; choose PICSimLab for offline PIC board work, MPLAB X debugging and no subscription.</p>
</div>
<h2>At a glance</h2>
<table style="border-collapse:collapse;width:100%">
<thead>
<tr>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Aspect</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">PICSimLab</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Wokwi</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Where it runs</strong></td>
<td style="border:1px solid #ccc;padding:6px">Desktop application for Windows, Linux and macOS; works offline. An official online version exists (same source compiled with Emscripten) with documented limits — no Tools menu, no debugging and no serial communication except the IO Vterm terminal, and the fastest build runs at about 50% of desktop speed.</td>
<td style="border:1px solid #ccc;padding:6px">In the web browser. No installation; you need an internet connection to use it.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Price</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free and open source (GPL-2.0), desktop and online versions alike.</td>
<td style="border:1px solid #ccc;padding:6px">Free tier available; paid plans from around €5.6/month (checked Oct 2026) unlock the fuller feature set.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Microcontroller focus</strong></td>
<td style="border:1px solid #ccc;padding:6px">PIC16F/PIC18F is the home turf, plus AVR/Arduino, STM32F103 (two boards only), ESP32 and ESP32-C3, and C51/Z80/STM8S103 — 21 simulated development boards in total.</td>
<td style="border:1px solid #ccc;padding:6px">Strongest around Arduino and ESP32-class boards and common components wired freely on a virtual canvas.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>How you build</strong></td>
<td style="border:1px solid #ccc;padding:6px">Choose a simulated board, load a compiled .hex file, attach spare parts (LCDs, keypads, sensors, motors, a basic two-channel oscilloscope).</td>
<td style="border:1px solid #ccc;padding:6px">Wire components and a board together in the browser editor and run the sketch there.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Debugging</strong></td>
<td style="border:1px solid #ccc;padding:6px">Desktop version: MPLAB X integrated debugging for PIC/AVR and GDB paths for AVR, STM32 and ESP32. The online version has no debugging.</td>
<td style="border:1px solid #ccc;padding:6px">Browser-based debugging and monitoring features, with the fuller set on paid plans.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Sharing / classroom use</strong></td>
<td style="border:1px solid #ccc;padding:6px">You share project/configuration files; everyone needs the desktop app (or the limited online version) to open them.</td>
<td style="border:1px solid #ccc;padding:6px">Share a link and the project opens in any modern browser — a genuine convenience for classes and forum answers.</td>
</tr>
</tbody>
</table>
<h2>Where Wokwi is genuinely ahead</h2>
<p>For a quick experiment — testing an Arduino or ESP32 idea, showing a teacher or a forum a working circuit, working from a machine where you cannot install software — Wokwi&#8217;s browser model is hard to beat. There is no installer, no operating-system differences, and a shared link reproduces your exact project on someone else&#8217;s screen. If most of your work is Arduino/ESP32 sketches and you value that sharing workflow, the paid tiers may be worth it to you.</p>
<h2>Where PICSimLab is genuinely ahead</h2>
<p>PICSimLab is free in full — no tier unlocks — and it works with no internet connection at all, which matters in labs, classrooms and countries where connectivity is metered. Its PIC support is the deeper of the two: real trainer boards such as McLab2 and PICGenios, the PIC16F877A project path (<a href="https://picsimlab.com/pic16f877a-blink-led-picsimlab/">LED blink</a>, <a href="https://picsimlab.com/pic16f877a-lcd-hd44780-picsimlab/">HD44780 LCD</a>, <a href="https://picsimlab.com/pic16f877a-uart-serial-picsimlab/">UART serial</a>), and MPLAB X source-level debugging via the official plugin (<a href="https://picsimlab.com/mplab-x-picsimlab-plugin/">plugin guide</a>). Its Arduino and ESP32 boards are covered in our <a href="https://picsimlab.com/arduino-uno-nano-picsimlab/">Arduino Uno and Nano</a> and <a href="https://picsimlab.com/esp32-devkitc-picsimlab/">ESP32-DevKitC</a> board pages.</p>
<h2>About PICSimLab&#8217;s online version — honestly</h2>
<p>PICSimLab does have an official online version, compiled from the same source with Emscripten. It is useful for a first look, but the official documentation is clear about its limits: no Tools menu, no debugging, no serial communication (only the IO Vterm virtual terminal), and the multithreaded build reaches about 50% of desktop speed and is only tested in desktop Chrome and Firefox. For anything beyond a quick test, the project itself advises the desktop version — download it free from our <a href="https://picsimlab.com/download/">download page</a> (files link to the official GitHub release). Our dedicated <a href="https://picsimlab.com/online/">online version hub</a> is now live &#8211; start there to try PICSimLab in your browser, and use the download page when you are ready for the full desktop version.</p>
<h2>Which should you choose? By scenario</h2>
<ul>
<li><strong>Learning PIC microcontrollers (PIC16F877A, PIC18F4550) with MPLAB X:</strong> PICSimLab — this is its home ground, and it is free.</li>
<li><strong>Sharing a runnable Arduino/ESP32 demo by link:</strong> Wokwi.</li>
<li><strong>Unreliable or expensive internet, or an offline lab:</strong> PICSimLab desktop.</li>
<li><strong>A school Chromebook-style environment with no installs allowed:</strong> Wokwi, or PICSimLab&#8217;s online version for a limited first look.</li>
<li><strong>You resent subscriptions on principle:</strong> PICSimLab — there is nothing to subscribe to.</li>
</ul>
<p>Wokwi has no affiliate programme and this page earns nothing from mentioning it; we recommend it above where the browser model genuinely fits better.</p>
<h2>From simulation to real hardware</h2>
<p>Both tools simulate boards that are cheap to own for real. When a project outgrows the simulator, the usual next steps are:</p>
<ul>
<li><a href="https://picsimlab.com/go/esp32-devkit/" rel="nofollow sponsored">An ESP32 development board</a> — also available as a <a href="https://picsimlab.com/go/sparkfun-esp32/" rel="nofollow sponsored">SparkFun ESP32 board</a> (SparkFun originals) or a compact <a href="https://picsimlab.com/go/seeed-xiao/" rel="nofollow sponsored">Seeed XIAO board</a> for ESP32-C3 projects.</li>
<li><a href="https://picsimlab.com/go/arduino-uno/" rel="nofollow sponsored">An Arduino Uno</a> for the ATmega328P sketches you prototyped in either simulator.</li>
<li><a href="https://picsimlab.com/go/starter-kit/" rel="nofollow sponsored">An electronics starter kit</a> with a breadboard, jumper wires and basic components to rebuild the simulated circuit physically.</li>
<li>For budget buying outside the US/EU, the same ESP32 boards are listed on <a href="https://picsimlab.com/go/aliexpress-esp32/" rel="nofollow sponsored">AliExpress</a> and <a href="https://picsimlab.com/go/banggood-esp32/" rel="nofollow sponsored">Banggood</a>.</li>
</ul>
<p>These hardware links are affiliate links routed through our /go/ redirects — see our <a href="https://picsimlab.com/affiliate-disclosure/">affiliate disclosure</a>. They never change the price you pay.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PICSimLab vs Proteus: Free Board-Level PIC Simulation or a Full EDA Suite?</title>
		<link>https://picsimlab.com/picsimlab-vs-proteus/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:19:10 +0000</pubDate>
				<category><![CDATA[Comparisons]]></category>
		<guid isPermaLink="false">https://picsimlab.com/picsimlab-vs-proteus/</guid>

					<description><![CDATA[PICSimLab vs Proteus: Free Board-Level PIC Simulation or a Full EDA Suite? Verdict: These two tools solve different problems. Proteus (from Labcenter Electronics) is a paid, professional package that combines schematic capture, PCB layout and microcontroller simulation (VSM) in one suite — the right choice if you need schematic + PCB in the same tool...]]></description>
										<content:encoded><![CDATA[<h1>PICSimLab vs Proteus: Free Board-Level PIC Simulation or a Full EDA Suite?</h1>
<div style="border:2px solid #1a7a4a;background:#f0f8f3;padding:14px 16px;margin:0 0 18px">
<p style="margin:0"><strong>Verdict:</strong> These two tools solve different problems. <strong>Proteus</strong> (from Labcenter Electronics) is a paid, professional package that combines schematic capture, PCB layout and microcontroller simulation (VSM) in one suite — the right choice if you need schematic + PCB in the same tool as simulation, or if a school or company is buying licences centrally. <strong>PICSimLab</strong> is free and open source (GPL-2.0), runs offline on your own machine, and simulates real development boards with attachable spare parts — the right choice for learning PIC, AVR, STM32F103 and ESP32 firmware at board level without paying anything. If your end goal is a finished PCB designed in the same program, Proteus covers ground PICSimLab never tries to. If your goal is to practise firmware on a simulated board today, for free, PICSimLab is enough for most learners.</p>
</div>
<h2>At a glance</h2>
<table style="border-collapse:collapse;width:100%">
<thead>
<tr>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Aspect</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">PICSimLab</th>
<th style="border:1px solid #ccc;padding:6px;text-align:left">Proteus (Labcenter)</th>
</tr>
</thead>
<tbody>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Price / licence</strong></td>
<td style="border:1px solid #ccc;padding:6px">Free and open source, GPL-2.0. No licence fee, no subscription.</td>
<td style="border:1px solid #ccc;padding:6px">Paid commercial software. Licences are sold as packages assembled with Labcenter&#8217;s Configurator — you pick a pin-count tier and the microcontroller families (VSM modules) you need, and Labcenter quotes that package. There is no single public fixed price we can quote honestly, so check the Configurator on the Labcenter site for a current quote for your exact configuration.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>What it is</strong></td>
<td style="border:1px solid #ccc;padding:6px">A real-time emulator of development boards — 21 boards across PIC, AVR/Arduino, STM32F103, ESP32/ESP32-C3, plus C51, Z80 and STM8S103 via uCsim.</td>
<td style="border:1px solid #ccc;padding:6px">A full EDA suite: schematic capture, PCB layout and VSM simulation of circuits you draw yourself.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Schematic + PCB</strong></td>
<td style="border:1px solid #ccc;padding:6px">No schematic editor and no PCB layout. You simulate an existing board; you do not design a board in it.</td>
<td style="border:1px solid #ccc;padding:6px">Yes — schematic capture and PCB layout are core parts of the suite, and simulation runs from the schematic.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>How you build a circuit</strong></td>
<td style="border:1px solid #ccc;padding:6px">Pick a simulated development board (for example McLab2 with a PIC16F877A), load a compiled .hex file, and attach spare parts — LCDs, keypads, LEDs, motors, sensors and a basic two-channel oscilloscope.</td>
<td style="border:1px solid #ccc;padding:6px">Draw the circuit component by component on a schematic, place the microcontroller model, and attach your firmware to it.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Code editing / compiling</strong></td>
<td style="border:1px solid #ccc;padding:6px">None built in, by design. You write and build firmware in MPLAB X, the Arduino IDE or VS Code with PlatformIO, exactly as for real hardware.</td>
<td style="border:1px solid #ccc;padding:6px">Works with external compilers and its own project workflows; the simulation is driven from the schematic project.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Debugging</strong></td>
<td style="border:1px solid #ccc;padding:6px">MPLAB X integrated debugging for PIC and AVR (via the official plugin), plus GDB paths for AVR, STM32 and ESP32 backends.</td>
<td style="border:1px solid #ccc;padding:6px">Source-level debugging inside the suite for supported microcontroller families, tied to the schematic simulation.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Offline use</strong></td>
<td style="border:1px solid #ccc;padding:6px">Fully offline desktop application for Windows, Linux and macOS.</td>
<td style="border:1px solid #ccc;padding:6px">Desktop application (Windows); licensing is handled through Labcenter.</td>
</tr>
<tr>
<td style="border:1px solid #ccc;padding:6px"><strong>Best fit</strong></td>
<td style="border:1px solid #ccc;padding:6px">Students, hobbyists and teachers who want free, board-level practice that mirrors real trainer boards.</td>
<td style="border:1px solid #ccc;padding:6px">Institutions and professionals who need schematic, simulation and PCB in one paid toolchain.</td>
</tr>
</tbody>
</table>
<h2>Where Proteus is genuinely ahead</h2>
<p>Proteus is the more complete engineering package, and it is not close on breadth: if you need to draw a schematic, simulate the circuit on that schematic, and then lay out the PCB without leaving the tool, PICSimLab simply does not offer that workflow. Proteus is also the established choice in many school and university labs, so course material, library components and institutional licences are built around it. If your class or employer already standardises on Proteus, that ecosystem is a real reason to stay with it.</p>
<h2>Where PICSimLab is genuinely ahead</h2>
<p>PICSimLab wins on cost (it is free), on openness (GPL-2.0 source), and on how directly it mirrors the physical trainer boards used in PIC courses. Boards such as McLab2 and PICGenios run the PIC16F877A and PIC18F4550 exactly as many real lab courses teach them, and you can follow a full project path in it — from a first <a href="https://picsimlab.com/pic16f877a-blink-led-picsimlab/">PIC16F877A LED blink</a> to an <a href="https://picsimlab.com/pic16f877a-lcd-hd44780-picsimlab/">HD44780 LCD</a>, a matrix keypad and UART serial. The supported boards are listed on pages such as our <a href="https://picsimlab.com/mclab2-board-picsimlab/">McLab2 board guide</a>. Debugging through MPLAB X uses the official plugin described in our <a href="https://picsimlab.com/mplab-x-picsimlab-plugin/">MPLAB X plugin guide</a>, so the skills transfer directly to real hardware.</p>
<h2>Which should you choose? By scenario</h2>
<ul>
<li><strong>You are a student learning PIC programming and the budget is zero:</strong> PICSimLab. It covers the classic PIC16F877A/PIC18F4550 coursework, runs offline, and costs nothing.</li>
<li><strong>Your school buys licences and teaches schematic + PCB design:</strong> Proteus. The integrated schematic-to-PCB flow and institutional licensing are what you are paying for.</li>
<li><strong>You want to design a custom board and simulate it before fabrication:</strong> Proteus for the design-and-simulate stage; PICSimLab cannot lay out a PCB.</li>
<li><strong>You are preparing firmware that will run on a real trainer board or dev board:</strong> PICSimLab&#8217;s board-level simulation matches that workflow, and the step to real hardware (below) is short.</li>
<li><strong>You need ESP32 or Arduino practice as well as PIC:</strong> PICSimLab includes Arduino Uno/Mega, Blue Pill and ESP32 boards in the same free tool.</li>
</ul>
<p>Full disclosure on our side: Proteus has no affiliate programme and this page earns nothing from mentioning it. We recommend it above where it is the better tool because that is the honest comparison. PICSimLab itself is free either way — get it from our <a href="https://picsimlab.com/download/">download page</a>, which links to the official GitHub release files.</p>
<h2>From simulation to real hardware</h2>
<p>Whichever simulator you learn on, the projects eventually belong on a real board. The boards PICSimLab simulates correspond to inexpensive hardware you can buy and run the same firmware on:</p>
<ul>
<li><a href="https://picsimlab.com/go/esp32-devkit/" rel="nofollow sponsored">An ESP32 development board</a> — the real counterpart of PICSimLab&#8217;s ESP32-DevKitC board.</li>
<li><a href="https://picsimlab.com/go/arduino-uno/" rel="nofollow sponsored">An Arduino Uno</a> — the same ATmega328P board simulated via simavr.</li>
<li><a href="https://picsimlab.com/go/blue-pill/" rel="nofollow sponsored">An STM32 Blue Pill board</a> — the STM32F103C8T6 board PICSimLab simulates on its QEMU backend.</li>
<li><a href="https://picsimlab.com/go/pickit/" rel="nofollow sponsored">A PICkit programmer</a> — for programming real PIC chips once you move past the simulator.</li>
</ul>
<p>If you would rather learn with a structured course alongside the simulator, see the embedded systems courses on <a href="https://picsimlab.com/go/udemy-embedded/" rel="nofollow sponsored">Udemy</a> and <a href="https://picsimlab.com/go/coursera-embedded/" rel="nofollow sponsored">Coursera</a>. The hardware and course links on this page are affiliate links routed through our /go/ redirects — see our <a href="https://picsimlab.com/affiliate-disclosure/">affiliate disclosure</a>. They never change the price you pay.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>GDB Cannot Connect to PICSimLab on localhost:1234? Backend Fixes</title>
		<link>https://picsimlab.com/picsimlab-gdb-debug-connection/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 22 Oct 2026 04:13:12 +0000</pubDate>
				<category><![CDATA[Troubleshooting]]></category>
		<guid isPermaLink="false">https://picsimlab.com/picsimlab-gdb-debug-connection/</guid>

					<description><![CDATA[GDB Cannot Connect to PICSimLab on localhost:1234? Backend Fixes You started your GDB, typed target remote localhost:1234, and got a refusal — or worse, a silent hang. In PICSimLab, remote GDB debugging only exists for some backends, only after you switch it on inside the simulator, and only with the matching GDB flavour for your...]]></description>
										<content:encoded><![CDATA[
<h1>GDB Cannot Connect to PICSimLab on localhost:1234? Backend Fixes</h1>
<p>You started your GDB, typed <code>target remote localhost:1234</code>, and got a refusal — or worse, a silent hang. In PICSimLab, remote GDB debugging only exists for some backends, only after you switch it on inside the simulator, and only with the matching GDB flavour for your chip family. This page sorts all three conditions, backend by backend.</p>
<h2>Symptoms</h2>
<ul>
<li><code>target remote localhost:1234</code> (or <code>target extended-remote localhost:1234</code>) fails with &#8220;connection refused&#8221;.</li>
<li>The wrong GDB binary connects oddly, errors immediately, or cannot make sense of the target.</li>
<li>You cannot find any GDB option for your board at all — notably on the uCboard or the gpboard.</li>
<li>Debugging worked in MPLAB X but the command-line GDB flow does not (or the reverse).</li>
</ul>
<h2>Why it happens</h2>
<p><strong>Debug was never enabled in PICSimLab.</strong> The shared pattern in the official documentation for every GDB backend is: first open PICSimLab&#8217;s configuration window, <strong>enable debug and select GDB</strong>, and only then connect. With debug off, nothing listens on port 1234 and every connection is refused — the most common cause by far.</p>
<p><strong>Each backend has its own debugger.</strong> There is no single &#8220;PICSimLab GDB&#8221;. Per the official Boards/backend documentation:</p>
<table style="border-collapse:collapse;width:100%">
<thead><tr><th style="border:1px solid #ccc;padding:6px;text-align:left">Backend (boards)</th><th style="border:1px solid #ccc;padding:6px;text-align:left">Remote debug interface</th></tr></thead>
<tbody>
<tr><td style="border:1px solid #ccc;padding:6px">simavr (Arduino Mega / Nano / Uno, Franzininho DIY)</td><td style="border:1px solid #ccc;padding:6px"><strong>avr-gdb</strong> — plus MPLAB X integrated debug</td></tr>
<tr><td style="border:1px solid #ccc;padding:6px">qemu-stm32 (Blue Pill, STM32 H103)</td><td style="border:1px solid #ccc;padding:6px"><strong>arm-gdb</strong> (<code>arm-none-eabi-gdb</code> or <code>gdb-multiarch</code>)</td></tr>
<tr><td style="border:1px solid #ccc;padding:6px">qemu-esp32 (ESP32-DevKitC, ESP32-C3-DevKitC-02)</td><td style="border:1px solid #ccc;padding:6px"><strong>esp32-gdb</strong> (<code>xtensa-esp32-elf-gdb</code>)</td></tr>
<tr><td style="border:1px solid #ccc;padding:6px">picsim (the PIC boards)</td><td style="border:1px solid #ccc;padding:6px">MPLAB X integrated debug — <em>not</em> remote GDB</td></tr>
<tr><td style="border:1px solid #ccc;padding:6px">uCsim (uCboard: C51 / Z80 / STM8S103)</td><td style="border:1px solid #ccc;padding:6px">Remote console over <strong>telnet</strong> — not GDB</td></tr>
<tr><td style="border:1px solid #ccc;padding:6px">gpsim (gpboard)</td><td style="border:1px solid #ccc;padding:6px"><strong>None yet</strong> — no debugging support</td></tr>
</tbody>
</table>
<p>So two &#8220;failures&#8221; are actually correct behaviour: pointing GDB at a <strong>uCboard</strong> can never work (its remote debug is a telnet console), and the <strong>gpboard has no debugging support yet</strong> at all. Two port traps complete the picture: the MPLAB X plugin also uses port 1234 (a separate path — running both at once invites a clash), while PICSimLab&#8217;s <strong>rcontrol interface on port 5000 is not a debug port</strong> and GDB cannot talk to it. Finally, the official <strong>online version has no debugging support</strong> — GDB debugging is a desktop-version feature.</p>
<h2>Fix</h2>
<ol>
<li><strong>Confirm your backend is a GDB backend.</strong> GDB applies to simavr, qemu-stm32 and qemu-esp32 boards only. For PIC boards, use the MPLAB X path instead (see our <a href="https://picsimlab.com/mplab-x-picsimlab-plugin/">MPLAB X plugin guide</a>); for the uCboard, use its telnet console; for the gpboard, run without a debugger.</li>
<li><strong>Load the board and firmware in PICSimLab first</strong>, using the desktop version, with the simulation ready.</li>
<li><strong>Enable debug in the configuration window and select GDB</strong> (as opposed to any other debug option). This is the step that opens the listener on port 1234.</li>
<li><strong>Start the matching GDB with your .elf file as its argument</strong> — <code>avr-gdb</code> for AVR boards, <code>arm-none-eabi-gdb</code> (or <code>gdb-multiarch</code>) for the STM32 boards, <code>xtensa-esp32-elf-gdb</code> for the ESP32 boards — then connect with <code>target extended-remote localhost:1234</code> (the STM32 documentation uses the extended-remote form; the AVR/ESP32 flows use the same localhost:1234 endpoint). Using the <code>.elf</code> (not the <code>.hex</code>) is what gives GDB your symbols.</li>
<li><strong>If the connection is still refused:</strong> confirm the port in the configuration window is actually 1234 (it can be changed), confirm no firewall is dropping the localhost connection, and close anything else holding port 1234 — most often an MPLAB X plugin session — before retrying.</li>
<li><strong>Do not substitute ports.</strong> If you find yourself typing port 5000 into GDB, stop: 5000 is rcontrol, the text-command remote control for the simulator itself (start/stop, loadhex, pin inspection). It is a useful tool, but it is not a debug server.</li>
</ol>
<h2>Still stuck?</h2>
<p>Cross-check your flow against the <a href="https://picsimlab.com/mplab-x-picsimlab-plugin/">MPLAB X plugin guide</a> if your board is a PIC board (that, not GDB, is its debug path), and against a known-good board/firmware combination from the <a href="https://picsimlab.com/pic16f877a-blink-led-picsimlab/">blink tutorial</a> to separate &#8220;simulator not running&#8221; from &#8220;debugger not connecting&#8221;. If debug is enabled, the backend and GDB flavour match, and localhost:1234 still refuses on the desktop v0.9.3, report it — backend, board, GDB flavour and the exact GDB error included — on the project&#8217;s tracker: <a href="https://github.com/lcgamboa/picsimlab/issues" target="_blank" rel="noopener">github.com/lcgamboa/picsimlab/issues</a>.</p>

]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
