Forum > Embedded

RaspberryPi Zero2W

<< < (2/7) > >>

ccrause:

--- Quote from: Mark20 on December 17, 2023, 09:44:03 am ---@ccrause
for "No OS" do you mean direct hw programming, in C like with microcontrollers ?

--- End quote ---
Yes, this is what I meant. I ask because you posted your question under the Embedded forum.  If you want to go the embedded route on the Pi Zero, consider the Ultibo project.  Raw embedded on an ARM processor is a bit more challenging than on an 8 bit AVR.  Ultibo provides a bunch of libraries and low level support to simplify the work you have to do for an embedded program.

From your other questions it seems that you really want to run a Free pascal program on top of Linux. The link that Davo referred to is for use in Linux: https://wiki.freepascal.org/Lazarus_on_Raspberry_Pi#Accessing_external_hardware

Mark20:
Thank you !
have to study now :-)

hansotten:

--- Quote from: Mark20 on December 16, 2023, 08:52:57 pm ---Hi,
is it possible develop with Lazarus some console program that can use SPI and I2C interfaces on PiZero ?
Somebody have developed anything on this board and have experiences to share ?

Regards,
Marco

--- End quote ---
Yes, that will work. Use the fpcupdeluxe-armv6hf-linux variant. If you want to run on the Pi and not cross compile, enlarge the swapfile.
There are nice libraries available, see the wiki. I have good results with rpihal but there is more.
https://wiki.lazarus.freepascal.org/Lazarus_on_Raspberry_Pi will help.

Lazarus is a bit heavy for a Pi Zero. Freepascal apps  runs fine.
 

MarkMLl:

--- Quote from: hansotten on December 17, 2023, 12:15:00 pm ---Lazarus is a bit heavy for a Pi Zero. Freepascal apps  runs fine.

--- End quote ---

The bottom line however is that the amount of swap is probably the most important thing. Also try to move that off the SD-Card if possible, since that type of medium has little-to-no wear levelling and it won't last long in that role.

A couple of thoughts on terminology: hopefully everybody appreciates that the Pi Zero family usually runs Linux, as distinct from the Pi Pico (RP2040) family which doesn't. And of course these days, it's common to consider Linux as a candidate OS for an embedded system, even if by historical standards it is vastly overweight and insufficiently reliable.

MarkMLl

Mark20:
@hansotten
if Freepascal apps run fine, for me is enough.
I can develop on Rpi or even PC with cross compile.
Thank you !

@MarkMLl
I need understand if for my app is necessary an OS (Rpi Zero2) or not (Rpi Pico), but now I have the paths to follow. Thank you,
Marco

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version