Skip to content

Commit 59e6863

Browse files
committed
unoq: use user stack for parking sketch in RAM mode
1 parent 3569f82 commit 59e6863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static int loader(const struct shell *sh) {
165165
uint8_t *ram_firmware = NULL;
166166
uint32_t *ram_start = (uint32_t *)0x20000000;
167167
if (!sketch_valid) {
168-
ram_firmware = (uint8_t *)k_malloc(64 * 1024);
168+
ram_firmware = (uint8_t *)malloc(64 * 1024);
169169
if (!ram_firmware) {
170170
printk("Failed to allocate RAM for firmware\n");
171171
return -ENOMEM;

0 commit comments

Comments
 (0)