February 19, 2020 at 20:00 #27447
I’ve started working with nrf52 projects, and I don’t know what the process is for enabling specific SDK features in VisualGDB. Part of the problem is that the UI has changed quite a bit since the Tutorials were written.
For example, I wanted to write code to interface with an ST7789 SPI-connected LCD.
So, I created a project using the “LEDBlink (BSP)” Sample, then made the following changes in the Project Properties’ “Embedded Frameworks” tab:
1. In the Legacy Drivers section, I changed “SPI” from None to Master
2. In the nRF5x Libraries section, I enabled “gfx”
I then added my code that uses the SPI and GFX APIs. When I built it, there were various errors that were caused by #defines that weren’t set correctly. I changed these in sdk_config.h, and the project built. For example, I had to change NRF_GFX_ENABLED from 0 to 1. It seems odd that this isn’t done automatically when I enabled gfx in the Embedded Frameworks tab, but if that’s how it’s designed to work then I’m OK with it. (I really like the fact that I didn’t have to manually add the SDK’s include folders and .c files to the build – that saves a lot of trial-and-error.)
Did I follow the correct process: use the Embedded Frameworks tab to include files from the SDK in the build, then modify sdk_config.h to enable features?February 19, 2020 at 20:37 #27448
The Nordic SDK is indeed one of the hardest ones to configure compared to other SDKs. Generally, it is configured by enabling features in the sdk_config.h file, including the related headers (and adding the corresponding include paths) and source files to the project.
To make configuration easier, VisualGDB maps most of the SDK’s features to the frameworks and configuration options on the Embedded Frameworks page. Enabling those features would add include directories and source files to the project. Also if you update to VisualGDB 5.5 Preview 4 and use the latest Nordic SDK, it will automatically suggest configuration changes for missing symbols and header files that could be discovered during our automated SDK releasing process.
Beyond that, please plan sufficient time to get accustomed to the new SDK. Although VisualGDB can automate most of the troubleshooting, getting the right configuration for a specific project type might still require some iterations. If you are new to the Nordic SDK, please consider selecting “Nordic SDK examples” on the Sample Selection page of the wizard, cloning a few samples similar to your setup and understanding the sources and headers that are involved in that functionality.April 27, 2020 at 17:01 #27964
I’m trying to add the SPI slave feature in a NRF52840 device through the visualGDB Embedded Frameworks Window, but the only framework in the list is the “Fast Semihosting and Embedded Profiler”. How can I add make the SDK features appear in this window?April 27, 2020 at 21:37 #27967
Most likely, you have converted the project to a stand-alone one, losing the ability to edit the frameworks. You can recheck it on the first page of VisualGDB Project Properties. If it shows the list of GCC flags rather than a list of devices, it is a stand-alone project that only includes a snapshot of a specific BSP configuration and cannot be automatically configured further.April 29, 2020 at 00:09 #27987
I’m attaching a screenshot. So, this was converted to a stand-alone project, right?
Attachments:You must be logged in to view attached files.April 29, 2020 at 00:31 #27989
Yes, this is correct.
You must be logged in to reply to this topic.