Search found 4 matches

by giltal
Wed Dec 28, 2022 6:49 am
Forum: ESP32 Arduino
Topic: PSRAM init failed! - can't get esp32-cam board to work
Replies: 4
Views: 8596

Re: PSRAM init failed! - can't get esp32-cam board to work

It might be a defective module. Please also make sure to enable: PSRAM enabled the options menu I have checked it with an ESP-CAM module that I have: void setup() { Serial.begin(115200); delay(250); // Setup WiiMote if (psramInit()) printf("PSRAM init OK\n"); printf("PSRAM size: %d\n", ESP.getFreePs...
by giltal
Sun Dec 25, 2022 10:08 am
Forum: ESP32 Arduino
Topic: PSRAM init failed! - can't get esp32-cam board to work
Replies: 4
Views: 8596

Re: PSRAM init failed! - can't get esp32-cam board to work

Hi
Edit this file in the SDK:
esp32-hal-psram.c
Change the following line:
#if CONFIG_SPIRAM_SUPPORT || CONFIG_SPIRAM
to
#if 1
Then just choose the regular ESP32 Dev kit

Use this code to init the pSARM
if (psramInit())
printf("PSRAM init OK\n");
printf("PSRAM size: %d\n", ESP.getFreePsram());
by giltal
Fri Dec 23, 2022 12:02 pm
Forum: ESP32 Arduino
Topic: Calling a C function from Assembly
Replies: 2
Views: 1237

Re: Calling a C function from Assembly

Thanks for your answer ... :)
I am aware of it :-)
Tried all options, still same starnge behaviuor
by giltal
Wed Dec 21, 2022 6:47 pm
Forum: ESP32 Arduino
Topic: Calling a C function from Assembly
Replies: 2
Views: 1237

Calling a C function from Assembly

ESP32:
I have an interrupt service routine written in Assembly
I am trying to call a C function and get a double exception error.
Any Idea?

movi a14, intFunc
callx0 a14

extern "C" void IRAM_ATTR intFunc()
{
counter2++;
}