Lazarus
Miscellaneous => Suggestions => Topic started by: coradi on February 01, 2021, 05:35:02 pm
-
I think it would give Free Pascal a big boost in the uC scene if someone would provide a definitons file for the probably most used ARM STM32F103C8.
I could imagine that once there is this one file, more will come.
And besides Linux, Pascal seems to be making a comeback in the embedded area.
A good Inspiration should be the Mikroe PAscal definition files, ONLX inspiration! not copy;-)
-
And besides Linux, Pascal seems to be making a comeback in the embedded area.
Pascal was never absent in the embedded area.
For example the UCSD Pascal OS had a long (and secret) live in the British TV settop boxes since the 90ies.
Winni
-
MikroElektronika (https://www.mikroe.com) have been selling Pascal compilers fro microcontrollers for years. I've been using their PIC Pascal (and C) compilers on 8 bit, 16 bit and 32 bit Microchip PICs for the last decade. They use an old version of Delphi for their software :)
-
I use Mikroe Pascal for AVR and ARM.
But it would be so nice, if I can use Freepascal on PC and für ARM/AVR:-)
But then I want to use it, like the easy way, that Mikroe provide
Easy definition files like in Mikroe and this would be nice
-
I think it would give Free Pascal a big boost in the uC scene if someone would provide a definitons file for the probably most used ARM STM32F103C8.
The STM32F103C8 should already be supported on the arm-embedded target when using -Wpstm32f103x8 with the controller unit being rtl/embedded/arm/stm32f10x_md.pp. Additionally the Microcontroller Board Framework (https://github.com/michael-ring/mbf) gained more support for it recently (https://github.com/michael-ring/mbf/commit/83a9504bbb5f6c6a678a8e19147e38a1938d0a09).
Or what do you mean with a “definitions file”?
-
I think it would give Free Pascal a big boost in the uC scene if someone would provide a definitons file for the probably most used ARM STM32F103C8.
I could imagine that once there is this one file, more will come.
They do exist. And that for years now.
Search for "stm32f103fw.pas" and "stm32F10x_BitDefs.pas".
The first is a port of the Standard Peripheral Library, the second is a translation of the c-Header with all register bit definitions. Register definitions are part of the compiler libs (thus also available).