Search found 4 matches

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: 5929

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 then ...
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: 5929

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, 0x33, ...
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: 5929

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 access fa...
by johnsondavies
Thu Oct 11, 2018 6:15 pm
Forum: Showcase
Topic: uLisp - a Lisp interpreter for the ESP32
Replies: 0
Views: 4355

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 Lis...