Tony 08/16/2024 07:18 PMHere is the message:
[jaguar] INFO: program 8358aee2-45c6-0193-6318-b75de00f59f3 stopped
[jaguar] INFO: program c6925192-2d45-548f-7f78-726e3c457cad started
Heap report @ out of memory in primitive 6:2:
┌───────────┬──────────┬─────────────────────────────────────────────────────┐
│ Bytes │ Count │ Type │
├───────────┼──────────┼─────────────────────────────────────────────────────┤
│ 40960 │ 12 │ toit processes │
│ 16384 │ 4 │ system 0 0ff85ae2-63d2-e530-c9fe-c844785c0276 │
│ 20480 │ 5 │ other 1 31709de1-906c-ce7d-8698-87e163711ebb │
│ 4096 │ 1 │ current 7 c6925192-2d45-548f-7f78-726e3c457cad │
│ 667648 │ 1 │ heap metadata │
│ 4096 │ 1 │ spare new-space │
│ 16808 │ 7 │ heap overhead │
│ 192 │ 4 │ thread/other │
└───────────┴──────────┴─────────────────────────────────────────────────────┘
Total: 729704 bytes in 16 allocations (8%), largest free 7452k, total free 7471k
******************************************************************************
Decoding by `jag`, device has version <2.0.0-alpha.159>
******************************************************************************
MALLOC_FAILED error.
0: Bus.test <sdk>/i2c.toit:65:5
1: Bus.scan <sdk>/i2c.toit:60:10
2: main display.toit:23:18
******************************************************************************
[jaguar] ERROR: program c6925192-2d45-548f-7f78-726e3c457cad stopped - exit code 1
I am trying to upload the OLED example with only the I2C pins changed. At first I thought it was genuinely out of memory, but it doesn't appear so looking at the table.