Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Oct 21, 2025

Pull Request Overview

Use the local board feature in tockloader to flash the kernel and apps all at once.

You'll love the solution I came up with for this. The esptool needs a very specific format to flash apps the bootloader will run. The only way in esptool v5+ to create the format is to convert an elf. We want to make a binary file that has the kernel code and apps in the same file. SO, this converts our local board binary file to an elf, then uses that elf to create the esp32c3 image, which we then flash.

Testing Strategy

Running both blink and buttons on the board.

TODO or Help Wanted

n/a

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

bradjc added 10 commits October 21, 2025 18:26
- Maybe it was at some point, but in Rust there was no longer a
  _start_trap symbol, making the conditional in the linker script no
  longer valid. This fixes that.
- The esp32c3 needs to use the vectored interrupts, so this fixes that
  call in the main.rs.
Need to set the register twice to get the current count to update
correctly. Otherwise the first now() call gets the old value.
For a single-wire tri-color LED.
The main.rs was in a pretty arbitrary order. This makes it more
consistent and easier to follow.
Use tockloader to install apps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants