I2S for Seeed Studio Xiao nRF52840 using SPH0645

Hello, I am trying to configure our board seeed studio xiao nRF52840 with a MEMS microphone Knowles SPH0645. Since the microphone needs 32 bit SWIDTH, i tried creating 2 PWM signals to emulate the SCK and LRCLK for 32 bits because nrf52840 cannot do 32 bits in master mode. So far I have used examples from blinky pwm and i2s echo. The current code looks like this: 

and the overlay file looks like this:

This code builds but when I transfer the uf2 in the seeed studio xiao bootloader mode, the board disappears from the COM ports which makes it hard for me to debug the code. I also don't fully understand the i2s code yet, if someone can help it would be much appreciated. Thank you

Parents
  • Hello,

    I am not familiar with the board in question, but unless there are a third party interface MCU that handle the programming through the SWD interface, then it's likely a serial bootloader involved (e.g. UART, USB etc), and when updating from bootloader it typically will involve reset the board between firmware updates, that commonly will also need the PC to re-enumrate the USB descriptors for possible changes, so this may cause what you see. For development getting development board with an interface MCU (e.g. nRF52840-DK) can be a good idea. In any case it may sound like you should reach out to the module manufacturer for help in this case.

    Kenneth

  • Thank you for your response!

Reply Children
No Data