Page 5 of 5

Re: ULP global variables

Posted: Mon Oct 16, 2017 3:23 pm
by martinayotte
"cmp" is pretty common on most Linux plateforms.

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

Re: ULP global variables

Posted: Mon Oct 16, 2017 4:03 pm
by urbanze
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)

Re: ULP global variables

Posted: Tue Oct 17, 2017 4:00 pm
by martinayotte
I'm not working on Windows, but maybe this gnuwin32 version could resolve your issue :
http://gnuwin32.sourceforge.net/packages/diffutils.htm

Re: ULP global variables

Posted: Tue Oct 17, 2017 6:44 pm
by urbanze
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:

Re: ULP global variables

Posted: Wed Oct 18, 2017 3:44 pm
by martinayotte
Maybe it would be simpler to install a Linux VM in VirtualBox ... :ugeek:

Re: ULP global variables

Posted: Wed Oct 18, 2017 6:09 pm
by SoftwareSamurai
cygwin (google it)

Re: ULP global variables

Posted: Thu Dec 14, 2017 5:42 pm
by urbanze
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

Re: ULP global variables

Posted: Thu Dec 14, 2017 9:16 pm
by urbanze
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

Re: ULP global variables

Posted: Fri Dec 15, 2017 2:58 am
by ESP_HengYC
Here I add an example of how to use TSENS command: https://github.com/espressif/esp-iot-so ... /ulp_tsens

Re: ULP global variables

Posted: Fri Dec 15, 2017 11:56 am
by urbanze
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!