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

Ble nano Arm gcc hex format

I am using em::blocks and arm gcc with ble nano from readbear labs. I built the template example but it is not working. The output hex is the same as if i had built it with eclipse and used mergehex except for the fact that it uses Extended Segment Address (i16HEX format). When I edit the hex output using Extended Linear Address (i32HEX format) it is working fine.

Is there any option for the compiler and objcopy to output i32hex format? If not is there any option to tweak the mk20 donggle to work with the i16hex?

PS: I figured out that the format change when I use eclipse and arm gcc is being implemented in the mergehex.exe

Thanks in advance

Parents Reply
  • Ι would not say it is sorted out yet but i have made some steps forward. Yes it is really weird indeed. I have not asked at redbear labs yet but I am going to. Probably it can be fixed with a couple of tweaks in the bootlader. Unfortunately I could not find the source anywhere. It's funny how I got stuck in a three party problem. Arm gcc could have an extra argument for the specific format like arm compilers, readbearlabs could have made a more flexible bootloader so it can use i16hex format and funniest of all, mergehex solves all this without even getting you suspicious.

Children
No Data
Related