mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
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.
This commit is contained in:
parent
74e8db0ed1
commit
64aa0bcb88
@ -19,7 +19,7 @@ ivt_size = 0x00001000;
|
|||||||
interrupts_start = flash_start + 0x00002000;
|
interrupts_start = flash_start + 0x00002000;
|
||||||
interrupts_size = 0x00000400;
|
interrupts_size = 0x00000400;
|
||||||
text_start = flash_start + 0x00002400;
|
text_start = flash_start + 0x00002400;
|
||||||
vfs_start = flash_start + 0x00100000;
|
vfs_start = flash_start + 0x00200000;
|
||||||
text_size = ((vfs_start) - (text_start));
|
text_size = ((vfs_start) - (text_start));
|
||||||
vfs_size = ((flash_end) - (vfs_start));
|
vfs_size = ((flash_end) - (vfs_start));
|
||||||
itcm_start = 0x00000000;
|
itcm_start = 0x00000000;
|
||||||
|
@ -56,7 +56,9 @@ void ticks_init(void) {
|
|||||||
NVIC_EnableIRQ(GPTx_IRQn);
|
NVIC_EnableIRQ(GPTx_IRQn);
|
||||||
|
|
||||||
GPT_StartTimer(GPTx);
|
GPT_StartTimer(GPTx);
|
||||||
|
#ifdef NDEBUG
|
||||||
mp_hal_ticks_cpu_enable();
|
mp_hal_ticks_cpu_enable();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPTx_IRQHandler(void) {
|
void GPTx_IRQHandler(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user