Search found 14 matches

by duffster
Tue Sep 04, 2018 9:30 pm
Forum: ESP32 Arduino
Topic: Increase ULP program size
Replies: 1
Views: 95

Re: Increase ULP program size

You can try to edit the sdkconfig file in your esp32-arduino install. Search for CONFIG_ULP_COPROC_RESERVE_MEM and add more memory like 1024. My sdkcofig file was located in ../tools/sdk/
by duffster
Sun Aug 19, 2018 5:30 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 20
Views: 3343

Re: esp32 ulp programming

A recent update to the Arduino-core made the arduino_ulp incompatible so I updated my platform.txt to work with latest core and have the latest fixes. This has the unfortunate effect of making older core installation incompatible with this so you may have to update your core before this will work.
by duffster
Mon Jun 11, 2018 5:48 pm
Forum: ESP32 Arduino
Topic: esp32 ulp programming
Replies: 20
Views: 3343

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: 20
Views: 3343

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: 20
Views: 3343

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: 20
Views: 3343

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: 20
Views: 3343

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: 20
Views: 3343

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: 20
Views: 3343

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: 20
Views: 3343

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