Hi Rolf.
There are times, particularly when bootloaders are used, when you need to access a part of flash that has not been generated by the current application. As a specific example, we may need to access a constant, e.g. bootloader version, from the main application, to see whether a bootloader needs to be updated.
There are various ways which this can be done, but they seem quite ugly to me. I am wondering whether an extension to AVRCo Pascal could simplify this. I am thinking something like
const
BootloaderVer [@$xxxx] : Word; external;
or something similar, to allow access to a constant that we are not defining. So as far as the compiler is concerned it is treated just like a constant in flash (say like a string constant) but the memory is not overwritten by the hex generated by the compiler.
Would this be difficult?
There are times, particularly when bootloaders are used, when you need to access a part of flash that has not been generated by the current application. As a specific example, we may need to access a constant, e.g. bootloader version, from the main application, to see whether a bootloader needs to be updated.
There are various ways which this can be done, but they seem quite ugly to me. I am wondering whether an extension to AVRCo Pascal could simplify this. I am thinking something like
const
BootloaderVer [@$xxxx] : Word; external;
or something similar, to allow access to a constant that we are not defining. So as far as the compiler is concerned it is treated just like a constant in flash (say like a string constant) but the memory is not overwritten by the hex generated by the compiler.
Would this be difficult?