merged.hex doesn't generated with Clion

Hi,

i've setuped Clion to build my porject. I've followed this link. Everything works i'm able to build for my custom board, but in zephyr folder I d'ont see merged.hex file. Is there a specific command to add to build merged.hex ?

[0/85] Performing build step for 'tfm'
[23/27] Linking C executable bin/tfm_s.axf
Memory region         Used Size  Region Size  %age Used
           FLASH:       32096 B        32 KB     97.95%
             RAM:       10416 B        32 KB     31.79%
[27/27] Linking C static library secure_fw/libtfm_s_veneers.a
[80/80] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       68568 B       992 KB      6.75%
             RAM:       33216 B     211608 B     15.70%
        IDT_LIST:          0 GB        32 KB      0.00%

Build finished

Compare to VsCode I do'nt have [12/12] Generating zephyr/merged.hex in my build and nothing present in zephyr folder.

I only have theses files

I tried to flash zephyr.hex instead but nothing happened when I reset my board. With VsCode I've always flashed merged.hex file

Parents
  • Hi,

     

    It looks like you are in the build/application-name/zephyr folder, while the merged.hex should reside in the root of the build/ folder.

     

    Kind regards,

    Håkon

  • Hi,

    I've already look in all my cmake-build-debugnrf folder but I didn't find any merged.hex file.

    I can see some merged.hex name in build.ninja example:

    # Utility command for merged_hex
    
    build merged_hex: phony CMakeFiles/merged_hex zephyr/merged.hex zephyr/tfm_nonsecure.hex zephyr/tfm_secure.hex tfm_nonsecure_hex tfm_secure_hex zephyr/zephyr.elf
    ....
    
    build CMakeFiles/merged_hex: phony zephyr/merged.hex 
    ....
    DESC = Generating zephyr/merged.hex
    ....
    
    

    But merged.hex file is impossible to find.. I can also see some zephyr/tfm_merged.hex and I can find this file in zephyr/ folder...

Reply
  • Hi,

    I've already look in all my cmake-build-debugnrf folder but I didn't find any merged.hex file.

    I can see some merged.hex name in build.ninja example:

    # Utility command for merged_hex
    
    build merged_hex: phony CMakeFiles/merged_hex zephyr/merged.hex zephyr/tfm_nonsecure.hex zephyr/tfm_secure.hex tfm_nonsecure_hex tfm_secure_hex zephyr/zephyr.elf
    ....
    
    build CMakeFiles/merged_hex: phony zephyr/merged.hex 
    ....
    DESC = Generating zephyr/merged.hex
    ....
    
    

    But merged.hex file is impossible to find.. I can also see some zephyr/tfm_merged.hex and I can find this file in zephyr/ folder...

Children
  • simon884 said:
    But merged.hex file is impossible to find.. I can also see some zephyr/tfm_merged.hex and I can find this file in zephyr/ folder...

    Here's how a build looks on my side:

    $ cd samples/cellular/at_client
    $ find . -name "*.hex"
    ./build/at_client/zephyr/tfm_merged.hex
    ./build/at_client/zephyr/zephyr.hex
    ./build/at_client/tfm/bin/tfm_s.hex
    ./build/at_client/tfm/api_ns/bin/tfm_s.hex
    ./build/merged.hex

     

    Are you certain that you're in the right folder? Please share the full build log.

     

    Kind regards,

    Håkon

Related