peek and poke

Feature requested and implemented
barneyb
Posts: 15
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 8 times
Been thanked: 2 times

peek and poke

Post 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
AndyGadget
Posts: 222
Joined: Mon Feb 15, 2021 1:44 pm
Has thanked: 119 times
Been thanked: 132 times

Re: peek and poke

Post 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
barneyb
Posts: 15
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 8 times
Been thanked: 2 times

Re: peek and poke

Post 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
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 times
Contact:

Re: peek and poke

Post 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?
barneyb
Posts: 15
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 8 times
Been thanked: 2 times

Re: peek and poke

Post 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
barneyb
Posts: 15
Joined: Sat Jun 12, 2021 7:00 am
Has thanked: 8 times
Been thanked: 2 times

Re: peek and poke

Post 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
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 times
Contact:

Re: peek and poke

Post by cicciocb »

Hi,
it should not be hard to implement peek and poke.

I'll add in the todo list
PPANTHER256
Posts: 13
Joined: Wed Mar 10, 2021 5:45 am
Has thanked: 4 times
Been thanked: 4 times

Re: peek and poke

Post 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!
User avatar
Electroguard
Posts: 835
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 267 times
Been thanked: 317 times

Re: peek and poke

Post 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 ?
User avatar
cicciocb
Site Admin
Posts: 1889
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 405 times
Been thanked: 1260 times
Contact:

Re: peek and poke

Post by cicciocb »

Implemented in the version 1.48.2 for the ESP32
Post Reply