32/288, no TLS by default

This commit is contained in:
Sergey Lyubka 2023-12-27 22:53:48 +00:00
parent 93bcde0176
commit 3965aecfd4
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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 {