I am doing rapid development for a project, using the nRF52840 DK. Two key features are USB and BLE central role.
I started with the usb_cdc_acm project and am merging in ble_app_blinky_c.
I added the following information from ble_app_blinky_c:
I get build errors. It is complaining that NRF_SUCCESS is undefined, and I determined that there is more than one file named nrf_error.h and they are different!
Do I need to change the directory order in the preprocessor include folder list?
Is there something else I am missing?
Yes, the SDK development is getting a little unruly! Depending on how far back you started the development and how far you have ported forward things can get lost. There are two different systems nrf and nrfx. The latest SDK 15.3 the nrf structure point its defines to the defines of the nrfx. So, if you started development in 14 and port into 15.3 my guess is that your nrf sturcute is not new enough. And there is a whole other beast trying to get backward compatibility, wheesh!
I would suggest starting in the 15.3 and reworking any code that has started earlier, but even this approach utilizes so much nrf structure, uh its a mess!
your list of 4. seems like a fairly good start to merging your projects.
Sorry, may not be helpful, but I was able to vent a little!
Ken A said:I started with the usb_cdc_acm project and am merging in ble_app_blinky_c.
I would suggest starting with the BLE project (as that has the SoftDevice, etc) and merging other stuff into it.
Please note that in SDK v15.x we have an example of USBD + BLE at \examples\peripheral\usbd_ble_uart
Is there something wrong with that example?
I load it and nothing happens. I rebuild the solution in debug mode, build and debug, and it does not break on main or any statement inside main(). NRF_LOG_INFO() is never executed.
Segger Embedded Studio 4.12, build
GNU toolchain 7-2018-q2
nRF52840 DK with PCA10056 1.1.0/2019.6/683776010
Either the board is broken, or I loaded the wrong firmware. It comes up in nRFGo Studio as:
nRF52 development dongles/Segger 683776010
I have a nRF52 board and it comes up as a nRF52 development board.