nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

'.syntax divided' arm assembly not supported

I am trying to run a simple blinky program to my NRF51-DK. When I go to build the program I get this error '.syntax divided' arm assembly not supported on line 236 in 'nrf_delay.h'. The line is ".syntax divided\n".

"#if ( defined(__GNUC__) && (__CORTEX_M == (0x00U) ) )
    ".syntax divided\n"
#endif
#if ( __CORTEX_M == (0x00U) )
    // The SUBS instruction in Cortex-M0 is available only in 16-bit encoding,
    // hence it requires a "lo" register (r0-r7) as an operand.
    : [number_of_us]    "=l"             (number_of_us)
#else
    : [number_of_us]    "=r"             (number_of_us)
#endif
    : [SystemCoreClock] "r"              (SystemCoreClock),
      [clock16MHz]      "r"              (clock16MHz),
                        "[number_of_us]" (number_of_us)"

Is this something to do with the setup of my device?

Any help would be appreciated.

Thanks!

Parents Reply Children
No Data
Related