diff options
| author | Damien George <damien@micropython.org> | 2024-04-26 11:15:59 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-04-26 11:15:59 +1000 |
| commit | e60e8079a7e1f6edd308e2e8981096e42ec6a78c (patch) | |
| tree | 479088c4dd6ed143684946f102ba8dd79226139d | |
| parent | 7b050b366b7dacfb43779c51702a892d8f1873d0 (diff) | |
nrf/mpconfigport: Enable MICROPY_NLR_THUMB_USE_LONG_JUMP on nRF51xx.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/nrf/mpconfigport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/nrf/mpconfigport.h b/ports/nrf/mpconfigport.h index 37fbdf1eb..6e92fa876 100644 --- a/ports/nrf/mpconfigport.h +++ b/ports/nrf/mpconfigport.h @@ -59,6 +59,12 @@ // options to control how MicroPython is built +// Due to the use of LTO and the unknown distance between nlr.o and nlrthumb.o code, +// MCUs using the Thumb 1 instruction set must enable this NLR long jump feature. +#if defined(NRF51822) +#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1) +#endif + #ifndef MICROPY_VFS #define MICROPY_VFS (CORE_FEAT) #endif |
