[fpc-pascal] Variable alignment in arm-embedded

alrieckert anton at riecktron.co.za
Wed Jun 13 07:01:37 CEST 2012


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

http://free-pascal-general.1045716.n5.nabble.com/file/n5710034/Bare2.tar.gz
Bare2.tar.gz 
http://free-pascal-general.1045716.n5.nabble.com/file/n5710034/test.tar.gz
test.tar.gz 

--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Variable-alignment-in-arm-embedded-tp5709962p5710034.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120612/2ea26ae1/attachment.html>


More information about the fpc-pascal mailing list