SPI SRAM test fail

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

SPI SRAM test fail

Postby zliudr » Mon Aug 17, 2020 11:10 pm

I get my wrover-b from digikey so there's no way they didn't pass QA, right? This particular module has been reflowed onto my board. Everything looks great. I've used it as a dev board for my firmware for about a week or two. And then is started reporting spi sram failure. At first it was just a few times at boot that recovered after rebooting a few times. Then it would take some time with power off before it can work. Now it's mostly not working. I have a second unit that does this too. Here's log. Failure happens at different locations but all very low side of the memory address. I wonder what happened. QA issue? I reflowed at too high temperature? I use SAC305. Is espressif also using SAC305?

E (1634) spiram: SPI SRAM memory test fail. 74/131072 writes failed, first @ 3F8052A0

E (1634) cpu_start: External RAM failed memory test!

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SPI SRAM test fail

Postby WiFive » Tue Aug 18, 2020 1:12 am

Have you tried SPIRAM_2T_MODE in idf v4.3?

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: SPI SRAM test fail

Postby zliudr » Tue Aug 18, 2020 1:15 am

I'm on ESP-IDF V3.3 but if what you said is a potential solution, I can go with that. Before starting though, could you explain what is this 2T mode and how does it solve my SPIRAM problem? thanks.

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: SPI SRAM test fail

Postby zliudr » Tue Aug 18, 2020 1:22 am

Wow, what a bummer! "Some ram chips have issues". I've had to devices out of less than 100 and another one or two that showed this occasionally. I didn't choose those RAM chip!

https://docs.espressif.com/projects/esp ... am-2t-mode

Seems like release 3.3 has this feature too. I'll give it a go. Nope, there's no such option. Menuconfig ends at the second to the last item:

https://docs.espressif.com/projects/esp ... ram-config

I added that option to the config by hand but it got removed after I compiled. Is there any patches I can apply to my 3.3 to enable this feature? I may have to set up a 4.1 version tool chain to try and migrate my project. That's a huge move at my stage of development.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SPI SRAM test fail

Postby WiFive » Tue Aug 18, 2020 12:54 pm

That may or may not be your problem, there is a list of psram chipid here, but it was removed later. https://github.com/espressif/esp-idf/co ... eedd4cc720

Who is online

Users browsing this forum: No registered users and 146 guests