cancel
Showing results for 
Search instead for 
Did you mean: 

BlueNRG-M2SP Custom PCB IRQ Won't Go High?

soliddomo
Visitor

I recently got a new custom PCB with a STM32L476RGT6 and a BlueNRG-M2SP. I have a Nucleo L476RG and a X-NUCLEO-BNRG2A1 to test and make sure the program works. I am running the SensorDemo_BLESensor-App project from the X-CUBE-BLE2 package, and it works flawlessly on the dev board with the pinouts that are on my PCB, connected with jumper cables.

I have been trying to isolate why this program isn't working on my PCB, and realized the IRQ pin is not going high after the send_cmd() function. So basically with the dev board whenever it runs hci_reset(), and eventually into hci_send_req where send_cmd is, IRQ goes high, but on the PCB, IRQ never goes high.

Now from my understanding, this can be a problem in several areas. I have a multimeter, and confirmed CS is going high at the same time in the code for both the PCB and the dev board, and I set PD2 on my PCB high as a test and it worked so the PD2 (Where my IRQ pin is connected to) works as well. I can go to my uni and use their logic analyzer to see the timing of SCLK and the MOSI/MISO bits, but is there any other reason why this is not working?

 

I uploaded DTM_SPI.hex onto the BlueNRG2 with SWD already, the VDD pin is getting 3v3 with a 100nf cap on it. Could it be a problem with the impedance from the traces on the PCB and the timing is wrong? I should also include for both the dev board and the pcb im not using an external crystal, as the program still works using the internal oscillators.

I'll attach the schematics because maybe my pins are connected wrong? I'm really at a loss and for the past couple days have been trying to test everything I can to no avail. Anything would be useful, Thank you!bluetooth schematic.pngMCU Schematic.png

0 REPLIES 0