Enabling PSRAM on a ONE+ Model B?

Inquiry and support for Freematics products
Post Reply
tman
Posts: 2
Joined: Tue Sep 06, 2022 7:17 am

Enabling PSRAM on a ONE+ Model B?

Post 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.
stanley
Site Admin
Posts: 1018
Joined: Sat Mar 01, 2014 3:15 am

Re: Enabling PSRAM on a ONE+ Model B?

Post by stanley »

You need to build with ESP-IDF and enable PSRAM and RTC through menuconfig.
tman
Posts: 2
Joined: Tue Sep 06, 2022 7:17 am

Re: Enabling PSRAM on a ONE+ Model B?

Post 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.
Post Reply