This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Clock source and GPIO26

Hi,

Im using a custom board running a program based on 'ble_app_hids_mouse (pca10028)' project, softdevice S130.

Since there is no 32.768 kHz crystal on my board, the sofdevice clock source is set to

NRF_CLOCK_LF_SRC_RC

with:

rc_ctiv = 16

rc_temp_ctiv = 2

The program running okay and there are no problems. there are SPI and TWI slaves connected to some GPIO's. The problems starts when a TWI slave is connected to GPIO26 and GPIO24. When I try to use those pins, it cause the MCU to reset over and over. When i run the same program without softdevice, everything works fine.

I understand that this problem is related to the softdevice clock. How can I make it work?

Thanks

Parents
  • "I understand that this problem is related to the softdevice clock."
    

    What evidence do you have that it has anything to do with the softdevice clock? I can't see any reason it would have anything to do with the softdevice clock. SPI and TWI don't even use the LF clock. More likely you have a call which is returning an error when the softdevice is enabled and APP_ERROR_CHECK() is sending you to the error handler and resetting the device.

    Put breakpoints in all the error handlers, look at the reset reason register when you start up, look for a simple answer.

Reply
  • "I understand that this problem is related to the softdevice clock."
    

    What evidence do you have that it has anything to do with the softdevice clock? I can't see any reason it would have anything to do with the softdevice clock. SPI and TWI don't even use the LF clock. More likely you have a call which is returning an error when the softdevice is enabled and APP_ERROR_CHECK() is sending you to the error handler and resetting the device.

    Put breakpoints in all the error handlers, look at the reset reason register when you start up, look for a simple answer.

Children
Related