Skip to content

Week 4, Embedded Programming

Assignment

Group assignment

  • Demonstrate and compare the toolchains and development workflows for available embedded architectures
  • Document your work to the group work page and reflect on your individual page what you learned

Individual assignment

  • Browse through the datasheet for your microcontroller
  • Write a program for a microcontroller, and simulate its operation, to interact (with local input &/or output devices) and communicate (with remote wired or wireless connection)

Checklist

from Nueval

  • Linked to the group assignment page
  • Browsed and documented some information from utilized microcontroller data sheet
  • Programmed your simulated board to interact and communicate
  • Described the programming process(se) used
  • Included source code
  • Included hero shot(s)

Group work

For our work at Fab Lab Reykjavik (FLR), we split tasks for the overall group. My work was to explain how to program an RP-2040 microprocessor with micropython in VSCode.

See my contribution in the “Micropython, VSCode and RP2040 programming” on our Fab Lab Reykjavik group page.

Individual work

Processors

Insert overview of processor types

Simulators and development

Looking forward to my final project, my instructor suggested I work with an RP-2040. To emmulate code, I am using VSCode. To accomplish that, the Wokwi extension for VSCode needs to be installed. Search for that and install.

Installing Wokwi extension

To get the extension working, one needs a wokwi.toml file in the directory, which contains:

[wokwi]
version = 1
gdbServerPort = 3333
firmware = "firmware/RPI_PICO-20241129-v1.24.1.uf2"
elf = "firmware/RPI_PICO-20240602-v1.23.0.uf2"

The firmware is the same one noted in the group page. The path to the firmware needs to be relative to the wokwi.toml file.

After saving this file, there is a button to get a Wokwi license.

Wokwi license request

The click takes you to the Wokwi website, and there is a notice that the license is free for open source project. On that page, click the ‘generate license’ button. Then one can push a subsequent button to install into VSCode. I pushed that, and the license installed.

Wokwi license installed in VSCode

This seems to be a dead end. Whenever I try to edit, I am told that I need to upgrade to a paid license to edit in VSCode.

Road block ($$$$)

Online we go.