Recent

Author Topic: I am interested in learning embedded programming in pascal  (Read 1429 times)

Packs

  • Sr. Member
  • ****
  • Posts: 276
I am interested in learning embedded programming in pascal
« on: August 19, 2024, 02:51:09 am »
I am interested in learning embedded programming in pascal.

Please guide me what all prerequisite I needed.

Please share sample video and study material

Thank

dbannon

  • Hero Member
  • *****
  • Posts: 3061
    • tomboy-ng, a rewrite of the classic Tomboy
Re: I am interested in learning embedded programming in pascal
« Reply #1 on: August 19, 2024, 02:58:24 am »
Did you look on the wiki ?  Maybe https://wiki.freepascal.org/Category:Embedded

D
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Packs

  • Sr. Member
  • ****
  • Posts: 276
Re: I am interested in learning embedded programming in pascal
« Reply #2 on: August 19, 2024, 03:07:13 am »
Yes.


Packs

  • Sr. Member
  • ****
  • Posts: 276
Re: I am interested in learning embedded programming in pascal
« Reply #3 on: August 19, 2024, 03:09:55 am »
I would like to see the pascal and raspberry pi or other embedded project live video

ccrause

  • Hero Member
  • *****
  • Posts: 942
Re: I am interested in learning embedded programming in pascal
« Reply #4 on: August 19, 2024, 07:31:42 am »
Some basic videos of AVR and ESP32 demonstrations programmed in FPC : https://www.youtube.com/@ccrause5956

Not intended to be instructional videos, but there are links to source if you want to study the Pascal code.

TRon

  • Hero Member
  • *****
  • Posts: 3234
Re: I am interested in learning embedded programming in pascal
« Reply #5 on: August 19, 2024, 09:42:30 am »
Did you look on the wiki ?  Maybe https://wiki.freepascal.org/Category:Embedded
Which reminds me, here at note 2 the wiki states "make sure you have that fpc.zip file there, FPC main Dec 2024 or later."

I assume that was a typo ?, e.g. dec 2023 (btw later is even better as both Michael and CCrause pushed some additional changes after dec. 2023)

fwiw: if you look at a specific commit at gitlab (any commit), then press the browse files link then you can see the whole tree with that commit number. The code link then allows for downloading the (complete) tree at that commit (hash). Just in case someone wants to be precise (and it did help for us when trunk did not compile anymore as long as you know a working hash).
« Last Edit: August 19, 2024, 09:49:47 am by TRon »
All software is open source (as long as you can read assembler)

ccrause

  • Hero Member
  • *****
  • Posts: 942
Re: I am interested in learning embedded programming in pascal
« Reply #6 on: August 19, 2024, 10:11:36 am »
I would like to see the pascal and raspberry pi or other embedded project live video

Not video of course, but wiki information on Raspberry Pi and Raspberry Pi Pico.

Are you looking for a beginner's guide embedded series that will teach you concepts in simple, well explained exercises?  Or do you have an idea for a project and just want some ideas on how to implement this project?

Packs

  • Sr. Member
  • ****
  • Posts: 276
Re: I am interested in learning embedded programming in pascal
« Reply #7 on: August 19, 2024, 10:43:37 am »
in pascal do I need any sdk or third party library  to communicate with raspberry pi device . 


ccrause

  • Hero Member
  • *****
  • Posts: 942
Re: I am interested in learning embedded programming in pascal
« Reply #8 on: August 19, 2024, 11:50:01 am »
in pascal do I need any sdk or third party library  to communicate with raspberry pi device .

There are several options, depending on what you mean by "communicate with raspberry pi device". In general, the wiki article on hardware access on Raspberry Pi lists several techniques and libraries that one can use in general.

UART/serial communication to/from Raspberry Pi should work with FPC's serial unit. Many people prefer Pascal components build on top of this, see this list for alternative Pascal serial components.

Packs

  • Sr. Member
  • ****
  • Posts: 276
Re: I am interested in learning embedded programming in pascal
« Reply #9 on: August 19, 2024, 01:45:00 pm »
Thanks to everyone .

My question may be silly for all experts . I have seen YouTube where developer is connected raspberry pi through USB and passing command to raspberry pi .

But I would like to know can we embed the ( pascal code or exe ) inside the device and that device should work independently .

like home automation device .

dseligo

  • Hero Member
  • *****
  • Posts: 1361
Re: I am interested in learning embedded programming in pascal
« Reply #10 on: August 19, 2024, 02:05:56 pm »
But I would like to know can we embed the ( pascal code or exe ) inside the device and that device should work independently .

like home automation device .

Yes, we can run compiled FPC code in embedded devices.

ccrause

  • Hero Member
  • *****
  • Posts: 942
Re: I am interested in learning embedded programming in pascal
« Reply #11 on: August 19, 2024, 02:10:19 pm »
I have seen YouTube where developer is connected raspberry pi through USB and passing command to raspberry pi .

But I would like to know can we embed the ( pascal code or exe ) inside the device and that device should work independently .

like home automation device .
Post a link to the video, then it will be possible to say how to do it in Pascal.

Packs

  • Sr. Member
  • ****
  • Posts: 276
Re: I am interested in learning embedded programming in pascal
« Reply #12 on: August 19, 2024, 07:19:36 pm »
Please share the video . it will really help me .

TRon

  • Hero Member
  • *****
  • Posts: 3234
Re: I am interested in learning embedded programming in pascal
« Reply #13 on: August 20, 2024, 01:18:40 pm »
My question may be silly for all experts . I have seen YouTube where developer is connected raspberry pi through USB and passing command to raspberry pi .

Post a link to the video, then it will be possible to say how to do it in Pascal.

Please share the video . it will really help me .

* TRon zips down another bottle of beer and reaches for the popcorn and sings "The wheels on the bus go round and round, round and round, round and round"

Sorry, as I couldn't resist  :)

Dear prakash I understand there must be some kind of language barrier but if you wrote that you saw a video of someone connecting a pi though USB and passing commands then please share that video where we can see that this was done.

You seem to keep referring to raspberry pi as a single entity but there are many different models. Programming for a raspberry pi 5 is something completely different than programming for a pico. And there are many different Pi models in between that all require their own approach. Therefor any guidance on what you are trying to accomplish will help us in better determining what it is that you actually seek (thus also a video that you saw will be able to help us).

2 cents
All software is open source (as long as you can read assembler)

 

TinyPortal © 2005-2018