ULP global variables
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: ULP global variables
"cmp" is pretty common on most Linux plateforms.
"diffutils" package should provide it : https://www.gnu.org/software/diffutils/
"diffutils" package should provide it : https://www.gnu.org/software/diffutils/
Re: ULP global variables
How can I install this in binutils directory? (I using Windows)martinayotte wrote:"cmp" is pretty common on most Linux plateforms.
"diffutils" package should provide it : https://www.gnu.org/software/diffutils/
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: ULP global variables
I'm not working on Windows, but maybe this gnuwin32 version could resolve your issue :
http://gnuwin32.sourceforge.net/packages/diffutils.htm
http://gnuwin32.sourceforge.net/packages/diffutils.htm
Re: ULP global variables
I spent 3 hours trying to solve this and I did not succeed D:martinayotte wrote:I'm not working on Windows, but maybe this gnuwin32 version could resolve your issue :
http://gnuwin32.sourceforge.net/packages/diffutils.htm
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.
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: ULP global variables
Maybe it would be simpler to install a Linux VM in VirtualBox ...
-
- Posts: 17
- Joined: Wed Sep 13, 2017 11:51 pm
Re: ULP global variables
cygwin (google it)
Re: ULP global variables
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
It's working! Thanks for the correction, @tomtor
Re: ULP global variables
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:
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
-
- Posts: 184
- Joined: Fri Dec 15, 2017 2:45 am
Re: ULP global variables
Here I add an example of how to use TSENS command: https://github.com/espressif/esp-iot-so ... /ulp_tsens
Re: ULP global variables
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: Baidu [Spider] and 119 guests