Page 1 of 1

Enabling PSRAM on a ONE+ Model B?

Posted: Tue Sep 06, 2022 8:15 am
by tman
Hi,

I've received my ONE+ Model B unit today. Is there anything special you need to do to enable PSRAM in the Freematics Builder? If I load the latest telelogger from the repo and tick the "Enable PSRAM" box then it just bootloops with an error and stack trace.

Code: Select all

ELF file SHA256: 0000000000000000

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1324
ho 0 tail 12 room 4
load:0x40078000,len:13508
load:0x40080400,len:3604
entry 0x400805f0
E (170) spiram: SPI RAM not initialized

abort() was called at PC 0x400e6f14 on core 0


Backtrace:0x40081ad1:0x3ffe3ae00x4008ac35:0x3ffe3b00 0x4008faad:0x3ffe3b20 0x400e6f14:0x3ffe3ba0 0x400e6f53:0x3ffe3bc0 0x400e6e3f:0x3ffe3be0 0x400d2187:0x3ffe3c10 0x400817ce:0x3ffe3c40 0x40079202:0x3ffe3c90  |<-CORRUPTED
If I use the defaults which doesn't enable PSRAM then it does run. It doesn't see the RTC though but I saw a post elsewhere mentioning you need to do something special with that? The code is checking for a RTC clock before saying the RTC is present so its presumably not getting that clock?

I've tried the unit connected to two different computers and powered USB hubs. I've not tried it powered by OBD yet.

Thanks.

Re: Enabling PSRAM on a ONE+ Model B?

Posted: Wed Sep 28, 2022 10:45 pm
by stanley
You need to build with ESP-IDF and enable PSRAM and RTC through menuconfig.

Re: Enabling PSRAM on a ONE+ Model B?

Posted: Thu Sep 29, 2022 7:30 am
by tman
stanley wrote: Wed Sep 28, 2022 10:45 pm You need to build with ESP-IDF and enable PSRAM and RTC through menuconfig.
I managed to get it working so all good now. Thanks for the help.