If I understand correctly, something is failing when trying to bring up the RFID sensor?
Does the board start up if you remove support for the sensor? Do you have oscilloscope or logic analyzer to verify signals are being sent/received between microcontroller and sensor chip? Do you have a debugger available to single-step through stm32_mfrc522initialize and see what's failing? Hope this helps Nathan On Thu, Aug 22, 2024 at 4:04 PM Felipe Moura Oliveira <moura....@gmail.com> wrote: > > Hello All, > > I added stm32f4discovery board mfrc522 support, however it is not working, > probably my cheap board. Can someone with a mfrc522 board share with me > nuttx debug output? So I can consider my port ok or find issues on my side. > > Follow my report: > > Type [C-a] [C-h] to see available commands > Terminal ready > ABCDF > [ 1] AppBringUp: spi_setfrequency: Frequency 400000->328125 > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: spi_setfrequency: Frequency 1000000->656250 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 0002 Return: 00ff Status: 02 > [ 1] AppBringUp: spi_send: Sent: 000f Return: 0002 Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 0082 Return: 0007 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 0000 Return: 0000 Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 0054 Return: 0000 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 0080 Return: 006a Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 0056 Return: 0080 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 00a9 Return: 006a Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 0058 Return: 00a9 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 0006 Return: 006c Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 005a Return: 0006 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 00e8 Return: 006c Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 002a Return: 00e8 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 0040 Return: 0014 Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 0022 Return: 0040 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 003d Return: 0010 Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 00a8 Return: 003d Status: 02 > [ 1] AppBringUp: spi_send: Sent: 0000 Return: 0000 Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 0028 Return: 0000 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 0003 Return: 0014 Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: spi_setmode: mode=0 > [ 1] AppBringUp: spi_setbits: nbits=8 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: assert > [ 1] AppBringUp: spi_send: Sent: 00ee Return: 0003 Status: 02 > [ 1] AppBringUp: spi_send: Sent: 0000 Return: 0000 Status: 02 > [ 1] AppBringUp: stm32_spi1select: devid: 1114112 CS: de-assert > [ 1] AppBringUp: ERROR: stm32_mfrc522initialize() failed: -19 > > -- > *Felipe Moura de Oliveira* > *Universidade Federal de Minas Gerais* > Linkedin <https://www.linkedin.com/in/felipe-oliveira-75a651a0> > <https://twitter.com/FelipeMOliveir?lang=pt-br>