Pre-Build Script

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pre-Build Script

543 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nkarakotas on Wed Nov 07 13:09:05 MST 2012
Hello,

I have a pre-build script incrementing/updating firmware version that is used for firmware upgrades etc. I do remote upgrades and I populate a cost string as follows:

const char MYSQL_OTA_QUERY[] = "SELECT firm_url FROM `trg`.`ota` where hardware_name='"HARDWARE"'AND firmware_version * 1>"MAJOR_STR"."MINOR_STR" ORDER BY firmware_version * 1 DESC LIMIT 1;";


I use the above so I dont need to use RAM.
I have noticed that when I change the value of MINOR_STR it doesnt update the string. If I run it a second time it successfully does it.
This isnt true for the following defines I also have, these update:
#defineMAJORxx
#define MINORxx
#define REVISIONxx

Any insight will be thankful.

Regards
0 Kudos
Reply
0 Replies