[fpc-devel] Need an elegant way to preset a specific memory area in elf files

Michael Ring mail at michael-ring.org
Wed Apr 23 10:34:53 CEST 2014


Thanks,
but does not solve the problem, it's not about reading the data, it's 
about defining the data so that it is included in the elf file in the 
correct section so that the microcontroller is programmed with the 
values when the elf file is uploaded to the microcontroller.

Michael

Am 23.04.14 10:25, schrieb Michael Schnell:
> I would simply create a record type and a pointer type to same and 
> then typecast an integer constant (=address) onto the pointer. Now you 
> can access the values by normal dereferencing.
>
> -Michael
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>




More information about the fpc-devel mailing list