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

How to fix Keil uVision Device error?

When I change the target from nrf51422 in the SDK into nrf51822 there is this error in Keil uVision Project window.

Device Error

I can't find a way to remove the files in red warning.

arm_startup_nrf51.s
system_nrf51.c

Please advice if I need to edit those two new files for nrf51822 since the example is for nrf51422.

Parents
  • The red circle with a white horizontal line in it is not an error, it means that the file is excluded from target and linkage. See this for more information.

    Edit: It is a bit of a hassle:

    In Keil: Right click Device and select Options for Component Class 'Device', then click Remove

    Then delete the RTE folder in the project folder.

    In Keil: Click Manage Run-Time Environment, expand Device, and check Startup.

  • I am using SDK 12.1.0. I copied the PCA10028 nRF51422 to a new folder named blenano which uses nRF51822. So, to compile my SDK example file I set the device to nRF51822_xxac in "options for target". Your 3 steps however works well with SDK10, SDK11,SDK12.1 on PCA10028 board!! So, there must be some settings that still calls out those nrf51422 file even though I have changed the device to nRF51822.I have set Asm: Misc Controls: -DNRF51822,-DBOARD_CUSTOM Asm & C/C++: Define : NRF51822 BOARD_CUSTOM

Reply
  • I am using SDK 12.1.0. I copied the PCA10028 nRF51422 to a new folder named blenano which uses nRF51822. So, to compile my SDK example file I set the device to nRF51822_xxac in "options for target". Your 3 steps however works well with SDK10, SDK11,SDK12.1 on PCA10028 board!! So, there must be some settings that still calls out those nrf51422 file even though I have changed the device to nRF51822.I have set Asm: Misc Controls: -DNRF51822,-DBOARD_CUSTOM Asm & C/C++: Define : NRF51822 BOARD_CUSTOM

Children
No Data
Related