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

Any more comprehensive information on app_util_platform.c?

Hello, I'm migrating a project from nrf51 S110 to nrf52840 S140, I encountered an error

"nrf_nvic_state" not found, I solved it by adding app_util_platform.c.

The problem is I don't really know what exactly this file does. As the name and the brief said, it's for utility.

There wasn't one for nrf51 and nrf51 pulled everything off just fine. Why do we need a separate, dedicated utility file now? Any more background detail on that?

Parents
  • Hi,

    The usage of app_util_platform does not depend on what chip or softdevice is used. It has (at least) been present in the SDK since v7.1.0, so yes, there was one for nRF51 as well. The file includes definitions and utilities related to priority and interrupts. If you want, you can use the chip without the SDK at all, but it would require a lot more work. The utility libraries add functionality to the SDK and simplifies other modules.

    Best regards,

    Jørgen

Reply
  • Hi,

    The usage of app_util_platform does not depend on what chip or softdevice is used. It has (at least) been present in the SDK since v7.1.0, so yes, there was one for nRF51 as well. The file includes definitions and utilities related to priority and interrupts. If you want, you can use the chip without the SDK at all, but it would require a lot more work. The utility libraries add functionality to the SDK and simplifies other modules.

    Best regards,

    Jørgen

Children
No Data
Related