Skip to content

Commit d0ccaff

Browse files
committed
zephyr/mpconfigport: Enable MICROPY_NLR_THUMB_USE_LONG_JUMP.
Needed for some ARMv6M boards, eg rpi_pico. Signed-off-by: Damien George <[email protected]>
1 parent 0728532 commit d0ccaff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/zephyr/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
#define MICROPY_HEAP_SIZE (16 * 1024)
3737
#endif
3838

39+
// We can't guarantee object layout of nlr code so use long jump by default.
40+
#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1)
41+
3942
#define MICROPY_PERSISTENT_CODE_LOAD (1)
4043
#define MICROPY_ENABLE_SOURCE_LINE (1)
4144
#define MICROPY_STACK_CHECK (1)

0 commit comments

Comments
 (0)