Create custom *.bin file name

Stipa88
Posts: 20
Joined: Mon May 09, 2022 12:26 pm

Create custom *.bin file name

Postby Stipa88 » Sat Nov 09, 2024 8:42 pm

Hello everyone.

How to use Cmake commands (or some other way) to create your own custom named *.bin file.

I defined the variables inside CmakeList.tx:

Code: Select all

set(application_name "Device_Test")		
set(application_version "1.0")

set(MY_PROJECT_VER "${application_version}")
set(MY_PROJECT_NAME "${application_name}")
After successful compilation, I want to create a bin file, e.g. MY_PROJECT_NAME_MY_PROJECT_VER.bin

Tnx

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: Create custom *.bin file name

Postby username » Mon Nov 11, 2024 12:01 am

In mine i just have say this and it creates test.bin.
project(test)

ESP_adokitkat
Posts: 52
Joined: Thu Jun 22, 2023 12:50 pm

Re: Create custom *.bin file name

Postby ESP_adokitkat » Sat Nov 16, 2024 5:24 pm

In you project folder there is CMakeLists.txt in the root of the folder, where it says something like

Code: Select all

# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(hello_world)
You have to modify the `project(...)` line to set the name - then the factory partition binary will share the same name.

Who is online

Users browsing this forum: Bing [Bot], jtroncin21 and 89 guests