Search found 6 matches

by johnsondavies
Thu Jun 12, 2025 11:25 am
Forum: ESP32 Arduino
Topic: Can't get MicroSD working on ESP32-P4-Function-EV-Board
Replies: 18
Views: 6370

Re: Can't get MicroSD working on ESP32-P4-Function-EV-Board

Thank you for the suggestions, but still not working.

there is no need to create a new SPI object.

I've tried:

SPI.begin(43, 39, 44, 42); // SCK, MISO, MOSI, SS
SD.begin(42);

but that doesn't help.

Are you trying to use on board SD card slot or connect own?

I'm trying to use the on-board ...
by johnsondavies
Sun Jun 08, 2025 1:54 pm
Forum: ESP32 Arduino
Topic: Can't get MicroSD working on ESP32-P4-Function-EV-Board
Replies: 18
Views: 6370

Can't get MicroSD working on ESP32-P4-Function-EV-Board

I can't get the MicroSD card slot to work on the ESP32-P4-EV board. I've tried:

SPIClass myspi(HSPI);
SPI.begin(43, 39, 44, 42); // SCK, MISO, MOSI, SS
pinMode(45, OUTPUT);
digitalWrite(45, LOW); // SD_PWRn for MicroSD power
SD.begin(42, myspi);

but it still won't read an SD card. Any ...
by johnsondavies
Sat Jul 24, 2021 8:14 pm
Forum: ESP32 Arduino
Topic: How can I write machine code into RAM and then execute it?
Replies: 4
Views: 7121

Re: How can I write machine code into RAM and then execute it?

Hi @ESP_Sprite ,

Thank you for your reply; that confirms what I suspected. However, I really need a solution that will work for users with the standard Arduino core, so recompiling the ESP-IDF libraries isn't really possible.

How about if I copied the machine code from RAM to Flash memory, and ...
by johnsondavies
Thu Jul 22, 2021 3:33 pm
Forum: ESP32 Arduino
Topic: How can I write machine code into RAM and then execute it?
Replies: 4
Views: 7121

Re: How can I write machine code into RAM and then execute it?

Here's a bit more information about what I want to do, in the hope that it will enable someone to offer a solution.

The following test program puts a RISC-V machine-code program into RAM:

#define WORDALIGNED __attribute__((aligned (8)))

IRAM_ATTR uint8_t MyCode[64] WORDALIGNED = { 0xb5, 0x45 ...
by johnsondavies
Sat Jul 17, 2021 3:33 pm
Forum: ESP32 Arduino
Topic: How can I write machine code into RAM and then execute it?
Replies: 4
Views: 7121

How can I write machine code into RAM and then execute it?

I want to write RISC-V machine code instructions to RAM from a program on an ESP32-C3-DevKitM-1 and then execute them.

If I define my code area as:

uint8_t MyCode[64];

then I get the following error when I try to execute the machine code:

Guru Meditation Error: Core 0 panic'ed (Instruction ...
by johnsondavies
Thu Oct 11, 2018 6:15 pm
Forum: Showcase
Topic: uLisp - a Lisp interpreter for the ESP32
Replies: 0
Views: 4808

uLisp - a Lisp interpreter for the ESP32

uLisp is a version of the Lisp programming language specifically designed to run on microcontrollers. It now supports the ESP8266 and ESP32-based boards. It includes wi-fi networking commands to allow you to take advantage of the wi-fi capabilities of the ESP8266 or ESP32 with the convenience of ...

Go to advanced search