Skip to content

feat: compile with new wait_for_app mode#254

Merged
lucarin91 merged 30 commits intoarduino:mainfrom
lucarin91:ram-flash-alternative
Apr 3, 2026
Merged

feat: compile with new wait_for_app mode#254
lucarin91 merged 30 commits intoarduino:mainfrom
lucarin91:ram-flash-alternative

Conversation

@lucarin91
Copy link
Copy Markdown
Contributor

@lucarin91 lucarin91 commented Feb 17, 2026

Motivation

Implement the new wait_for_app menu arduino/ArduinoCore-zephyr#369

Change description

Additional Notes

Reviewer checklist

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

@lucarin91 lucarin91 marked this pull request as ready for review February 26, 2026 14:12
@lucarin91 lucarin91 requested a review from dido18 February 26, 2026 14:13
@lucarin91 lucarin91 requested a review from cmaglie February 27, 2026 16:17
@lucarin91 lucarin91 requested a review from giulio93 March 3, 2026 14:33
Comment thread internal/platform/platform.go Outdated
Comment thread internal/orchestrator/sketch_flash.go Outdated
Comment thread internal/orchestrator/sketch_flash.go Outdated
Comment thread internal/orchestrator/orchestrator.go Outdated
Comment thread internal/orchestrator/orchestrator.go
Comment thread internal/orchestrator/sketch_flash.go Outdated
@lucarin91 lucarin91 requested a review from dido18 March 3, 2026 16:04
Comment thread internal/orchestrator/sketch_flash.go Outdated
Comment thread internal/orchestrator/sketch_flash.go Outdated
Comment thread internal/micro/micro_linux.go Outdated
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 18, 2026

CLA assistant check
All committers have signed the CLA.

@lucarin91 lucarin91 requested review from dido18 and giulio93 April 2, 2026 16:03
Copy link
Copy Markdown
Contributor

@giulio93 giulio93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested also on IDE

Comment thread internal/orchestrator/sketch_flash.go Outdated
gertrude pre-release platform has a not working flash to ram menu option.
So it is better to just keep using flash to ram for unoq board.
@lucarin91 lucarin91 force-pushed the ram-flash-alternative branch from fd1efbb to 3d07965 Compare April 3, 2026 14:20
@lucarin91 lucarin91 requested review from dido18 and giulio93 April 3, 2026 14:21
if platform.SupportFlashToRam() {
if err := uploadSketchInRam(ctx, w, srv, inst, platform, sketchPath.String(), buildPath.String()); err != nil {
// Support the legacy ram upload option if there isn't the new wait_linux_boot option.
if !menuOptions.Has(WaitForApp) && platform.SupportFlashToRam() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we just chek the FQBN ?

Suggested change
if !menuOptions.Has(WaitForApp) && platform.SupportFlashToRam() {
if !menuOptions.Has(WaitForApp) && platform.FQBN == "arduino:zephyr:unoq" {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will just revert for now

@lucarin91 lucarin91 merged commit 620d6cd into arduino:main Apr 3, 2026
6 checks passed
mirkoCrobu pushed a commit that referenced this pull request Apr 7, 2026
* feat: compile with new wait_for_app mode

* implement backward compatibility

* fixup! implement backward compatibility

* redundant sleep

* improve check

* fixup! improve check

* fixup! Merge remote-tracking branch 'origin/main' into ram-flash-alternative

* fixup! fixup! Merge remote-tracking branch 'origin/main' into ram-flash-alternative

* remove hardcoded fqbn

* fixup! remove hardcoded fqbn

* fixup! fixup! remove hardcoded fqbn

* use menu check instead of version check

* fixup! use menu check instead of version check

* rename AnimationPin

* wip

* add better flash to ram check

* fixup! add better flash to ram check

* add license

* remove some hardcoded strings

* fixup! remove some hardcoded strings

* trigger ci️

* apply code review suggestions

* revert SupportFlashToRam

gertrude pre-release platform has a not working flash to ram menu option.
So it is better to just keep using flash to ram for unoq board.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants