Tucker’s Status Report for 2026-10-31

Last week, I reported that I was slightly behind schedule. I’m happy to report that the emulator stack is back on track, and it’s been a fun challenge to get to this point.

I am very excited to report that it is now interactive, and performance is good on my laptop! PalmOS takes around 340 million instructions to initialize and check its internal state and all peripherals. To complete this process, we mimic the peripherals accurately enough that the software can’t tell it is sandboxed. Afterwards, the CPU sleeps (which we need to communicate up the stack to the host OS so it can sleep). Touch events are the first interrupt implemented, and the interrupt most critical to interactivity of the device. (NB: because PalmOS does not multitask, general interaction does not require timer interrupts, so they have not been high on my priority list.)

I ran into an emulator bug with PalmOS shutting down after interrupts. For simplicity earlier, I spoofed some GPIO reads to zero when the initialization process does not depend on realistic values. As it happens, GPIO Port D measures the battery level. PalmOS reads battery level during boot, but does not stop the boot process if the battery level is too low. However, it does check after the first interrupt, so the first touch caused the device to assume it had no battery left and shut down. Now we provide a fake charge level.

There are two more steps to take in the immediate future. One is to implement more interrupts, which has a very concrete “success” outcome. The other is more design-heavy: asynchronous delivery of interrupts. I’ve forgone this for now, because the most performant and power-aware design for my laptop is almost certainly not the right choice for our ESP32-P4 processor running FreeRTOS. (After all, targeting our specific package is a major advantage of writing our own components.) I’ve been sketching this out throughout the week; currently, I plan on sync points between every few instruction executions where we check a queue. I’m eager to play around with a properly async design with multiple tasks, I suspect it won’t be worth performing as an optimization (and could potentially hurt performance) and it would only be worth trying as a learning exercise. We will see!

Having seen comfortable performance margins (despite running on a much more capable core), my assessment of the risk of performance has gone down. I have confidence in my ability to achieve fully performant execution. By the end of Monday, I’ll have complete data about performance on the P4, and will adjust the emulator schedule appropriately. I think storage carries some risk – we are working with finite flash on the device, and I’m worried about the complexity of emulating an SD card to PalmOS – but our current forecasts look good, and we have back-up plans for these problems. On the emulator side, the risks I’m aware of are manageable!

I do not any adjustments to the schedule of emulator work at this time, but will reevaluate depending on performance data.

Maggie’s Status Report for 2026-10-31

Earlier this week, we tried to assemble the PCB in the TechSpark PCB Lab. However, we realized several ICs were too small to be soldered on using the equipment we had access to, so we decided to reorder the PCB with most components preassembled.

The GPS module arrived towards the later half of the week, so I also worked on integrating it with the ESP32P4 dev board. The configuration, initialization, NMEA message parsing, and PPS timing support were completed, and the good news is firmware now reports latitude, longitude, altitude, and UTC timestamps. I tested this between Squirrel Hill and campus, and the log showed within 10m horizontal accuracy, which hit our goal. However, during the development, I also noticed the module needs to take several minutes to reacquire location information after a full power-off, which is a bit long and I might want to further look into for a workaround if time allows.

Firmware integration will be delayed by approximately 10 days because of the PCB reorder. To mitigate this, I will continue developing and testing peripheral services on the dev board while waiting.

Next week, I plan to integrate GPS updates into the UI simulator, and after that, the main goal is to create the touchscreen and LoRa firmware scaffolds for later hardware integration.

Team Status Report for 2026-10-24

This is a lighter week for us since we were waiting for a lot of pending delivery. Progress wise, we are transitioning into integration from designing. We’d done an inventory check to make sure all the necessary components have been ordered. The PCB has arrived and we are waiting for the processor to arrive for the initial assembly. We also continued to have improvements to memory access and instruction decoding regarding the emulator development.

The current main risk is PCB bring-up, and the integration afterwards. We will assembly and test the PCB without the modules that haven’t arrived. Once the continuity and power-rail measurements are good, we will test running programs on the PCB. We will also focus on memory access optimization and benchmarking on the emulator since that’s the current performance bottleneck.

We have adjusted the schedule to assembly the PCB early next week to account for its delayed delivery. A couple changes in the design are that the emulator will use a hard-coded chip-select config for performance instead of fully reproducing the original hardware behaviour, and we revised the enclosure design to work with low-profile switches. These are some new design choices and neither affects the core system requirements.

Next week, we will assemble and test the PCB in TechSpark. Once it’s verified to be functional, we will begin peripheral integration and testing on the board and also do more performance benchmarking and optimization on the Pam OS emulator.

Maggie’s Status Report for 2026-10-24

