hex file size with west build

I am using openOCD for flashing hex files to an nrf51 target. I have got the flashing process working.

However, I seem to be running out of space, the nrf51 has 256kB flash memory and the west build zephyr.hex output on the hci_uart sample for example is 419kB. The blinky example zephyr.hex size is around 48kB.

Should I not be flashing the zephyr.hex files using openOCD? I have seen mentions of a merged.hex online, however I don't see merged.hex anymore with the most recent west build commands.

Thanks!

Parents
  • Hi SP123, 

    Could you let me know which NCS/zephyr version are you using ? 
    I tried with NCS v1.9.1 (zephyr v2.7.99-ncs1-1) and can see this when compiling hci_uart sample: 

    Please be noted that nRF51 is not supported on nRF Connect SDK. We recommend to use nRF52 or nRF53 for new development. 
    If you want to use nRF51 , nRF5 SDK is recommended. 


    You can use nRF51 with Zephyr if you want, but you will be on your own. 

Reply
  • Hi SP123, 

    Could you let me know which NCS/zephyr version are you using ? 
    I tried with NCS v1.9.1 (zephyr v2.7.99-ncs1-1) and can see this when compiling hci_uart sample: 

    Please be noted that nRF51 is not supported on nRF Connect SDK. We recommend to use nRF52 or nRF53 for new development. 
    If you want to use nRF51 , nRF5 SDK is recommended. 


    You can use nRF51 with Zephyr if you want, but you will be on your own. 

Children
Related