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

nRF52832 (SPI master function) only detects accelerometer KX224 (SPI slave) when JTAG debugger is connected; but SPI bus oscillogram is perfect

Hello together,

I have a strange problem and don't know how to proceed...

At my customer-specific electronic a Kionix KX224 is placed next to the BLE module which contains the nRF52832. When I connect my jTracePro Debugger everything works fine. But when using that electronic without the debugger, all other sensors using GPIOs or TWI work well and the results are transmitted by BLE as planned. Only the KX224 is not detected by the nRF52832, although the oscilloscope shows perfect answer from the KX224; the SPI decoding module from the oscilloscope shows the expected data.

I tried already to switch on internal Pull-Ups - no change.

Does anybody have an idea?

BR

matthk

Parents Reply
  • Hi Kenneth,

    as I have not already activated DMA and furthermore I use SDK13.0.0 I suppose that this is not the problem; should I anyway add:

    CFLAGS += -DNRF52_PAN_109 and

    ASMFLAGS += -DNRF52_PAN_109

    to my makefile?

    I have tested now 3 electronics; all show the same behavior.

    I have additionally tested the behavior if I start with connected JTAG debugger; then let run and disconnect  while running - this works! So it seems that a starting condition is different when a JTAG debugger is connected.

    Do you have another idea why the nRF52832 doesn't want to read-in the data at MISO pin?

    Best regards,

    Matthias

Children
Related