Forum > Embedded - ARM

Anybody knows WIFI example code in FPC for the ESP32 or other ?

(1/1)

pascalbythree:
Hey, i am looking to compile on a board with Freepascal, to use a WIFI example. I can not find it nowhere for the Raspberry PICO

Does anybody know weither it is possible to FPC WIFI on the ESP32 ?

PS: I want to skip the Linux implementation, Just no HDMI and a quick Boot, without the linux OS.

Can somebody knows where to go ?

Greets, Wouter van Wegen

ccrause:

--- Quote from: pascalbythree on July 15, 2023, 12:47:56 pm ---Hey, i am looking to compile on a board with Freepascal, to use a WIFI example. I can not find it nowhere for the Raspberry PICO
--- End quote ---
For Pico W you can link to the SDK provided library driver for the wifi chip, see these examples and this document.  There are some Pico tutorials that show how to compile programs with FPC and the Pi Pico SDK libraries.  It doesn't contain a wifi example or a Pascal unit for the wifi library, so that bit needs to be added.


--- Quote ---Does anybody know weither it is possible to FPC WIFI on the ESP32 ?
--- End quote ---
The ESP32 and Pi Pico use different controllers and different SDK libraries.  To get started with ESP32, see this wiki page, or install via fpcupdeluxe (does not work on Windows yet).

MarkMLl:

--- Quote from: pascalbythree on July 15, 2023, 12:47:56 pm ---Hey, i am looking to compile on a board with Freepascal, to use a WIFI example. I can not find it nowhere for the Raspberry PICO

Does anybody know weither it is possible to FPC WIFI on the ESP32 ?

PS: I want to skip the Linux implementation, Just no HDMI and a quick Boot, without the linux OS.

--- End quote ---

Linux is relevant to neither the Pico not the ESP32. You have to do /everything/ bare-metal, or at least with a provided SDK or third-party kernel.

MarkMLl

MarkMLl:

--- Quote from: ccrause on July 16, 2023, 08:18:05 am ---... show how to compile programs with FPC and the Pi Pico SDK libraries.  It doesn't contain a wifi example or a Pascal unit for the wifi library, so that bit needs to be added.

I've got one of the Pico/Ws but haven't had time or business need to go into it more than superficially. I'm a bit bothered because my understanding is that various things have been moved around, for example I believe that the LED is now actually on the WiFi chip rather than being on an RP2040 GPIO.

MarkMLl

--- End quote ---

Navigation

[0] Message Index

Go to full version