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

How can the code "create_hex" work in bootloader's cmakelists?

From the cmakelists of bootloader in Meshv320src, I found the code "create_hex" but this code cannot found in CMake's document. How can it work to generate the hex file?

Parents Reply
  • Hi:

    Thank you for your response. I think I made a mistake that I only do cmake in the bootloader folder

    I read the Installing the toolchain again and install Doxygen,Graphviz,Mscgen. This time I do cmake in folder : nrf5_SDK_for_Mesh_v3.0.0_src and follow the step in  Installing the toolchain and Building the mesh stack and examples. I put the nrf5_SDK_for _Mesh and nRF5_SDK_15.2.0_9412b96 in the same folder. This time I still use the original nRF5_SDK and nrf5_SDK_for _Mesh files to test.

    However, I input the command: 

    build$ cmake -G Ninja ..

      and then got the result in the following screenshot:

    I did not see the warning that the nRF5 SDK is not found and when I use the command 

    build$ ninja nRF5_SDK

    I got the following response:

    ninja: error: unknown  target 'nRF5_SDK'

    I thought it may be not important because I had put nRF5_SDK_15.2.0_9412b96 in the correct path and I continued to work. Then I used the command shown in Building the mesh stack and examples and specify the required TOOLCHAIN, PLATFORM, SOFTDEVICE and BOARD name to CMake. I also set the CMAKE_BUILD_TYPE as MinSizeRel.

    After that, I input the command:

    build$ ninja

    then it failed. The only thing I got is the empty folders inside /build/ .

    What's wrong with my step? 

Children
No Data
Related