2023-04-29 07:43 AM
Solved! Go to Solution.
2023-04-30 07:19 AM
If you're doing functional safety likely going to need to understand MCU and surrounding tools, and implement your own methods.
S19 with be Motorola HEX format. Tools like SRecords exist, but the formats are not particularly complicated. This and object files should be covered at college level.
I think SRecords has CRC / Checksum options, IAR tool chain had some too. Don't use STM8/Cosmic so don't know specifics, would imagine there's docs and tutorials. Materials don't have to be tool specific if done as a post-link, user or batch file step.
If you can read memory via a pointer you should be able to implement target side code to sum, or CRC that content, and confirm integrity. ie data built on host matches materials running on target.
Writing packaging and signing tools should be with the scope of team responsibilities.
2023-04-29 07:57 AM
In the worst case you'd likely need to do as a post-link step over .BIN or .HEX content
2023-04-30 05:44 AM
i have an *.s19 from the STVD IDE ? is it something i should use ?
or is there a standard procedure to accomplish this check in STM8 ?
2023-04-30 07:19 AM
If you're doing functional safety likely going to need to understand MCU and surrounding tools, and implement your own methods.
S19 with be Motorola HEX format. Tools like SRecords exist, but the formats are not particularly complicated. This and object files should be covered at college level.
I think SRecords has CRC / Checksum options, IAR tool chain had some too. Don't use STM8/Cosmic so don't know specifics, would imagine there's docs and tutorials. Materials don't have to be tool specific if done as a post-link, user or batch file step.
If you can read memory via a pointer you should be able to implement target side code to sum, or CRC that content, and confirm integrity. ie data built on host matches materials running on target.
Writing packaging and signing tools should be with the scope of team responsibilities.
2023-04-30 07:41 AM
https://community.st.com/s/question/0D50X00009XkZBHSA3/crc-ccitt-16-bit-for-stm8s207
Options in the linker settings, check docs on "-ck" option and others
https://community.st.com/s/question/0D50X00009XkY5sSAF/stm8-blockcksum161
2023-04-30
08:19 AM
- last edited on
2023-08-14
04:44 AM
by
Laurids_PETERSE
https://cosmic-software.com/stm8.php
2023-04-30 10:23 PM
@Community member thanks for your inputs. I will try the cosmic checksum feature on the STM8AF52XX MCU & post an update over here.