Add N0115 support - #610
Merged
Merged
Conversation
- Some methods in libgcc.a were not grabbed by "*/libgcc.a:(.text)" - Having the operating modes in the external flash drivers be constexpr made them anonymous so they wouldn't get a symbol name at compilation and the linked couldn't put then in internal flash Works on n0110 and n0115.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this ?
This pull request add supports for the N0115 and fix some issues regarding how the
bootloader(renamedn0110-bootloader) device was implemented:arm-none-eabi-gcc. This is now fixed (9781cb2, a341a84). Omega now compiles with the 2022 version (which is now used in the CI: 5090817) and on the latest version (arm-none-eabi-gcc 16.1.0, Binutils 2.46.1).Regarding the n0115 itself, it mostly is the same hardware as the n0110 ith few notable exceptions (explained later), so the code for the n0115 reuses most of the code of the n0110 (to avoid code duplication). See
ion/src/device/n0115-bootloader/Makefileandion/src/device/n0115/Makefilefor more details.N0115 specifics
The N0115 is very similar to the N0110 except for three crucial points :
External Flash
The external flash requires an extra GPIO pin (A10) to be initialized (As output pin). On N0115 calculators, this pin is connected to a transistor that is itself connected to the VCC pin of the external flash, for energy saving. This pin is turned on when the flash is initialized and turned off when it is shut down (like when going to sleep). Relevant code is in
ion/src/device/n0115/drivers/external_flash_gpio.cpp.Battery
The reference voltage of the ADC used to read the level of the battery has changed (was 2.8V, is now 3.3V). Relevant code is in
ion/src/device/n0115/drivers/config/battery.h.Display
New display panels are used in the calculator, which leads to new possible initialization sequences for the disply. Relevant code is in
ion/src/device/n0115/shared/display.cpp, specifically in functioninitPanel. These changes were repercuted on all models, because A it doesn't hurt and B someone could use a N0115's panel to repair a N0110.