Tony
08/16/2024, 7:18 PMtext
[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.Tony
08/16/2024, 7:19 PM--chip esp32s3-spiram-octo?floitsch
08/16/2024, 7:24 PMfloitsch
08/16/2024, 7:25 PMi2c-write.floitsch
08/16/2024, 7:28 PM// NOTE:
// 'i2c_master_X' functions allocate data, but return `ESP_FAIL` if that allocation
// fails. There is no way to differentiate the kind of error.
// Initiate the sequence by issuing a `start`. That will notify slaves to
// listen (if possible) and promote self to current master, in case of
// multi-master setup.
if (i2c_master_start(cmd) != ESP_OK) FAIL(MALLOC_FAILED);floitsch
08/16/2024, 7:31 PMTony
08/16/2024, 7:39 PMTony
08/16/2024, 7:39 PMfloitsch
08/16/2024, 7:40 PMfloitsch
08/16/2024, 7:41 PMTony
08/16/2024, 7:43 PM--chip esp32s3. Does that effectively mean programs do not have access to the 8 MB SPRAM if I need to run all programs in this way?floitsch
08/16/2024, 7:44 PMfloitsch
08/16/2024, 7:47 PMTony
08/16/2024, 7:47 PMTony
08/16/2024, 7:48 PMfloitsch
08/16/2024, 7:48 PMTony
08/16/2024, 7:48 PMfloitsch
08/16/2024, 7:50 PMTony
08/16/2024, 10:37 PMfloitsch
08/16/2024, 10:38 PMTony
08/16/2024, 11:50 PMTyrone Smith
08/19/2024, 12:38 PMfloitsch
08/19/2024, 5:58 PMfloitsch
08/21/2024, 11:35 AMesp32s3-debug envelope.
If you could try to reproduce the error with that one and report back the debug output it produces that would be helpful.
You should be able to just run jag flash --chip=esp32s3-debug.Tyrone Smith
08/21/2024, 11:59 AMTyrone Smith
08/26/2024, 8:18 AMfloitsch
09/04/2024, 10:10 AMTyrone Smith
09/05/2024, 2:22 PMTyrone Smith
09/05/2024, 2:23 PMfloitsch
09/05/2024, 2:41 PM