Recent

Author Topic: For success of Pascal definition files für Bluepill (STM32F103C8) and Atmega 32  (Read 1255 times)

coradi

  • Jr. Member
  • **
  • Posts: 94
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;-)
« Last Edit: February 01, 2021, 06:02:05 pm by coradi »
Amstrad Schneider CPC 6128
Wind XP / 7 / 10

winni

  • Hero Member
  • *****
  • Posts: 2419
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

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1475
  • Former Delphi 1-7, 10.2 user
MikroElektronika 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 :)
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r65182 FPC 3.3.1 r49223 macOS 11.4 aarch64 Xcode 12.4
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

coradi

  • Jr. Member
  • **
  • Posts: 94
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
Amstrad Schneider CPC 6128
Wind XP / 7 / 10

PascalDragon

  • Hero Member
  • *****
  • Posts: 3068
  • Compiler Developer
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 gained more support for it recently.

Or what do you mean with a “definitions file”?

kupferstecher

  • Sr. Member
  • ****
  • Posts: 437
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).

 

TinyPortal © 2005-2018