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

SPIM3 on nRF52840 and SDK17.0.2

Hello.

I've got problem with properly build example SPIM3 code. I took blinky example, added code from nrfx_spim example, set SPIM3 in sdk_config.h, add nrfx_spim to project and ...... nrfx_spim_init(...) is undefined symbol. I have no idea why. My project settings are the same with nrfx_spim example. Attachement code is only test code. Original code is much bigger but the situation with nrfx_spim_init(...) is the same.

Best regards

PW

ble_test_spim3.zip

  • It's was solved. SPI_ENABLED section in sdk_config.h has to be commented. SPI_ENABLED 0 is not enough. Thinking After that, code inside nrfx_spim.c is active in project. Strange...

  • Hello PW,

    PW said:
    It's was solved.

    I am happy to hear that you were able to resolve your issue!

    PW said:
    SPI_ENABLED section in sdk_config.h has to be commented. SPI_ENABLED 0 is not enough.

    This is correct, because apply_old_config will overwrite any NRFX_*_ENABLED if a *_ENABLED is left defined, therefore it needs to be commented out or removed completely.
    This feature is in place to ensure backwards compatibility, but I have seen that this has caused confusion for multiple forum goers, and I have reported this for review internally.
    You can read more about this issue here. Sorry for the inconvenience!

    Please do not hesitate to open a new ticket if you encounter any issues or questions in the future!

    Best regards,
    Karl

Related