Hi,
- I have nRF51822 DK with (s110_nrf51822_7.0.0, nRF51 SDK_v6.1.0.0) and when i try to run the project in IAR 7.20.2 i receive an error.
2 ) My icf file
- Error after i added "--drv_vector_table_base=0x0" it is not starts from main.
Hi,
2 ) My icf file
The softdevice will specify base addresses for CODE and RAM in the SoftDevice resource requirements section of the specification. These need to be reflected in the linker control file (.icf) in ICFEDIT_intvec_start__, ICFEDIT_region_ROM_start__ and ICFEDIT_region_RAM_start__.
You'll also want to add --drv_vector_table_base=0x0 to the Extra Options tab of the project options Debugger setup, as described here.
Hope this helps, Matt
Hi max, I'm not sure why this isn't working for you, your .icf looks correct. I just verified for myself by going through the following steps on a PCA10004 (nRF51822):
I left the J-Link/J-Trace settings as they were, except for enabling Log communication in the Connection tab. After doing a Rebuild All I am able to successfully Download and Debug:
The Go (->->->) button starts application execution, I can connect using the Master Control Panel app on my android phone. Here is ble_app_hrs.zip from my nrf51_sdk_v6_1_0_b2ec2e6/nrf51822/Board/nrf6310/s110/ for your reference.
Again, I hope this helps.
Best Regards, Matt