Hi Koenraad,
Glad to see more people that want to make use of Freepascal for STM32.
I've had a quick look at your project and everything seems fine. The only thing I noted is that the interrupt procedures must be in a separate unit. I've changed your project and recompiled it and now it seems fine.
Please just make sure about your starting address for the flash. I'm using the STM32F103CBT6 and the start address is 0x08000000 and not 0x0800000
I'll have a look at why the interrupt procedures needs to be separate and get back to you.
I've also attached one of my sample projects that you can test with. The project will blink a LED on PortB.8 making use of the Systick timer and echo all data send to it via USART1 back making use of the USART interrupt. It also includes a large set of the STM32 StdPeripheral libraries that is ported to Pascal.
Regards
Anton
<a href="http://free-pascal-general.1045716.n5.nabble.com/file/n5710034/Bare2.tar.gz" target="_top" rel="nofollow" link="external">Bare2.tar.gz</a><a href="http://free-pascal-general.1045716.n5.nabble.com/file/n5710034/test.tar.gz" target="_top" rel="nofollow" link="external">test.tar.gz</a>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://free-pascal-general.1045716.n5.nabble.com/Variable-alignment-in-arm-embedded-tp5709962p5710034.html">Re: RE : [fpc-pascal] Variable alignment in arm-embedded</a><br/>
Sent from the <a href="http://free-pascal-general.1045716.n5.nabble.com/">Free Pascal - General mailing list archive</a> at Nabble.com.<br/>