CS47L63: Failed to reset CS47L63

Hey Nordic Team,

I'm facing an issue while flashing the audio application on our custom PCB. The interfaces of the custom PCB pretty much match those of nRF5340 Audio DK. However, when I try to flash the audio application, it throws this error

HL [00:00:02.548,461] <err> CS47L63: Failed to reset CS47L63
HL [00:00:02.548,461] <err> audio_system: Failed to initialize HW codec: -6
HL [00:00:02.548,461] <err> main: ERR_CHK Err_code: [-6] @ line: 535
HL [00:00:02.548,492] <err> os: r0/a1:  0x00000003  r1/a2:  0x0000000c  r2/a3:  0x0000000b
HL [00:00:02.548,492] <err> os: r3/a4:  0x00000003 r12/ip:  0x20003b20 r14/lr:  0x000539a9
HL [00:00:02.548,492] <err> os:  xpsr:  0x29100000
HL [00:00:02.548,492] <err> os: s[ 0]:  0x00063154  s[ 1]:  0x00053a61  s[ 2]:  0x0003453d  s[ 3]:  0x00000004
HL [00:00:02.548,522] <err> os: s[ 4]:  0x2001c608  s[ 5]:  0x0003453d  s[ 6]:  0x0003453d  s[ 7]:  0x2001c608
HL [00:00:02.548,522] <err> os: s[ 8]:  0x2001c5d0  s[ 9]:  0xffffffff  s[10]:  0xffffffff  s[11]:  0x00053aa5
HL [00:00:02.548,522] <err> os: s[12]:  0x00063f6c  s[13]:  0x00063b40  s[14]:  0xfffffffa  s[15]:  0x00000217
HL [00:00:02.548,522] <err> os: fpscr:  0x0003453d
HL [00:00:02.548,553] <err> os: Faulting instruction address (r15/pc): 0x00002694
HL [00:00:02.548,553] <err> os: >>> ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
HL [00:00:02.548,583] <err> os: Current thread: 0x20005ed0 (main)
HL [00:00:02.548,583] <err> error_handler: Caught system error -- reason 3. Entering infinite loop

Now if I isolate the hw_codec part and move only that part to a separate project and flash that, it works perfectly fine.

PS: when i try to print the cs47l63_driver id once its passed to the initializing function, it shows 0x00 instead of the actual id.

Related