Skip to content

Commit e60e807

Browse files
committed
nrf/mpconfigport: Enable MICROPY_NLR_THUMB_USE_LONG_JUMP on nRF51xx.
Signed-off-by: Damien George <[email protected]>
1 parent 7b050b3 commit e60e807

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/nrf/mpconfigport.h

+6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959

6060
// options to control how MicroPython is built
6161

62+
// Due to the use of LTO and the unknown distance between nlr.o and nlrthumb.o code,
63+
// MCUs using the Thumb 1 instruction set must enable this NLR long jump feature.
64+
#if defined(NRF51822)
65+
#define MICROPY_NLR_THUMB_USE_LONG_JUMP (1)
66+
#endif
67+
6268
#ifndef MICROPY_VFS
6369
#define MICROPY_VFS (CORE_FEAT)
6470
#endif

0 commit comments

Comments
 (0)