From e2daf3ea7ea78df774c6d47d4d8cd9288ca81560 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 3 Jan 2021 02:24:10 +0200 Subject: [PATCH] NRF: enable MBFS. --- src/micropython | 2 +- src/omv/boards/NANO33/omv_boardconfig.h | 2 +- src/omv/ports/nrf/nrf52xxx.ld.S | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/micropython b/src/micropython index 2829a5fbc..f721c2235 160000 --- a/src/micropython +++ b/src/micropython @@ -1 +1 @@ -Subproject commit 2829a5fbc60137946aa18c1e9e1b4ad4747b7723 +Subproject commit f721c2235e416a9cd0434acbd5d3a67ef8a4b61c diff --git a/src/omv/boards/NANO33/omv_boardconfig.h b/src/omv/boards/NANO33/omv_boardconfig.h index d2f13a5de..02dcf7746 100644 --- a/src/omv/boards/NANO33/omv_boardconfig.h +++ b/src/omv/boards/NANO33/omv_boardconfig.h @@ -92,7 +92,7 @@ #define OMV_JPEG_BUF_SIZE (16 * 1024) // IDE JPEG buffer (header + data). #define OMV_TEXT_ORIGIN 0x00026000 -#define OMV_TEXT_LENGTH 808K // FLASH_SIZE - SD_SIZE - FS_SIZE +#define OMV_TEXT_LENGTH 808K // FLASH_SIZE - SD_SIZE - FS_SIZE 1024-152-64 #define OMV_SRAM_ORIGIN 0x20004000 // Reserve 16K for SD memory. #define OMV_SRAM_LENGTH 240K // RAM_SIZE - SD_RAM_SIZE diff --git a/src/omv/ports/nrf/nrf52xxx.ld.S b/src/omv/ports/nrf/nrf52xxx.ld.S index 04de07467..8afe01139 100644 --- a/src/omv/ports/nrf/nrf52xxx.ld.S +++ b/src/omv/ports/nrf/nrf52xxx.ld.S @@ -23,6 +23,8 @@ MEMORY _heap_size = OMV_HEAP_SIZE; /* required amount of heap */ _stack_size = OMV_STACK_SIZE; /* minimum amount of stack */ +_fs_start = OMV_TEXT_ORIGIN + OMV_TEXT_LENGTH; +_fs_end = OMV_TEXT_ORIGIN + OMV_TEXT_LENGTH + 64K; /* define output sections */ SECTIONS