EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

FIRMWARE VERSION INFOMATION

Started by "yan...@omniverter.com [rabbit-semi]" September 2, 2016
Hi:

We can use fiProgramInfo to get firmware information, but it looks we only get a read only copy. the frimware information, there are some user define parts, is it possible modify user define parts?
What do you want to modify?

If you look at the function help for firmware_info_t (in Dynamic C, hit
Ctrl-H with the cursor on that term) you'll see that you have control over
the following:

program_name is set by the project macro _FIRMWARE_NAME_

version is set by the project macro _FIRMWARE_VERSION_

build_timestamp is set by the project macro _FIRMWARE_TIMESTAMP_

Note that _FIRMWARE_TIMESTAMP_ just overrides use of the current time.
Setting it to a fixed value allows for builds that result in identical
binaries.

-Tom
On Sep 2, 2016, at 1:56 PM, y...@omniverter.com
[rabbit-semi] wrote:

We can use fiProgramInfo to get firmware information, but it looks we only
get a read only copy. the frimware information, there are some user define
parts, is it possible modify user define parts?
Hello, Tom:

Is it possible to change the user defined part of firmware version
information in the run-time?

Thanks a lot.

Regards,

Yang

From: r... [mailto:r...]
Sent: Friday, September 2, 2016 5:50 PM
To: r...
Subject: Re: [rabbit-semi] FIRMWARE VERSION INFOMATION

What do you want to modify?

If you look at the function help for firmware_info_t (in Dynamic C, hit
Ctrl-H with the cursor on that term) you'll see that you have control over
the following:

program_name is set by the project macro _FIRMWARE_NAME_

version is set by the project macro _FIRMWARE_VERSION_

build_timestamp is set by the project macro _FIRMWARE_TIMESTAMP_

Note that _FIRMWARE_TIMESTAMP_ just overrides use of the current time.
Setting it to a fixed value allows for builds that result in identical
binaries.

-Tom

On Sep 2, 2016, at 1:56 PM, y...@omniverter.com
[rabbit-semi] wrote:
We can use fiProgramInfo to get firmware information, but it looks we only
get a read only copy. the frimware information, there are some user define
parts, is it possible modify user defi! ne parts?
I'm not sure I understand your question.

You should be setting those macros in the "Defines" box of "Project Options". The name, version and build date of the firmware are embedded into the first 1KB of the firmware image to uniquely identify it. You cannot modify them, and shouldn't have a need to do so.

If you make use of the Remote Program Update library, it looks at the firmware info structure of the running program and a downloaded firmware image to compare version numbers and verify that the build's board type matches the current hardware before performing an install.

-Tom
On Sep 3, 2016, at 7:20 AM, 'Yang Hong' y...@omniverter.com [rabbit-semi] wrote:

> Is it possible to change the user defined part of firmware version information in the run-time?

The 2024 Embedded Online Conference