sys/riotboot: add a warning about the size of riotboot_flashwrite_t
On e.g. samd5x FLASHPAGE_SIZE is 8k (4k on kinetis, stm32w, nrf52) so placing this struct on the stack will almost always cause a stack overflow.
This commit is contained in:
parent
934f68ead8
commit
2867ab8b9b
@ -59,6 +59,9 @@ extern "C" {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief firmware update state structure
|
* @brief firmware update state structure
|
||||||
|
*
|
||||||
|
* @note @ref FLASHPAGE_SIZE can be very large on some platforms, don't place
|
||||||
|
* this struct on the stack or increase the thread stack size accordingly.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int target_slot; /**< update targets this slot */
|
int target_slot; /**< update targets this slot */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user