Open anujdeshpande opened 7 months ago
*** Booting Zephyr OS build zephyr-v3.5.0 ***
[00:00:00.001,000] <inf> simple_app: Running DS3231 simple app on rpi_pico
Error: no device found.
uart:~$ i2c scan
scan: wrong parameter count
scan - Scan I2C devices
Usage: scan <device>
Subcommands:
reset-controller@4000c000
uart@40034000
gpio@40014000
i2c@40048000
i2c@40044000
ds3231@68
uart:~$ i2c scan ds3231@68
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
[00:00:12.681,000] <err> os: ***** HARD FAULT *****
[00:00:12.681,000] <err> os: r0/a1: 0x1000aab0 r1/a2: 0x200019d4 r2/a3: 0x00000001
[00:00:12.681,000] <err> os: r3/a4: 0x00000004 r12/ip: 0x1000d1ce r14/lr: 0x10009be3
[00:00:12.681,000] <err> os: xpsr: 0x01000000
[00:00:12.681,000] <err> os: Faulting instruction address (r15/pc): 0xfffffff4
[00:00:12.681,000] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:12.681,000] <err> os: Current thread: 0x20000670 (shell_uart)
[00:00:12.738,000] <err> os: Halting system
@anujdeshpande does it crash if you scan with nothing attached? I.e. a factory RPi Pico?
@Bucknalla
i2c scan ds3231@68
- it hard faultsi2c scan ds3231@68
- it hard faultsi2c scan i2c@40048000/i2c@40044000
- it hangs indefinitely.@anujdeshpande so it sounds like a zephyr issue?
@Bucknalla I think I am going to just setup an arduino real quick. Have a working setup with Adafruits official library. I just want to ensure that I have working hardware before debugging zephyr further.
(This might come in handy later too)