diff options
| author | Ulf Lilleengen <[email protected]> | 2022-04-26 18:33:09 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2022-04-27 15:17:18 +0200 |
| commit | da61611f8f57410a87106961efd24d80e6a8f63e (patch) | |
| tree | 81bf5f96a052be8cc74fa4f513592adf1f4bb1db /embassy-boot/nrf/src | |
| parent | 484e0acc638c27366e19275c32db9c8487ea8fba (diff) | |
Add bootloader to CI
Diffstat (limited to 'embassy-boot/nrf/src')
| -rw-r--r-- | embassy-boot/nrf/src/lib.rs | 2 | ||||
| -rw-r--r-- | embassy-boot/nrf/src/main.rs | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/embassy-boot/nrf/src/lib.rs b/embassy-boot/nrf/src/lib.rs index 500cae500..c12899d77 100644 --- a/embassy-boot/nrf/src/lib.rs +++ b/embassy-boot/nrf/src/lib.rs | |||
| @@ -13,7 +13,7 @@ use embassy_nrf::{ | |||
| 13 | use embedded_storage::nor_flash::{ErrorType, NorFlash, ReadNorFlash}; | 13 | use embedded_storage::nor_flash::{ErrorType, NorFlash, ReadNorFlash}; |
| 14 | 14 | ||
| 15 | pub struct BootLoader { | 15 | pub struct BootLoader { |
| 16 | boot: embassy_boot::BootLoader<PAGE_SIZE>, | 16 | boot: embassy_boot::BootLoader<PAGE_SIZE, 4, 0xFF>, |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | impl BootLoader { | 19 | impl BootLoader { |
diff --git a/embassy-boot/nrf/src/main.rs b/embassy-boot/nrf/src/main.rs index 63de7c869..0ccd3774d 100644 --- a/embassy-boot/nrf/src/main.rs +++ b/embassy-boot/nrf/src/main.rs | |||
| @@ -46,8 +46,5 @@ unsafe fn DefaultHandler(_: i16) -> ! { | |||
| 46 | 46 | ||
| 47 | #[panic_handler] | 47 | #[panic_handler] |
| 48 | fn panic(_info: &core::panic::PanicInfo) -> ! { | 48 | fn panic(_info: &core::panic::PanicInfo) -> ! { |
| 49 | unsafe { | 49 | cortex_m::asm::udf(); |
| 50 | cortex_m::asm::udf(); | ||
| 51 | core::hint::unreachable_unchecked(); | ||
| 52 | } | ||
| 53 | } | 50 | } |
