monocypher: increase stack requirements to 4096B
This commit is contained in:
parent
0c1a207bf9
commit
90f2f867d2
@ -16,14 +16,14 @@
|
|||||||
*
|
*
|
||||||
* @note Monocypher only supports 32bit platforms.
|
* @note Monocypher only supports 32bit platforms.
|
||||||
*
|
*
|
||||||
* Monocypher requires around 3K of stack space depending slightly on the
|
* Monocypher requires around 4K of stack space depending slightly on the
|
||||||
* platform, so beware that you're allocating at
|
* platform, so beware that you're allocating at
|
||||||
* least `THREAD_STACKSIZE_DEFAULT + 3072` bytes.
|
* least `THREAD_STACKSIZE_DEFAULT + 4096` bytes.
|
||||||
*
|
*
|
||||||
* You can do it easily by adding:
|
* You can do it easily by adding:
|
||||||
*
|
*
|
||||||
* ```makefile
|
* ```makefile
|
||||||
* CFLAGS += '-DTHREAD_STACKSIZE_MAIN=(THREAD_STACKSIZE_DEFAULT + 3072)'
|
* CFLAGS += '-DTHREAD_STACKSIZE_MAIN=(THREAD_STACKSIZE_DEFAULT + 4096)'
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* to your makefile.
|
* to your makefile.
|
||||||
|
|||||||
@ -8,7 +8,7 @@ BOARD_BLACKLIST := arduino-duemilanove arduino-mega2560 arduino-uno chronos \
|
|||||||
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6
|
BOARD_INSUFFICIENT_MEMORY := nucleo-f031k6 nucleo-f042k6
|
||||||
|
|
||||||
# required for Monocypher (as described in the package documentation)
|
# required for Monocypher (as described in the package documentation)
|
||||||
CFLAGS += "-DTHREAD_STACKSIZE_MAIN=(3072 + THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)"
|
CFLAGS += "-DTHREAD_STACKSIZE_MAIN=(4096 + THREAD_STACKSIZE_DEFAULT + THREAD_EXTRA_STACKSIZE_PRINTF)"
|
||||||
|
|
||||||
USEMODULE += embunit
|
USEMODULE += embunit
|
||||||
USEMODULE += random
|
USEMODULE += random
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user