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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to