Page 1 of 2

peek and poke

Posted: Sat Jun 12, 2021 3:49 pm
by barneyb
Hi peek and poke would be handy if possible, these features make basic complete for me, helped me out lots with registers in the past. Many thanks

Re: peek and poke

Posted: Sat Jun 12, 2021 9:40 pm
by AndyGadget
What would you be hoping to acheive with this, Barney?
To me it looks like the high-level commands have got it pretty well covered.
Command register reference : https://www.espressif.com/sites/default ... ual_en.pdf

Re: peek and poke

Posted: Sun Jun 13, 2021 1:04 pm
by barneyb
Hi Andy just moving back to esp8266 after using other mcus, which i inplemted peek,poke in the embedded os, i found it useful in accessing interrupt, power mode,saving and wdt registers and peeking around to see what registers get set on bootstrapped devices Thank you for the link

Re: peek and poke

Posted: Mon Jun 14, 2021 10:31 am
by cicciocb
Hi barneyb,
yes it could be possible to implement these functions.
However, these should be adapted to the memory access mode (8, 16 or 32 bits access).

Do you have a real practical example of what you would like to do with these functions?

Re: peek and poke

Posted: Tue Jun 15, 2021 10:34 am
by barneyb
hi cicciocb and thank you for bringing life to basic on latter day mcus, i can see me using many features in the rtc_cntl registers, turning wifi off,using pad state to wake it up, i do use low power clocks and watchdog timer wakeups for low consumption on gadgets operating on solar. 32bit deref pointers would be magic.
thank you barney

Re: peek and poke

Posted: Tue Jun 15, 2021 11:43 am
by barneyb
i would also use poke and peek over easynet (saves flashing) during early development of a gadget, mini live system(poke relay1; 1 peek switch1) see how long the pump needs to run etc. i do not know if annex is subroutine threaded or not if so a return on interrupt vectors, peeking flag set for interrupt multitaking (if memory is reaching its limits with bluetooth etc).
just some thoughts and forgive my ramblings.
all the best barney

Re: peek and poke

Posted: Tue Jun 15, 2021 11:50 am
by cicciocb
Hi,
it should not be hard to implement peek and poke.

I'll add in the todo list

Re: peek and poke

Posted: Thu Mar 17, 2022 1:03 pm
by PPANTHER256
Hi, Peek and Poke are cool if you really "know what you are doing!!", but why not..
This is the only way to overcome the strict limitations at Annex-Wifi, but, is was no critics on the really excellent work you just made, cicciocb, tnx a lot!

Re: peek and poke

Posted: Thu Mar 17, 2022 3:50 pm
by Electroguard
This is the only way to overcome the strict limitations at Annex-Wifi
Hi, I'm curious about what "strict limitations" you are having, and how peek and poke would overcome them ?

Re: peek and poke

Posted: Thu Dec 29, 2022 4:29 pm
by cicciocb
Implemented in the version 1.48.2 for the ESP32