Recent

Author Topic: Anybody knows WIFI example code in FPC for the ESP32 or other ?  (Read 1307 times)

pascalbythree

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

  • Hero Member
  • *****
  • Posts: 988
Re: Anybody knows WIFI example code in FPC for the ESP32 or other ?
« Reply #1 on: July 16, 2023, 08:18:05 am »
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
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 ?
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

  • Hero Member
  • *****
  • Posts: 8111
Re: Anybody knows WIFI example code in FPC for the ESP32 or other ?
« Reply #2 on: July 16, 2023, 08:50:59 am »
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.

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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

MarkMLl

  • Hero Member
  • *****
  • Posts: 8111
Re: Anybody knows WIFI example code in FPC for the ESP32 or other ?
« Reply #3 on: July 16, 2023, 08:53:19 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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018