diff --git a/examples/wch/ch32v307-make-baremetal-builtin/main.c b/examples/wch/ch32v307-make-baremetal-builtin/main.c index a2484065..981634c5 100644 --- a/examples/wch/ch32v307-make-baremetal-builtin/main.c +++ b/examples/wch/ch32v307-make-baremetal-builtin/main.c @@ -85,7 +85,7 @@ int main(void) { const char *sizes[] = {"128/192", "96/224", "64/256", "32/288"}; uint32_t mode = (FLASH->OBR >> 8) & 3U; MG_INFO(("RAM/FLASH configuration: %s", sizes[mode])); - if (mode != 2) set_ram_size(2); + // if (mode != 2) set_ram_size(2); // Initialise Mongoose network stack ethernet_init(); // Initialise ethernet pins diff --git a/examples/wch/ch32v307-make-baremetal-builtin/mongoose_custom.h b/examples/wch/ch32v307-make-baremetal-builtin/mongoose_custom.h index 4a78276d..621d7211 100644 --- a/examples/wch/ch32v307-make-baremetal-builtin/mongoose_custom.h +++ b/examples/wch/ch32v307-make-baremetal-builtin/mongoose_custom.h @@ -4,7 +4,6 @@ #define MG_ARCH MG_ARCH_NEWLIB #define MG_OTA MG_OTA_FLASH #define MG_DEVICE MG_DEVICE_CH32V307 -#define MG_TLS MG_TLS_BUILTIN #define MG_ENABLE_TCPIP 1 #define MG_ENABLE_CUSTOM_MILLIS 1 diff --git a/examples/wch/ch32v307-make-baremetal-builtin/vendor/link.ld b/examples/wch/ch32v307-make-baremetal-builtin/vendor/link.ld index 929642ea..0035ba44 100644 --- a/examples/wch/ch32v307-make-baremetal-builtin/vendor/link.ld +++ b/examples/wch/ch32v307-make-baremetal-builtin/vendor/link.ld @@ -4,8 +4,8 @@ PROVIDE( _stack_size = __stack_size ); MEMORY { /* Possible configurations: 192/128, 224/96, 256/64, 288/32 */ - FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 256k - RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64k + FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 288k + RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32k } SECTIONS {