Search found 22 matches

by tomtor
Wed Oct 25, 2017 8:08 am
Forum: General Discussion
Topic: ULP: working example of JUMP Rx
Replies: 5
Views: 11776

Re: Stack and Subroutine Macros for ULP

I build the ULP toolchain with the mentioned fix from the pull request: ./configure --prefix=$HOME/esp/esp32ulp-elf-binutils --target=esp32ulp-elf make make install I created a downloadable toolchain build with msys2 on a Windows-7 32-bit installation: https://drive.google.com/open?id=0B3Q0BNAaAVQz...
by tomtor
Sun Oct 22, 2017 10:59 am
Forum: General Discussion
Topic: ULP WakeUP
Replies: 11
Views: 17378

Re: ULP WakeUP

Ah Ok there seem to be a new version of the ulp toolchain on github. The windows build is just still not updated so I have to build it my own. Yes, that's correct. Without that fix jumps via a register do not work. Note that in addition to this fixed issue jumps of all kinds within a macro do NOT w...
by tomtor
Fri Oct 20, 2017 8:02 am
Forum: General Discussion
Topic: ULP WakeUP
Replies: 11
Views: 17378

Re: ULP WakeUP

Playing around with the wake instruction of the ULP I found some strange behaviour. .... When its working there should appear the wakeup message every 2 seconds. If I use the first assembler code I just see how the processor goes to sleep and then nothing happens. So my question is if someone can r...
by tomtor
Fri Oct 13, 2017 4:48 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 62497

Re: ULP global variables

This should fix it: https://github.com/espressif/binutils-esp32ulp/pull/5 This question is kind of strange, but how can I add this edited file to binutils? For the installation, I used the files "ready": (https://github.com/espressif/binutils-esp32ulp/wiki#downloads), and installed directly in the ...
by tomtor
Fri Oct 13, 2017 2:29 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 62497

Re: ULP global variables

tomtor wrote:
tomtor wrote: Yes, that is an issue (bug) with the ULP assembler, labels like 1b and 1f do not work.

I plan to look at it in the assembler sources, because GAS should be able to handle these labels.
This should fix it:

https://github.com/espressif/binutils-esp32ulp/pull/5
by tomtor
Thu Oct 12, 2017 7:02 am
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 62497

Re: ULP global variables

urbanze wrote:Why assembly of ulp is "raw"?

Whats the version/name of this assembly? I would like to study it, but not find any name/version, most similar (I think) is GNU assembly, but various mnemonics not exist or not work...
https://github.com/espressif/binutils-esp32ulp
by tomtor
Wed Oct 11, 2017 2:58 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 62497

Re: ULP global variables

Yes, that is an issue (bug) with the ULP assembler, labels like 1b and 1f do not work. I plan to look at it in the assembler sources, because GAS should be able to handle these labels. Note that it is in general better to use real functions instead of macros, because macros generate a lot of code (...
by tomtor
Wed Oct 11, 2017 6:16 am
Forum: Sample Code
Topic: ULP examples for DHT-22 and BMP-180 (ESP-IDF and Arduino)
Replies: 0
Views: 5029

ULP examples for DHT-22 and BMP-180 (ESP-IDF and Arduino)

An Arduino ULP-Macro DHT-22 sensor program which blinks a led, reads data every minute and sends every 5 minutes: https://gist.github.com/tomtor/99e2a33bfa404ff99454aa94fc0df804 A BMP-180 sensor I2C ESP-IDF assembler demo: https://github.com/tomtor/ulp-i2c Note that the latter requires an assembler ...
by tomtor
Wed Oct 11, 2017 6:08 am
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 62497

Re: ULP global variables

I'm trying to create local numeric variables (to be able to use in macros), but all the methods I've tried from various sites do not compile! I have already tried declaring local labels for macros: \1: &1: $ 1: LOCAL 1: etc. With this, I would use jump 1b to go to label "1" before the jump . None w...
by tomtor
Mon Oct 09, 2017 6:46 am
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 62497

Re: ULP global variables

See http://gist.github.com/tomtor/fa7d6d2cbd8d9b076a503107330be3a1 For subroutine examples See also https://www.esp32.com/viewtopic.php?f=2&t=3228 Hi tomtor! Thanks for reply. You know how do this without use r0-r3 registers? I can do simples static functions with .macro, but I really want call/ret...