ULP global variables

User avatar
martinayotte
Posts: 104
Joined: Fri Nov 13, 2015 4:27 pm

Re: ULP global variables

Postby martinayotte » Mon Oct 16, 2017 3:23 pm

"cmp" is pretty common on most Linux plateforms.

"diffutils" package should provide it : https://www.gnu.org/software/diffutils/

User avatar
urbanze
Posts: 159
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: ULP global variables

Postby urbanze » Mon Oct 16, 2017 4:03 pm

martinayotte wrote:"cmp" is pretty common on most Linux plateforms.

"diffutils" package should provide it : https://www.gnu.org/software/diffutils/


How can I install this in binutils directory? (I using Windows)

User avatar
martinayotte
Posts: 104
Joined: Fri Nov 13, 2015 4:27 pm

Re: ULP global variables

Postby martinayotte » Tue Oct 17, 2017 4:00 pm

I'm not working on Windows, but maybe this gnuwin32 version could resolve your issue :
http://gnuwin32.sourceforge.net/packages/diffutils.htm

User avatar
urbanze
Posts: 159
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: ULP global variables

Postby urbanze » Tue Oct 17, 2017 6:44 pm

martinayotte wrote:I'm not working on Windows, but maybe this gnuwin32 version could resolve your issue :
http://gnuwin32.sourceforge.net/packages/diffutils.htm


I spent 3 hours trying to solve this and I did not succeed D:

Firstly I installed the diffutils of your link, and apparently the error was solved, but as the destination is cruel, appeared several others, like makeinfo ...

By the way I'll have to wait for someone who has already done this on Windows, respond.

:x :( :? :cry:

User avatar
martinayotte
Posts: 104
Joined: Fri Nov 13, 2015 4:27 pm

Re: ULP global variables

Postby martinayotte » Wed Oct 18, 2017 3:44 pm

Maybe it would be simpler to install a Linux VM in VirtualBox ... :ugeek:

SoftwareSamurai
Posts: 17
Joined: Wed Sep 13, 2017 11:51 pm

Re: ULP global variables

Postby SoftwareSamurai » Wed Oct 18, 2017 6:09 pm

cygwin (google it)

User avatar
urbanze
Posts: 159
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: ULP global variables

Postby urbanze » Thu Dec 14, 2017 5:42 pm

My tests are over and finally I was able to test the new ULP update that was added to the LOCAL LABELS patch.

It's working! Thanks for the correction, @tomtor
Image

User avatar
urbanze
Posts: 159
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: ULP global variables

Postby urbanze » Thu Dec 14, 2017 9:16 pm

1-) What is the ULP file sent to ESP32? ulp.bin " ulp.elf? ulp.o? I need size to configure correctly size of ULP program (in menuconfig).

I tried using make size, make size-files, make size-components and none returned on them, however going into the folder there are several files with varying sizes. I think the final file uploaded is the ULP.BIN or is it another?

ulp_main.BIN has 36B, ulp_main.elf has 8.55kB, etc.. https://i.imgur.com/O4nuuLP.png


2-) Why "TSENS" instruction in ulp ever returns 128? I tried various cycles and all return 128. If I measure temperatura with main core, work's correcly!

Example:

Code: Select all

move r1, x//Load x address in r1
ld r0, r1, 0//Load x value to r0
tsens r0, 1000//Measure temp and store in r0
st r0, r1, 0//Store r0 in x address

hengyongchao
Posts: 2
Joined: Fri Dec 15, 2017 2:45 am

Re: ULP global variables

Postby hengyongchao » Fri Dec 15, 2017 2:58 am

Here I add an example of how to use TSENS command: https://github.com/espressif/esp-iot-so ... /ulp_tsens

User avatar
urbanze
Posts: 159
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: ULP global variables

Postby urbanze » Fri Dec 15, 2017 11:56 am

hengyongchao wrote:Here I add an example of how to use TSENS command: https://github.com/espressif/esp-iot-so ... /ulp_tsens



Where did you find these registrars? In the datasheet are others :(
Image of temperature registers: https://i.imgur.com/gLkIl5A.png
WRITE_RTC_REG(SENS_SAR_MEAS_WAIT2_REG, SENS_FORCE_XPD_SAR_S, 2, SENS_FORCE_XPD_SAR_PU)


In reference to TSENS also nothing is mentioned about the use of registers, so it was not getting, but its worked!

Who is online

Users browsing this forum: No registered users and 3 guests