Search found 271 matches

by urbanze
Fri Oct 06, 2017 5:59 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20242

Re: ULP global variables

Hi urbanze, I am happy to see that you have answered most of the questions already! 2-) The assembly code only worked with .bss and .text (removing them, not working). What they do? Why and when should I put them? I did not see them saying anything about them. If there really is not and that is why...
by urbanze
Fri Oct 06, 2017 1:59 pm
Forum: General Discussion
Topic: How is the ULP coprocessor going to be programmed?
Replies: 16
Views: 12774

Re: How is the ULP coprocessor going to be programmed?

I see before, and dont understand write(reg) There are several instances of using "WRITE_RTC_REG" in https://github.com/krzychb/ulp-loop/blob/6f7c3d843e8a27137d77fd2f28c04c16919e5681/main/ulp/loop_blink.S. Which one would you like to be clarified? Or you do not understand description in manual - ht...
by urbanze
Thu Oct 05, 2017 9:19 pm
Forum: General Discussion
Topic: How is the ULP coprocessor going to be programmed?
Replies: 16
Views: 12774

Re: How is the ULP coprocessor going to be programmed?

krzychb wrote:
urbanze wrote: Just toggle on/off a pin...
Check https://github.com/krzychb/ulp-loop.
I see before, and dont understand write(reg)

You can explain better how it work?
by urbanze
Thu Oct 05, 2017 7:29 pm
Forum: General Discussion
Topic: How is the ULP coprocessor going to be programmed?
Replies: 16
Views: 12774

Re: How is the ULP coprocessor going to be programmed?

Anyone can write an example of "blink" with ulp? Just toggle on/off a pin...

I tried with "libraries" WRITE_RTC_REG(RTC_IO_TOUCH_PAD0_REG,RTC_IO_TOUCH_PAD0_HOLD_S,1,0) and simillars but doesnt worked. I had sucess with use ulp + delay, for, whiles, vars, but gpio not.
by urbanze
Thu Oct 05, 2017 1:01 pm
Forum: General Discussion
Topic: ULP: working example of JUMP Rx
Replies: 5
Views: 4490

Re: ULP: working example of JUMP Rx

I using this in my code, it's a simple increment (++) with FOR loop and 1sec delay. .bss .global x x: .long 0 .text .global entry entry: move r1, x ld r0, r1, 0 jump loop loop: add r0, r0, 1 stage_rst jump delay delay: stage_inc 1 wait 65535 jumps delay, 122, lt st r0, r1, 0 jump loop
by urbanze
Wed Oct 04, 2017 7:11 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20242

Re: ULP global variables

@urbanze, I have verified this issue in native esp-idf environment and see @WiFive nailed it down already :D It disappears after removing extraneous "extern uint32_t ulp_x = 1;" from the main c program code. It shows up if I put "extern uint32_t ulp_x = 1;" back. Complete code that works is below: ...
by urbanze
Wed Oct 04, 2017 6:21 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20242

Re: ULP global variables

Maybe you should remove global initialization of ulp_x and only set value if it is a cold boot. I removed declaration in C "extern uint32_t ulp_x" and "make clean". After this, I re-compiled/uploaded and in ulp_main.h still had global variables, maybe is code from assembly. Variable doenst change, ...
by urbanze
Wed Oct 04, 2017 3:40 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20242

Re: ULP global variables

Are you sure the compiler (on the main application side) is not optimizing the second load of ulp_x away? If it does, then casting ulp_x to a volatile variable might help. Well, that did not work, either. When i put volatile prefix, compiler give me a error: https://i.imgur.com/F361rWB.png Then, I ...
by urbanze
Wed Oct 04, 2017 2:56 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20242

Re: ULP global variables

krzychb wrote:Ah, sorry. Now I see you are printing the value before and after loading the ulp code.
I will look into it sometime later today.
Thank you for attencion! I still working in this. And after, I will try to "blink" some pin's from ulp too, if you can help me later with this, I'd really appreciate it.
by urbanze
Wed Oct 04, 2017 2:15 pm
Forum: General Discussion
Topic: ULP global variables
Replies: 49
Views: 20242

Re: ULP global variables

I see the ulp binary code (including the "x" variable definition) being loaded from scratch to the ESP32's RTC_SLOW_MEM memory on each wakeup . Instead I would use technique shown here to load it only once on hard reset. Otherwise this variable will be reset on each wakeup. Yes! but I try to just c...

Go to advanced search