Hello,
We are trying to use the debugger tool on Keil for the nRF51 DK, But we are having a really hard time to figure out how to make it work.
Do you guys have a tutorial that can help us to configure and use the debugger on Keil?
Thank you!
Hello,
We are trying to use the debugger tool on Keil for the nRF51 DK, But we are having a really hard time to figure out how to make it work.
Do you guys have a tutorial that can help us to configure and use the debugger on Keil?
Thank you!
I do not believe Nordic have a detailed guide for debugging using Keil, but the Keil documentation covers it extensively. The debugger should work out of the box with all nRF5 devices once you have installed the latest NordicSemiconductor::nRF_DeviceFamilyPack.
Thanks for the support Einar,
But we are having difficulties regarding the ROM and RAM configurations.
Seems like these configurations have to made for every application.
Is that right? or there is any way to skip this configuration by selecting an automatic configuration approach?
Hi,
The ROM and RAM configuration is both chip specific (start address and size) and project specific, so it is correct that the configuration has to be adjusted for every project. There is no automatic configuration, but I recommend starting off with a SDK example project to get this done for you. You should pick a example project that is as similar to your project as possible, using the same SoftDevice.
Looking at the ble_app_beacon example project for Keil from SDK 12.3 as an example, you can see the configuration if you go to Project -> Options for Target ... There you should set the chip variant under the Device tab:
And the ROM and RAM settings under the Target tab:
,
IROM1 start is the applications start address in flash. Assuming you use a SoftDevice, the IROM1 start address should be as specified in the SoftDevice specification and is different for each SoftDevice version. If you are not using a SoftDevice (no BLE), this is typically 0x0. The size is the remaining flash space, less any space occupied in the end of the flash such as persistent flash storage. This will be application specific.
The IRAM1 Start and Size configures where the application RAM is located and how large it is. This depend on the SoftDevice configuration. If you enable logging the SDK examples the log will inform you of the correct RAM start address and size.
Thank you very much for the quick and helpful response!
We are going to try these advice.
Thank you very much for the quick and helpful response!
We are going to try these advice.