pca10059 device won't pair with TWIM enabled, except in debug mode

I've based my code upon the HIDS keyboard example and added code to support an attached polled sensor with I2C interface. The device will pair with the Android phone just fine when using the debugger through a JTAG mini, but I need to disable the TWIM interface if I want the device to pair outside the debugger. Do I need to change priority settings somehow?

Parents Reply
  • Hello,

    apdobaj said:
    I've found that the device doesn't even advertise outside of the debugger.

    Does the code start to execute at all? E.g. if you have an LED or similiar you can find out. If yes, do you have any indication where the code is "stuck"?

    If the code does not start, then I suggest to check supply voltage and if pin reset is enabled (that it is pulled high).

    Kenneth

Children
No Data
Related