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

nRF51 SDK-examples using VisualGDB

Hi, I wonder how to get the Nordic SDK-examples work with VisualGDB.

As I would like to read TWI sensor values a good point to start from are the Nordic examples. But as all neccessary header files seem not to be included I have no idea how to get them work.

Did anyone already fight this problem? Or is there a working tutorial out there?

Parents
  • Around SDK11 linker files were wrong and debugger was hanging visual studio. The former wasn't obvious and took me lots of time to figure out what's happening. I reported it but got tired of waiting for the fix. Also there were problems with J-Link support and you had to stick to specific driver versions. Then it took the authors months to migrate to SDK12 and since my clients wanted newest and greatest version I've switched to Keil. I recently gave VisualGDB a chance to see if I can recommend it as a cheaper alternative to Keil and tried to build one of my production projects with it. I've managed to make it compile after a while. But resulting code did not run as expected. Surprisingly the same code works when built using GCC and official makefiles. It even works as 'makefile project' under VisualGDB. But then visual studio code highlighting is broken.

Reply
  • Around SDK11 linker files were wrong and debugger was hanging visual studio. The former wasn't obvious and took me lots of time to figure out what's happening. I reported it but got tired of waiting for the fix. Also there were problems with J-Link support and you had to stick to specific driver versions. Then it took the authors months to migrate to SDK12 and since my clients wanted newest and greatest version I've switched to Keil. I recently gave VisualGDB a chance to see if I can recommend it as a cheaper alternative to Keil and tried to build one of my production projects with it. I've managed to make it compile after a while. But resulting code did not run as expected. Surprisingly the same code works when built using GCC and official makefiles. It even works as 'makefile project' under VisualGDB. But then visual studio code highlighting is broken.

Children
No Data
Related