- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We use some Microchip PIC and we found very convenient to check the program version directly into EEPROM (For exemple our program write 16.0A directly into EEPROM just after his first use). It's really commodious for the after sale service, because we can program the same device with multiple versions.
I'm new to PSOC 4 and i just don't find a way to do the same thing with (by using the MiniProg3 programmer).
What i want is a solution to know the downloaded program version inside the PSOC4.
Thanks for your answers.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum.
Try a
const uin8 MajorVersion = 1;
const uint8 MinorVersion = 0x04;
or similar. Both of these values will be allocated in flash.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum.
Try a
const uin8 MajorVersion = 1;
const uint8 MinorVersion = 0x04;
or similar. Both of these values will be allocated in flash.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!
Hm ok, but it's not clear for me how fix the flash memory location inside the program, i dislike the way to do it through linker.. And i m not sure to be sure that this will not be override.
I have a little to much my mind PIC oriented i think 😕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Imho there is no need to fix the location of the program version to a defined address. The version is fixed to the name of a variable or struct or whatever you choose.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then i don't see how i can read it with a Pickit 3 programmer 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See here : http://stackoverflow.com/questions/682697/fixed-address-variable-in-c
You can attach with Miniprog3 and inspect memory locations.
Bob