Koenraad Lelong wrote
I'm making progress with my embedded application. Learning to use the
processor is not easy compared to 8 bit processors.
These processors are powerful and cheaper than 8 bit micros :)
Koenraad Lelong wrote
I found a bug in Anton's library though:
in
Koenraad Lelong-2 wrote
Yes, I got interrupts working now.
It took some experimenting though. Or maybe I'm missing something. To
get the interrupt procedure on the right place in the vector table you
need to add an offset to the constant :
procedure Exti0_Proc; interrupt EXTI0_IRQn +
Koenraad Lelong-2 wrote
About that DFU-loader, do you have to do anything special to be able to
use fpc, besides modifying your start-address ? Any links to read more
about it ?
Now I'm using jtag to flash and debug my software.
Hi Koenraad,
I'm using DfuSe USB device firmware upgrade
Tomas Hajny-2 wrote
Sorry for a possibly stupid question, but is this offset (conceptionally)
comparable to the -WB option used for some other targets? If so, it might
make sense to extend it also for your case...
Hi Tomas,
Not a stupid question at all. To be totally honest, I have no
Florian Klämpfl wrote
Better submit a bug tracker entry. This way it cannot get lost.
Hi Florian,
Thank you, I do have an open bug on this issue here
http://bugs.freepascal.org/view.php?id=22146 Freepascal Bug ID 22146
--
Regards
Anton Rieckert
--
View this message in context:
.
For example:
There are 3 patches you need to apply to your compiler. I'll try to submit
the patches to the Freepascal mailing list and hopefully someone will accept
them, but in the mean time you can find them here.
https://github.com/alrieckert/freepascal/commit
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
alrieckert wrote
I'll have a look at why the interrupt procedures needs to be separate and
get back to you.
Ok, the compiler was only scanning the used source files for interrupt
procedures and not the main file as well. I've added the necessary code to
ncgutil.pas that will allow
alrieckert wrote
Please just make sure about your starting address for the flash. I'm using
the STM32F103CBT6 and the start address is 0x0800 and not 0x080
I've just verified it. The starting address for the flash should be
0x0800. The reason for mine being 0x08003000