Search found 12 matches

by duffster
Mon Jun 11, 2018 5:48 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

If it doesn't yet run under CPython, i think it would not be too hard to make it run there. Most of the implementation seems to be pretty standard python3, as far as i can tell. Sorry that I didn't add a link in my previous comment: https://github.com/ThomasWaldmann/py-esp32-ulp From what I read, C...
by duffster
Sun Jun 10, 2018 5:30 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

Hey, sorry random question, just wondering if anyone knows why Programming the ULP using macros became legacy. I was kinda thinking it was an easy and effective way with out the need of additional build tools. Trying to program the ULP using ESP32 Arduino and cant figure out the "proper" ...
by duffster
Fri Apr 13, 2018 3:06 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

I have recently added support for multiple ulp assembly files and hopefully window and linux support but those need to be tested by someone that has those OS's.
by duffster
Wed Mar 28, 2018 4:58 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

I got the files uploaded to github with a little how-to as the readme. If anyone tries this out let me know any problems you have with compiling a project here or in the github repository.
by duffster
Thu Mar 22, 2018 11:58 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

Just a follow-up to this thread, I am successfully loading the ulp binary blob into the final elf and running a test sketch using the ulp to increment a global variable. Looks like I can use .s extension for ulp assembly and .S for xtensa assembly and have a python script do the heavy lifting of cre...
by duffster
Thu Mar 15, 2018 3:34 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

If you’re on a linux or other Unix-like system, you can write a shell script to wrap bin/esp32ulp-elf-nm and handle the redirection into a file. I'm trying to make a python wrapper for the ulp code, thanks, this gave me the idea to use python. Since Arduino for esp32 already depends on Python, this...
by duffster
Wed Mar 14, 2018 8:05 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

So I have learned a lot since my last post, this problem is on four fronts: [1] First was getting the correct OS compiled binutils ulp toolchain into Arduino. [2] Second was figuring out how to build and link the ulp to the main code using esp32-idf with command line. [3] Third was figuring out how ...
by duffster
Mon Mar 12, 2018 6:27 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

That sounds correct. Another possibility- develop and debug your ULP code using IDF, then convert the result into hex text, and embed it in your Arduino code. What I did is to use Arduino as a component in the esp-idf build environment as a way to see how to build and link in the ulp code but the m...
by duffster
Thu Mar 08, 2018 8:10 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

I took a deep dive into this problem and found that the .S assembly files do work with Arduino, the instructions refer to the main cores not the ulp! This was evident from the platform.txt https://github.com/espressif/arduino-esp32/blob/master/platform.txt#L33 file so looks like the only way current...
by duffster
Wed Mar 07, 2018 6:42 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 19
Views: 2432

Re: esp32 ulp programming

I've been looking at how to program the ulp in non Arduino environment and I'm going to try to set that up to see if I can glean any info into integrating it into the Arduino IDE. Looks like the ulp needs its own tool chain and esp32ulp-binutils to compile .S assembly files. I know the Arduino IDE c...