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

feat(zephyr): port to zephyr 4.1.0 #115

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

feat(zephyr): port to zephyr 4.1.0 #115

wants to merge 17 commits into from

Conversation

fouge
Copy link
Collaborator

@fouge fouge commented Nov 21, 2024

The goal of this workstream is to reduce the tech debt.

  • with hardware model v2
  • changes in CAN API
  • changed vendor for custom drivers from worldcoin to tfh
  • cyclic dma buffer for UART peripheral

target release date for Zephyr 4.1.0: 2025/03/14

@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 3 times, most recently from 5c7e385 to 99ae45c Compare November 29, 2024 14:56
@fouge fouge changed the base branch from main to fouge/cleaning-and-docs November 29, 2024 15:00
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 3 times, most recently from 91a58f1 to b6a9d11 Compare December 2, 2024 09:07
@fouge fouge force-pushed the fouge/cleaning-and-docs branch from fc12087 to cbaf923 Compare December 12, 2024 14:54
Base automatically changed from fouge/cleaning-and-docs to main December 12, 2024 14:56
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 12 times, most recently from 99fe9f2 to 2aae1f4 Compare December 13, 2024 16:05
@fouge fouge changed the title chore(zephyr): port to zephyr 4.0.0 feat(zephyr): port to zephyr 4.0.0 Dec 13, 2024
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 2 times, most recently from 41b1bfc to 8b79465 Compare December 17, 2024 14:00
@fouge fouge force-pushed the main branch 2 times, most recently from 0974d92 to 52ec901 Compare December 18, 2024 10:38
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 4 times, most recently from f4d525d to fb340f0 Compare December 23, 2024 11:45
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 4 times, most recently from 9c7fc5c to 3cc89eb Compare January 15, 2025 10:50
@fouge fouge requested a review from sri9311 January 15, 2025 10:56
@fouge fouge marked this pull request as ready for review January 15, 2025 10:56
@fouge fouge requested a review from Qbicz January 15, 2025 10:56
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch from 3cc89eb to 9d282d2 Compare January 17, 2025 10:03
@fouge
Copy link
Collaborator Author

fouge commented Jan 17, 2025

@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch from 9d282d2 to a9fa197 Compare January 17, 2025 13:40
fouge added 16 commits January 20, 2025 16:01
update revision in west

Signed-off-by: Cyril Fougeray <[email protected]>
make CMake successfully load

Signed-off-by: Cyril Fougeray <[email protected]>
app is building
signature changed, now passing pointer, instead of pointer of pointer.
still many changes to be made

Signed-off-by: Cyril Fougeray <[email protected]>
with deferred initialization, we can now initialize
devices at runtime.
I2C1 is one that should be postponed until after
the power supplies are initialized and turned on.

Signed-off-by: Cyril Fougeray <[email protected]>
for main battery

Signed-off-by: Cyril Fougeray <[email protected]>
global CSTD property is deprecated with zephyr 3.7.0.

Signed-off-by: Cyril Fougeray <[email protected]>
ZTEST_NEW_API not a config anymore
fix test compilation and warnings
config MCUBOOT_BOOTLOADER_MODE_SINGLE_APP (one-slot)
config MCUBOOT_GENERATE_UNSIGNED_IMAGE because no signing keys are used
when generating the test binary
add more delay between dfu messages (erasure takes time)

Signed-off-by: Cyril Fougeray <[email protected]>
taken from mcuboot example
debug boot: read flash data, instead of relying on hardcoded values

Signed-off-by: Cyril Fougeray <[email protected]>
redefine M_PI
BUILD_ASSERT must be used instead of static_assert

Signed-off-by: Cyril Fougeray <[email protected]>
was enabled as long as `watchdog0` was an existing label.
now, kconfig has to be enabled

Signed-off-by: Cyril Fougeray <[email protected]>
use sys_init to initialize watchdog
callback cannot be set dynamically anymore, but weakly defined instead
so that it can be overridden by user at compile time.

Signed-off-by: Cyril Fougeray <[email protected]>
fix the generation of proto files.

cmake from orb-messages library is requesting to be linked into target.
Plus, use target defined in zephyr cmake as a dependency.

Signed-off-by: Cyril Fougeray <[email protected]>
don't use `orb/public`

was not causing issues so far but zephyr_module.py changed and isn't
able to find the project repo for zephyr.meta generation

it's important to note that this is only when the repo is used alone,
without it's `private` counterpart.

Signed-off-by: Cyril Fougeray <[email protected]>
when found, the cmake package `McuPrivate` is used to load custom
configs.
Allow a single point of entry for private configs, which is simpler to
maintain and understand.

Signed-off-by: Cyril Fougeray <[email protected]>
internal routing is now set in specific drivers that we don't use, as we
use the adc drivers to get vbat, vref and die temperature.
so we need so hardcode the configuration.

Signed-off-by: Cyril Fougeray <[email protected]>
disable formatter for CMakeLists.txt
rename dts.overlay to app.overlay
copy-pasted all files from original project
encryption enabled in release builds only

Signed-off-by: Cyril Fougeray <[email protected]>
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch 2 times, most recently from 0acf545 to 99386b2 Compare January 20, 2025 17:16
with fixes
watchdog can be initialized only once, by our libray
adc node property: <SYNC> became "SYNC"

Signed-off-by: Cyril Fougeray <[email protected]>
@fouge fouge force-pushed the fouge/zephyr-4.0.0 branch from 99386b2 to 5ac56e1 Compare January 21, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant