Hey,
I created a custom PCB with the nrf51822 that reads two sensors via TWI and transmits certain data over BLE. I can program the chip, print strings to the terminal w/ UART, connect over BLE etc... but I can't get TWI to work!
TWI works perfectly on the development board with a breakout board of the sensor. Using the same exact code that works on the PCA_1005 I've even wired two GPIO's from my custom PCB to the breakout sensor and it still failed on the twi_master_transfer(....) call in sd_twi_hw_master.c.(in case my sensor on the board was soldered improperly or there was some problem with the schematic).
I'm setting the SDA and SCL pins in twi_master_config.h, i've successfully used these same GPIO pins for UART, internal pull-ups are set. I'm using ble-app-hrs as a template for my code and calling twi after advertising_start()
the only guesses I have at this point are: problem with TWI on the chip (i just ordered it last week so it may be a new revision?), or something stupid I'm forgetting in software that I need to do when transferring from dev board to custom PCB.
any thoughts? Thanks!