You are reading a single comment by @urish and its replies. Click here to read the full conversation.
  • I found the culprit - targetlibs/nrf5x_15/modules/nrfx/mdk/nrf­.h contains the following:

    /* Redefine "old" too-generic name NRF52 to NRF52832_XXAA to keep backwards compatibility. */
    [#if](http://forum.espruino.com/search/?­q=%23if) defined (NRF52)
        [#ifndef](http://forum.espruino.com/sear­ch/?q=%23ifndef) NRF52832_XXAA
            [#define](http://forum.espruino.com/sear­ch/?q=%23define) NRF52832_XXAA
        [#endif](http://forum.espruino.com/searc­h/?q=%23endif)
    [#endif](http://forum.espruino.com/searc­h/?q=%23endif)
    

    This defines NRF52832_XXAA, and thus causing both nrf52832_peripherals.h and nrf52840_peripherals.h to be included, and then the fun begins...

    After commenting this out, I am finally able to use the GPIO1 pins. @gordon do you want me to add a new SDK patch and send a PR?

About

Avatar for urish @urish started