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

How to create a mesh bootloader project for Segger

Using a clean mesh sdk 3.2.0, I created a build directory inside the folder where I extracted the mesh sdk to.

Then, inside that directory, I used CMAKE with the following options:

cmake -G Ninja -DPLATFORM=nrf52840_xxAA -DGENERATE_SES_PROJECTS=ON -DBUILD_BOOTLOADER=ON -DCMAKE_BUILD_TYPE=Debug -DBOOTLOADER_DEBUG_ENABLE=ON -DTOOLCHAIN=gccarmemb ..

But this does not do anything to create a project file, despite the option -DGENERATE_SES_PROJECTS=ON being passed. I have been looking at the CMakeLists.txt files of the mesh sdk examples and all of them had a add_ses_project(${target}) near the end, so I went to the CMakeLists.txt file in the mesh/bootloader folder of the sdk and added add_ses_project(${__target_serial}) to the end of the file.

I ran the command again and now the project is created but CMake outputs some errors:

CMake Error at CMake/GenerateSESProject.cmake:23 (get_property):
  get_property could not find TARGET rtt_nrf52840_xxAA.  Perhaps it has not
  yet been created.
Call Stack (most recent call first):
  mesh/bootloader/CMakeLists.txt:179 (add_ses_project)


CMake Error at CMake/GenerateSESProject.cmake:22 (get_property):
  get_property could not find TARGET rtt_nrf52840_xxAA.  Perhaps it has not
  yet been created.
Call Stack (most recent call first):
  mesh/bootloader/CMakeLists.txt:179 (add_ses_project)


CMake Error at CMake/GenerateSESProject.cmake:23 (get_property):
  get_property could not find TARGET rtt_nrf52840_xxAA.  Perhaps it has not
  yet been created.
Call Stack (most recent call first):
  mesh/bootloader/CMakeLists.txt:179 (add_ses_project)

I suspect that the RTT will have some problems running with this generated project, what can I do? Thank you

Parents Reply
  • Thank you for your answer Joakim.

    I have looked at that post before so that I could activate the RTT logs on the bootloader side, together with the app RTT logs, but I think that post does not help me to create a mesh bootloader project for Segger.

    From what I understood, the mesh bootloader folder has to have a CMakeLists.txt file that includes the instructions for creating a Segger project the same way the example folders have.

    This is where I would like some help if possible.

Children
Related