Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optiboot_x: "SPM Service" probably doesn't work. #293

Open
WestfW opened this issue Sep 25, 2020 · 1 comment
Open

optiboot_x: "SPM Service" probably doesn't work. #293

WestfW opened this issue Sep 25, 2020 · 1 comment
Assignees
Labels
Optiboot-X-specific Issue affects only mega0/xTiny chips supported by optiboot_x Partly Done Priority-Medium

Comments

@WestfW
Copy link
Member

WestfW commented Sep 25, 2020

The vector for allowing Application code to call the bootloader is essentially unimplemented in optiboot_x for mega0 and xtiny chips.
Since the NVM Controller in these operates much differently than traditional AVRs, the port may be "interesting."

@WestfW WestfW self-assigned this Sep 25, 2020
@WestfW
Copy link
Member Author

WestfW commented Sep 26, 2020

This is complicated. On older AVRs, writes to flash were all manipulated using the SPMCSR register and SPM instruction, so the Optiboot support for SPM consisted of setting the SPM contents (with a limited number of legal values) to the passed value and executing the SPM instruction. The new chips are more statefull..

Note: can an application do STores to the flash memory alias space if the bootloader executes the actual NVMCTL commans?

(also note mega0 and AVR-DA are different from one another.)

@WestfW WestfW added Optiboot-X-specific Issue affects only mega0/xTiny chips supported by optiboot_x Partly Done labels Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Optiboot-X-specific Issue affects only mega0/xTiny chips supported by optiboot_x Partly Done Priority-Medium
Projects
None yet
Development

No branches or pull requests

1 participant