File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
variants/arduino_uno_q_stm32u585xx Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,17 @@ static int loader(const struct shell *sh) {
159159
160160 gpio_pin_configure_dt (& spec , GPIO_INPUT | GPIO_PULL_DOWN );
161161 k_sleep (K_MSEC (200 ));
162+ uint8_t * ram_firmware = NULL ;
163+ uint32_t * ram_start = (uint32_t * )0x20000000 ;
164+ if (!sketch_valid ) {
165+ ram_firmware = (uint8_t * )k_malloc (64 * 1024 );
166+ if (!ram_firmware ) {
167+ printk ("Failed to allocate RAM for firmware\n" );
168+ return - ENOMEM ;
169+ }
170+ memset (ram_firmware , 0 , 64 * 1024 );
171+ * ram_start = & ram_firmware [0 ];
172+ }
162173 if (gpio_pin_get_dt (& spec ) == 0 ) {
163174 matrixBegin ();
164175 matrixSetGrayscaleBits (8 );
Original file line number Diff line number Diff line change 11CONFIG_LLEXT_STORAGE_WRITABLE=n
2- CONFIG_HEAP_MEM_POOL_SIZE=32768
2+ CONFIG_HEAP_MEM_POOL_SIZE=131072
33CONFIG_SHELL_STACK_SIZE=32768
44CONFIG_MAIN_STACK_SIZE=32768
55CONFIG_LLEXT_HEAP_SIZE=128
You can’t perform that action at this time.
0 commit comments