I am trying to use ARM GCC in macOSX and successfully generated .HEX file with the most simple project: the blinky project without softdevice. After setting up the project, the compilation works fine, and I am able to load it into the chip. but that hex file not working.So I tried to load precompiled hex file for the same project and that hex file works fine, I am compiling using arm-gcc version 8.2.1 and makefiles
Any ideas why compiled one is not working?
Stian is out of office, so I have had a look at this.
I tried to program an nRF52 DK (pca10040) with the hex file that you provided, and it works flawlessly. I used the following commands:
nrfjprog -enrfjprog --program 6038.nrf52832_xxaa.hexnrfjprog -r
The -e is for erasing the board, and the -r is for resetting it. Can you try the same procedure?
Hi Tesc,I tried the same command but not working, flashing this hex file but no led blink
I am using nrf52 DK
So the precompiled version works, but not the version that you provided as an attachment here? That sounds really strange. What exact precompiled hex file is working?
We are now entering Easter Holiday in Norway, and we will be back in office on Tuesday. I will reassign this case to Stian, so that he may help you if you haven't gotten any solution from the community by then.
Hi Terje,(Happy Easter) I am using blinky example, so pre-compiled works fine and compiled with gcc arm doesn't work for me