From da3cf72f276ec2fe6362332eb25801180bfb1492 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 9 Oct 2020 19:10:35 +0200 Subject: [PATCH] PORTENTA: Enable WiFi. --- src/omv/boards/PORTENTA/imlib_config.h | 2 +- src/omv/boards/PORTENTA/omv_boardconfig.h | 8 +++----- src/omv/boards/PORTENTA/omv_boardconfig.mk | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/omv/boards/PORTENTA/imlib_config.h b/src/omv/boards/PORTENTA/imlib_config.h index b385b4b32..7759dd2a0 100644 --- a/src/omv/boards/PORTENTA/imlib_config.h +++ b/src/omv/boards/PORTENTA/imlib_config.h @@ -12,7 +12,7 @@ #define __IMLIB_CONFIG_H__ // Enable LAB LUT -#define IMLIB_ENABLE_LAB_LUT +//#define IMLIB_ENABLE_LAB_LUT // Enable YUV LUT //#define IMLIB_ENABLE_YUV_LUT diff --git a/src/omv/boards/PORTENTA/omv_boardconfig.h b/src/omv/boards/PORTENTA/omv_boardconfig.h index 92cd1b0ef..16620062e 100644 --- a/src/omv/boards/PORTENTA/omv_boardconfig.h +++ b/src/omv/boards/PORTENTA/omv_boardconfig.h @@ -137,8 +137,8 @@ #define OMV_FB_SIZE (4M) // FB memory: header + VGA/GS image #define OMV_FB_ALLOC_SIZE (3M) // minimum fb alloc size -#define OMV_STACK_SIZE (15K) -#define OMV_HEAP_SIZE (224K) +#define OMV_STACK_SIZE (32K) +#define OMV_HEAP_SIZE (212K) #define OMV_SDRAM_SIZE (8 * 1024 * 1024) // This needs to be here for UVC firmware. #define OMV_SDRAM_TEST (0) @@ -154,9 +154,7 @@ #define OMV_DTCM_ORIGIN 0x20000000 // Note accessible by CPU and MDMA only. #define OMV_DTCM_LENGTH 128K #define OMV_SRAM1_ORIGIN 0x30000000 -#define OMV_SRAM1_LENGTH 256K -#define OMV_SRAM3_ORIGIN 0x30040000 -#define OMV_SRAM3_LENGTH 32K +#define OMV_SRAM1_LENGTH 288K #define OMV_SRAM4_ORIGIN 0x38000000 #define OMV_SRAM4_LENGTH 64K #define OMV_AXI_SRAM_ORIGIN 0x24000000 diff --git a/src/omv/boards/PORTENTA/omv_boardconfig.mk b/src/omv/boards/PORTENTA/omv_boardconfig.mk index ee4b11aa7..649ebf478 100755 --- a/src/omv/boards/PORTENTA/omv_boardconfig.mk +++ b/src/omv/boards/PORTENTA/omv_boardconfig.mk @@ -14,5 +14,5 @@ FROZEN_MPY_DIR=$(TOP_DIR)/../scripts/libraries OMV_BOARD_EXTRA_CFLAGS = -DCORE_CM7 MICROPY_PY_ULAB = 1 MICROPY_PY_WINC1500 = 0 -MICROPY_PY_LWIP = 0 -MICROPY_PY_NETWORK_CYW43 = 0 +MICROPY_PY_LWIP = 1 +MICROPY_PY_NETWORK_CYW43 = 1