diff options
author | Damien George <damien@micropython.org> | 2025-06-23 13:01:47 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-08 11:15:11 +1000 |
commit | d0ccaff5b719e72456b92e2f40daa93a182801a1 (patch) | |
tree | a9cad92219bbbaa5a4e675688fbc283a00c7a91b | |
parent | 07285323cf68435db86b3e736a714a487464dceb (diff) |
zephyr/mpconfigport: Enable MICROPY_NLR_THUMB_USE_LONG_JUMP.
Needed for some ARMv6M boards, eg rpi_pico.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r-- | ports/zephyr/mpconfigport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/zephyr/mpconfigport.h b/ports/zephyr/mpconfigport.h index a24caf745..bf85ef6ea 100644 --- a/ports/zephyr/mpconfigport.h +++ b/ports/zephyr/mpconfigport.h @@ -36,6 +36,9 @@ #define MICROPY_HEAP_SIZE (16 * 1024) #endif +// We can't guarantee object layout of nlr code so use long jump by default. +#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1) + #define MICROPY_PERSISTENT_CODE_LOAD (1) #define MICROPY_ENABLE_SOURCE_LINE (1) #define MICROPY_STACK_CHECK (1) |