diff options
author | robert-hh <robert@hammelrath.com> | 2021-12-07 11:38:37 +0100 |
---|---|---|
committer | robert-hh <robert@hammelrath.com> | 2021-12-14 08:07:52 +0100 |
commit | 64aa0bcb88cda556e77df4ab66d4005b1ec6a8e5 (patch) | |
tree | da39fc673bcc39fed6b862ebf8815a5106f4df64 | |
parent | 74e8db0ed15ec0dc7ed5408dfe84f2a9a675d231 (diff) |
mimxrt: Enable ticks_cpu at boot time for NDEBUG builds only.
Otherwise, it get's in trouble with a Debugger. Reason to be found.
Also: Increase code segment to 2 MB for the MIMXRT1050_EVK build.
-rw-r--r-- | ports/mimxrt/boards/MIMXRT1052.ld | 2 | ||||
-rw-r--r-- | ports/mimxrt/ticks.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ports/mimxrt/boards/MIMXRT1052.ld b/ports/mimxrt/boards/MIMXRT1052.ld index 78d21ef3c..f7c60d24f 100644 --- a/ports/mimxrt/boards/MIMXRT1052.ld +++ b/ports/mimxrt/boards/MIMXRT1052.ld @@ -19,7 +19,7 @@ ivt_size = 0x00001000; interrupts_start = flash_start + 0x00002000; interrupts_size = 0x00000400; text_start = flash_start + 0x00002400; -vfs_start = flash_start + 0x00100000; +vfs_start = flash_start + 0x00200000; text_size = ((vfs_start) - (text_start)); vfs_size = ((flash_end) - (vfs_start)); itcm_start = 0x00000000; diff --git a/ports/mimxrt/ticks.c b/ports/mimxrt/ticks.c index 5ae6f7f13..0fc9babc0 100644 --- a/ports/mimxrt/ticks.c +++ b/ports/mimxrt/ticks.c @@ -56,7 +56,9 @@ void ticks_init(void) { NVIC_EnableIRQ(GPTx_IRQn); GPT_StartTimer(GPTx); + #ifdef NDEBUG mp_hal_ticks_cpu_enable(); + #endif } void GPTx_IRQHandler(void) { |