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

S130 demo app for nRF51822 development kit

Hai, I am using nRF51822 development kit. I want to test the demo app for S130 soft device using this. But i could find that the demo app is for the evaluation kit. I am using Keil v4.74. Can I run the same code using the nRF51822 development kit? If no, what all modifications have to be done? Thanks in advance

  • If you have a look in the board_config.h file that is included in main.c, you can select the development kit by defining the right BOARD_TYPE. It should be BOARD_PCA10005

    #define BOARD_TYPE BOARD_PCA10005
    

    Go to 'Project -> Options for target -> Device' and select nRF51822_xxAA under 'Nordic Semiconductor' in the list.

    Go to the Target fan and use IROM1 Start: 0x1C000, Size: 0x24000 and IRAM1 Start: 0x20002800, Size: 0x1800.

    You may also need to go to the 'Debug' fan, select 'Jlink / J-TRACE Cortex' in "Use:"-dropdown list.

    Push 'Settings' next to it, select the right debugger (SN) and make sure 'Port:' is set to SW

  • Thank you for your reply. I modified the BOARD_TYPE as BOARD_PCA10005. But while compliling it is showing error like "Argument -D__EVAL is not permitted for option device ". What is this error? How to solve this? Waiting for a reply. Thanks in advance.

  • Go to 'Project -> Options for target -> Device' and select nRF51822_xxAA under 'Nordic Semiconductor' in the list.

    Go to the Target fan and use IROM1 Start: 0x1C000, Size: 0x24000 and IRAM1 Start: 0x20002800, Size: 0x1800.

    Did that change anything?

  • I changed the target fan. But now new error came showing"No Cortex M0 device found in the JTAG chain. Please check the JTAG cable and connected devoces". I downloaded the hex file of the application directly from nRF studio. Now the program is running. Is it a good way of doing like this? Otherwise can you please suggest any method to solve my problem.

  • You need to go to the 'Debug' fan in options, select 'Jlink / J-TRACE Cortex' in "Use:" dropdown list. Push 'Settings' next to it, select the right debugger (SN) and make sure 'Port:' is set to SW

Related