I'm posting this here, and privately to you MeiHui FAN, sorry for the spam....
Hi, I saw that you were able to use GCC to create a hex file that runs on the nrf51822 mbed.
I'm writing an mbed exporter for GCC ARM for nrf51822.
You can view the pull request here: https://github.com/mbedmicro/mbed/pull/337
I'm able to successfully export, run make, generate a hex file, and concatenate the hex file with the s110 softdevice, but when I run the hex file on the nrf51822 mbed it does not do anything. It looks like you were able to successfully solve this problem.
So I have a few questions for you:
1. Where did you see this openocd nrf51822 patch? URLs and specific files would be most helpful
2. What did you do to change the GCC generated hex to be compatible with CMSIS-DAP? Exact command line used or URL to documentation would be great.
3. Any other information that you have that you think could help me to solve this problem would be very much appreciated.
In the pull request you can see all the steps I have taken, and your help in getting the hex file to run correctly would be invaluable.
Thanks for your time.
JC
I compiled the blinky_example(use GCC toolchain) and program the hex file by the CMIS-DAP interface, but the LEDs are not blinky.