Carl-Daniel Hailfinger wrote:
IIRC we now have the VSA sources available, so we should be able to build a custom VSA.
Yes, the source is out but it hasn't been ported to gcc so you don't want to do that. Just use the (nrv2b compressed) compiled binary.
For storing the VSA in the LAR, I have to know a few things.
- Is the VSA a blob with no header and/or signature?
It would need a elf/lar header.
- Do we have to load it at a specific address?
I don't think so but below 1MB to be safe.
- How do we determine the entry point?
- What's the exact calling convention?
Same as used in v2
If at all possible, I'd like to handle the VSA like any ELF file in the LAR, that means parsing and compressing it for storage in flash, then uncompressing and loading it to a specified address and executing it at the specified entry point.
I agree, this is exactly how it should work.
Marc