This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

sd_softdevice_enable hangs using GCC, not with Keil

In porting over my project from Keil to GCC using SDK 8.1.0 I can build and run just fine when I build with Keil but when I build with GCC and try to run sd_softdevice_enable hangs. I have been combing over the linker scripts and everything looking for clues but I cannot figure out what the issue is.

  • Yes, I do have stack 8.0.0 flashed to the chip.
  • I am using a linker file that has the same ram/flash addresses as the Keil project

Another oddity is that the device advertises ok but when I connect it crashes. When using Keil it works perfectly.

If there is anything I can post here to clarify the situation, please let me know.

Thanks!

Answer:

I defined SPI_MASTER_0 instead of SPI_MASTER_0_ENABLE in my makefile which is why Keil and GCC exhibited different behavior. Pretty embarrassing. Don't do this.

Related