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

How to set up a project with Eclipse for the nrf51422 ?

Hi,

Following the AN 29 "nRF51 Development with GCC and Eclipse", I cannot import any project on Eclipse:

Indeed in the folder C:\Nordic Semiconductor\nRF51 SDK_v4.2.0.25045\Nordic\nrf51422\Board\nrf6310\blinky_example\gcc (or whatever other example of the nrf51422), i have only 2 .bat files "build.bat" and "flash.bat", plus the makefile.

Where can I find project files for nrf51422 ?

Thanks,

Pierre

Parents
  • We don't currently have any Eclipse projects set up for use with the nRF51422, only for nRF51822. However, this is most definitely possible to get going if you are ok with doing some changes manually.

    First, you should copy the nrf_svc.h header file from the nrf51822/Include/ble/softdevice to the nrf51422/Include/ant/softdevice folder. Then you need to include this file in all header files containing SVC function declarations, and change all lines from the format

    
    uint32_t SVCALL(SVC_ANT_STACK_INIT) sd_ant_stack_reset (void);
    
    

    to

    
    SVCALL(SVC_ANT_STACK_INIT, uint32_t, sd_ant_stack_reset (void));
    
    

    After doing this, you should be able to just to minor modifications to the makefiles used for the ble_app_hrs to also make them work with the ANT examples. The Eclipse project you'll have to build from scratch, but if you take a look a the previous version of nAN-29, it includes a little information that might be helpful. You can find it by clicking the version number in the download table, or this direct link.

Reply
  • We don't currently have any Eclipse projects set up for use with the nRF51422, only for nRF51822. However, this is most definitely possible to get going if you are ok with doing some changes manually.

    First, you should copy the nrf_svc.h header file from the nrf51822/Include/ble/softdevice to the nrf51422/Include/ant/softdevice folder. Then you need to include this file in all header files containing SVC function declarations, and change all lines from the format

    
    uint32_t SVCALL(SVC_ANT_STACK_INIT) sd_ant_stack_reset (void);
    
    

    to

    
    SVCALL(SVC_ANT_STACK_INIT, uint32_t, sd_ant_stack_reset (void));
    
    

    After doing this, you should be able to just to minor modifications to the makefiles used for the ble_app_hrs to also make them work with the ANT examples. The Eclipse project you'll have to build from scratch, but if you take a look a the previous version of nAN-29, it includes a little information that might be helpful. You can find it by clicking the version number in the download table, or this direct link.

Children
No Data
Related