Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: flash sketch in ram#12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lucarin91 merged 5 commits intomainfromflash-in-ram-mode
Nov 6, 2025
Merged

feat: flash sketch in ram#12

lucarin91 merged 5 commits intomainfromflash-in-ram-mode
Nov 6, 2025

Conversation

@lucarin91
Copy link
Contributor

@lucarin91lucarin91 commentedOct 21, 2025
edited
Loading

Motivation

Arduino apps require that the micro is in sync with the orchestration handled byarduino-app-cli. In particular, at boot, we need the micro to wait for thearduino-app-cli, and start only to execute the sketch of the default app or some other app decided by the user.

For this reason, we need to use the flash on RAM feature of thezephyr platform, which allows. In this way, the micro loses the code at every boot, and thearduino-app-cli can reflash it with the correct app at boot.

Change description

Update the flash mode to RAM, and handle the case in which the micro was previously flashed from the IDE2 with an in-flash sketch.

As a general note, a sketch could be flashed in RAM only if the micro is waiting for a sketch, which means that if there is a sketch already running from the flash, it should be removed by flashing an empty one.

Change description

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged inmain.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@per1234per1234 added the enhancementNew feature or request labelOct 21, 2025
@lucarin91lucarin91 requested review froma team,cmaglie anddido18 and removed request forcmaglieOctober 23, 2025 08:12
@lucarin91lucarin91 marked this pull request as ready for reviewOctober 30, 2025 14:53
@mirkoCrobu
Copy link
Contributor

As a general note, a sketch could be flashed in RAM only if the micro is waiting for a sketch, which means that if there is a sketch already running from the flash,it should be removed by flashing an empty one.

Is this something that should be notified to the user before the removal?

@lucarin91
Copy link
ContributorAuthor

How to test it

  1. Create an app with a sketch that includes something that start in the setup for instance light up the led matrix
#include <Arduino_LED_Matrix.h>Arduino_LED_Matrix matrix;void setup() {  const uint32_t full[4] = {0xffffffff,0xffffffff,0xffffffff,0xffffffff};  matrix.begin();  matrix.loadFrame(full);}void loop() {}
  1. start the app, the led matrix should be on
  2. restart the board by disconnecting and reconnecting it

expected result: the led matrix should be off till you start again the app

previus result: the les matrix will be on right after the animation.

@lucarin91lucarin91 merged commitcdbb28c intomainNov 6, 2025
6 checks passed
@lucarin91lucarin91 deleted the flash-in-ram-mode branchNovember 6, 2025 13:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mirkoCrobumirkoCrobumirkoCrobu approved these changes

@dido18dido18Awaiting requested review from dido18

@cmagliecmaglieAwaiting requested review from cmaglie

Assignees

No one assigned

Labels

enhancementNew feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@lucarin91@mirkoCrobu@per1234

[8]ページ先頭

©2009-2025 Movatter.jp