This week, I mainly focused on reviewing feedbacks on our design report, as well as working on the ethics assignment. Firmware development slowed down since both the GPS module hasn’t been delivered yet, and I worked on fixing some minor details of the scaffolding. Likewise, we have received the PCB but are still waiting for the hardware components to arrive. We are still roughly on schedule since we have allocated buffer time to account for this delay in delivery in the schedule. The estimated arrival is next week, and the plan is to assemble the PCB and test it, as well as begin the peripheral driver integration on the PCBA afterwards for the interim demo.

Sophia’s Status Report for 2026-10-24

A bit of a lighter week due to being in between steps and other obligations outside of this class. The PCB arrived, along with the parts order! I took inventory and made sure we had everything we ordered, including the fabbed boards, components, and stencils. The only components we’re waiting on now are the GPS module and display, but we can still assemble the board next week without these components since both of these are connected via header rather than being soldered onto the board. We adjusted our schedule to account for the PCB being ordered over break rather than before, so we should still be on track to assemble early next week in TechSpark and test powering on the PCB in time for the interim demo. At minimum, I plan to test continuity, as well as plugging it into battery/USB and ensuring that the voltages look fine. If possible, I’ll also coordinate with Maggie to see how much of the peripherals we can begin testing, if any.

Tucker’s Status Report for 2026-10-24

Hello again! This week, I kept working on the emulator and have new plans for the housing. We received most of our parts, and will be doing integration soon. Over the next two weeks, my job is to bring up the emulated Palm OS on the dev board, not just on my laptop!

I’ve been refining our model of the m515 components based on areas I know mismatch real hardware and where the PalmOS image stops making progress. One thing that I’m deliberately not faithfully recreating is the chip-select system. This version of PalmOS initially runs without the chip-select system set up (and thus truncates all addresses) and then initializes it to a known pattern (lower half of ram for ephemeral memory, upper half for storage, and a 4MB flash). The only changes after this are write-protecting and un-protecting the storage half of memory, as a rudimentary way to detect accidental writes. (This does not protect against a malicious app, as all programs are run in supervisor mode.) Instead of fully implementing the chip-select system, I hard-code the chip-select configuration for performance.

I measured instruction/data memory time as making up nearly 90% of execution time in warm optimized builds, because the emulator must do an operation for every instruction and data access, and a naïve approach has indirection and branches. (I would like to research what the ratio is in real hardware…) Therefore, my hypothesis that it’s the first place to look for performance improvements is correct! My (yet-to-measure) theories on the best way to optimize: emit separate emulator code for pre-chip-select and post-chip-select code to avoid branches, emit separate code paths for instruction fetches and data read/write, and try catching MMIO accesses with hardware traps instead of a branch (which may be less performant during boot, but I hypothesize that it will be more performant later). We can make a lot of improvements since accurate hardware-timing is a non-goal (and we can always slow it down later if it becomes a goal). More work to come!

We decided to use low-profile low-actuation-distance keyboard key switches for buttons: they’re very easy to source (my house is full of them), very reliable, have a convenient post for mounting a cap, and of course feel great. As a result, the case will have a different button spacing and needs less structure for keeping the buttons captive.

Next week, I’m still working on the emulator, especially on the dev board. Performance continues to be a major risk here, and I’m contemplating setting up more benchmark measurement infrastructure. I’m excited to see how our hardware integration goes!

Team Status Report for 2026-10-10

This week, we completed our design report and made progress on both software and hardware. In terms of software, we made progress on the emulator, as well as converting bare-mental implementation to using RTOS tasks and an embedded UI. For hardware, we completed the layout and ordered the PCB over fall break.

Our main risk is that the PCB ordering was delayed; however, the order was approved and will ship within the next few days, when we can assemble the PCB in TechSpark; we also planned for fall break and the week after as a buffer in case this happened. We also wrote about global, cultural, and environmental factors below. A was written by Maggie, B was written by Sophia, and C was written by Tucker.

 

Global Factors

The global factors we considered are tied to some of the main motivations of this product, which is to address the universal concern of technology addiction, internet safety, and healthy digital boundary for especially the younger population. Nowadays, children need to communicate independently and participate in digital activities without unrestricted access to the public internet. We design the product to address this need through a constrained application environment, messaging, and location tracking system to support the children’s independence while helping parents and supervisors monitor their safety and digital boundaries. Besides this, we also want to provide an alternative communication method using LoRa for situations where cellular service is unavailable, unreliable, or unaffordable. For now on the prototype, we use the 915MHz band, and we would adjust this frequency on future versions if we plan to use it in regions outside of the US.

Cultural Factors

Parents must often send their children to school or other spaces, such as after-school activities or playdates, independently. Our product provides a solution for parents to feel more comfortable with their child’s independence through being able to communicate with them while still maintaining safety both virtually and in the real world. The amount of hours that the child spends away from their parent may differ depending on age, family values (e.g. allowing children to play outside until late vs. keeping them at home without explicit permission), extracurricular activities (sports, cram school, or lack thereof), and more; however, we would like the battery life of the product to last 16 hours idle to allow for recharging during 8 hours of sleep.

Environmental Factors

In terms of environmental factors, we primarily considered material use, energy consumption, repairability, and e-waste. For our prototype, we use components such as LCD screen and LiPo battery, which rely on raw materials such as liquid crystals and lithium. Since they are off-the-shelf, we designed the device to reduce unnecessary resource consumption by using a rechargeable battery, and utilized a minimal number of low-power components required for the spec to reduce current draw. We also attempted to make as many aspects of our design modular as possible in order to reduce the need of replacing the entire device when one sub-component requires repair, thus improving the product’s lifespan and reducing e-waste.

Sophia’s Status Report for 2026-10-10

This week, I finalized a first version of the layout for the main PCB. Initially, the plan was to create a PCBA with the ESP32-P4 IC on it; although a layout was created for this version, due to issues sourcing the part, we pivoted to a WT0132P4-A1 module with the flash and power distribution integrated, and assembling the PCBs ourselves. This greatly simplified the layout of the PCB; however, it required us to switch from 3.3V/1.8V to 5V. This meant that instead of having a 1.8V DCDC (which is now integrated into the module), we needed to have a boost to 5V instead, along with keeping the 3.3V LDO for the peripherals. I also modified the LiPo charger to one that allowed the board to switch to USB power whenever it was plugged in, and regulated to a consistent 4.5V or below. This was then boosted to 5V for the processor and regulated to 3.3V in parallel. I also switched the 15V boost IC for the display to a constant current boost.

I was able to order the PCB fabrication along with the stencil on JLCPCB, and am planning to order the rest of the parts this week. When we have all of the parts, we plan to use the reflow oven in TechSpark to assemble our PCB, as there are many surface-mounted components. If the PCB and components do not arrive in time, I will be updating the housing design and working on a hardware testing plan.

v1 of PCB layout with ESP32

v2 of the PCB layout with WT0132P4-A1

Maggie’s Status Report for 2026-10-10

This week, I’ve been mainly working on drafting the design report. I also placed the GPS module breakout board order, and while waiting of the delivery, I worked on familiarizing myself with FreeRTOS since we need to switch from bare-metal given the increasing software complexity and timing management need.

I read the official docs since we will be using an ESP modified version of vanilla FreeRTOS to learn about configurations and APIs to use it in the Raffia app. The next step would be converting the existing testing functions running in an infinite loop into RTOS tasks.

Besides, I also explored embedded UI approaches. After comparing a couple different framework options such as Embedded Wizard, I decided to go with LGVL given its lightweight and compatibility with Mac since that’s my dev environment. Over the next few weeks, we will continue refining the UI based on the implemented functionalities to make it more intuitive.

The firmware development is still on schedule. Depending on the PCB arrival time, I might need to work on as many scaffolds as possible over the next two weeks to reduce the integration work later.

Tucker’s Status Report for 2026-10-10

This week, I found myself busy with midterms and interviews. Nonetheless, I’m ahead of where I expected on emulation (so far) and working on the design report.

I’ve pulled in Martin Hellspong’s `r68k` CPU emulator as an EC000 stand-in for the time being. I’m not sure if this will be viable for the final integration, as we may have tight margins on CPU performance. However, this allows me to work on emulation and package/IO integration simultaneously, because r68k defines an interface for memory/flash/MMIO and interrupt controller that also works for my version. (Memory, being a hot path, will almost certainly need tighter integration on the integrated board, but I don’t have data to prove that yet.) I’ve also completed further work on my version of the emulator, being able to decode the whole instruction set and execute a subset.

The net result is that we can run the test programs I’ve written, outputting to a MMIO-configured UART. We can also run about 25 million instructions of PalmOS before we hit a yet-to-beimplemented device (one of the GPIO controllers). The challenge right now is mimicing the VZ memory bus: in order to get this far in boot, I have 9 virtual devices (lumping the GPIOs into one, which is not quite true, because they all correspond to different external devices!)

We’re not far enough in boot to draw on the screen yet, so… Here’s a smiley face I drew on the LCD controller! My first drawing in 68k assembly. Brings me back to learning to write code in Small Basic.

A smile drawn in m68k assembly

A fun fact: we’re targeting PalmOS 4.X, which does not do memory management in the traditional sense. It can run 4 groups of memory, and system registers (in the VZ package) are mapped into the top of the address space. PalmOS 6.X was supposed to introduce memory protection, but came only towards the end of Palm’s success. (This is a major factor in why we’re running PalmOS, and not just the apps, since they do not have not a modern expectation of isolated memory.) I wonder if they are the last popular general-purpose computers to lack an MMU, but I have not pursued this line of research.

I’m quite happy with the results this week! Now on my end, the goal is to keep squashing discrepancies with the VZ so we can keep booting. Part of that will be setting up a debugging system so I don’t have to keep flipping between the emulator and my disassembler. The major risk at this point is in emulator speed: I intend to update our schedule with time for benchmarking r68k on our dev board.