Jan Romann
9f4e839ceb
sys/riotboot: uncrustify
2021-11-19 09:54:17 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Francisco Molina
2f7abb637a
sys/riotboot: remove remaining FLASHPAGE_SIZE dep
2021-03-08 10:22:04 +01:00
Antonio Galea
418c88eeb0
sys/riotboot/flashwrite.c: add message to static assert
...
static_assert as defined in c11 requires both an expression and a message.
The message is only optional from c17 onwards.
2021-02-18 18:33:35 +01:00
Francisco Molina
6a79d94f1a
sys/riotboot: uncrustify
2021-02-09 13:38:31 +01:00
Francisco Molina
6baadad152
sys/riotboot/flashwrite: when invalidating erase checksum as well
2021-02-09 11:11:47 +01:00
5b0eaf7cd8
riotboot/flashwrite: Remove last dependencies on flashpage size
2021-02-01 16:14:07 +01:00
Firas Hamdi
d4c32caaaa
sys/riotboot: add revert and invalidate slot functions
...
Update the function description
update write function
refactor riotboot_flashwrite_invalidate function
minor changes
minor nitpicks
2020-12-14 09:33:56 +01:00
Benjamin Valentin
4bcccb1c68
riotboot: use log level ERROR if riotboot_flashwrite_finish_raw() fails
2020-11-18 18:04:59 +01:00
Benjamin Valentin
e697d93e02
riotboot: don't always return error in riotboot_flashwrite_finish_raw()
...
If `CONFIG_RIOTBOOT_FLASHWRITE_RAW` is not set, `riotboot_flashwrite_finish_raw()`
will always return `-1` as `res` is not set anywhere else.
Fix this by only returning -1 in the error case.
2020-11-18 16:13:47 +01:00
722223902a
riotboot: only depend on periph_flashpage
2020-11-11 23:16:43 +01:00
d31a39d7fc
Refactor verification check to remove goto and label
2020-10-20 11:22:56 +02:00
55b0f0b6a8
riotboot/flashwrite: add flashpage_raw compatibility
...
This adds optional usage of periph_flashpage_raw for the
riotboot/flashwrite module. This removes the need to buffer a full
flashpage page, instead it must buffer two times the
FLASHPAGE_RAW_BLOCKSIZE. One is used to buffer the current write block,
the other buffers the first chunk (offset zero, page zero). This first
chunk is written when finalizing the flash operation.
Care must be taken that, when using the skiplength, the number of bytes
skipped is always a multiple of the FLASHPAGE_RAW_BLOCKSIZE.
2020-10-20 11:22:56 +02:00
f05c5f7708
riotboot/flashwrite: Add force flush to storage function
2020-09-29 15:18:56 +02:00
a00314bfc4
riotboot: Add function to retrieve the slot size
2020-09-29 15:18:52 +02:00
c596aa5184
riotboot/flashwrite: use LOG_DEBUG when printing bytes processed
2020-01-09 11:31:12 +01:00
Juergen Fitschen
e152b3e346
sys/riotboot: Fixed flashwrite_slotsize to return size of slot 1
2019-10-31 12:05:35 +01:00
8827202ac7
sys/flashwrite: remove useless line
...
scan-build reported: Value stored to 'flashpage_pos' is never read
2019-10-22 19:48:34 +02:00
Bas Stottelaar
7213a95b31
sys/riotboot: add missing assert.h
2019-07-23 00:25:31 +02:00
0ec9c57b2b
add copyrights from IOTPUSH project
2019-05-02 12:09:37 +02:00
ae35860510
sys/riotboot: add flashwrite submodule
2019-03-15 12:32:50 +01:00