Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

NiMc_1688136
Contributor II

Is it possible to set the application Major/Minor version numbers from a file, such as a header, versus defining it in the build target?

I want to go from this build target

Quickprojects.OTA_Test-QuicksilverEval-FreeRTOS-LwIP ota2_image APP_VERSION_FOR_OTA2_MAJOR=1 APP_VERSION_FOR_OTA2_MINOR=2

to

Quickprojects.OTA_Test-QuicksilverEval-FreeRTOS-LwIP ota2_image

and add a header file similar to this

version.h

#define APP_VERSION_FOR_OTA2_MAJOR     1

#define APP_VERSION_FOR_OTA2_MINOR      2

0 Likes
1 Solution
GauravS_31
Moderator
Moderator

The WICED build system would take values from the makefile wiced_apps.mk and not from .h or .c files. In your case, the .cfg file took the default version values set in wiced_apps.mk. My bad. The major and minor versions are saved in application DCT to allow OTA2 version check during update.

View solution in original post

0 Likes
5 Replies