Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4887

Other RP2040 boards • Re: Debug Probe an I2C sniffer / logger

$
0
0
Well it didn't work seems if I had read the PIO code I would have known that the pin order was important

I've made changes and it works on a Pico, the thing was I was testing with a bus scan to see if it was working

Code:

i2c sniffer initialised!                                                        p                                                                               s11np                                                                           s13np                                                                           s15np                                                                           s17np                                                                           s19np                                                                           s1Bnp                                                                           s1Dnp                                                                           s1Fnp                                                                           s21np                                                                           s23np                                                                           s25np                                                                           s27np                                                                           s29np   -- SNIP --
now I'm scanning the bus starting at address 0x08 this output makes no sense to me. So I refactored the code and made some minor changes. Now I get.

Code:

i2c sniffer Ready                                                               ]                                                                               [08 R N ]                                                                       [09 R N ]                                                                       [0A R N ]                                                                       [0B R N ]                                                                       [0C R N ]                                                                       [0D R N ]                                                                       [0E R N ]                                                                       [0F R N ]  -- SNIP --[3C R A 43 N ]  -- SNIP --
There is an OLED on the bus at 0x3c Now it makes sense. But what about when I do an initialise on the OLED how does that look?

Code:

[3C W A 00 A AE A D5 A 80 A A8 A 1F A D3 A 00 A 40 A 8D A 14 A A1 A C8 A DA A 02 A 81 A 7F A D9 A F1 A DB A 40 A A4 A A6 A AF A ]                               [3C W A 00 A A0 A ]                                                             [3C W A 00 A C0 A ]
Now I think I will do a little more output tweaking to but I'm happy with this. I think the PIO is good enough it does have a false end bit at the startup but that can be fixed too. Going to test this on the Debug Probe.

Statistics: Posted by DarkElvenAngel — Sat Apr 06, 2024 3:12 am



Viewing all articles
Browse latest Browse all 4887

Trending Articles