Recent

Author Topic: RP2040 with Picoprobe and FreePascal/Lazarus  (Read 3654 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: RP2040 with Picoprobe and FreePascal/Lazarus
« Reply #15 on: May 28, 2022, 10:57:06 am »
Keep your remarks coming, I am sure a number of things can be improved.

Not a lot. Lazarus compares well with VS Code in my opinion, and is vastly better than Eclipse.

Quote
Having a wizard for embedded in lazarus would be great but honestly I am more a command-line guy so my motivation on doing gui work is pretty low.

I sympathise. But I think that something needs to be done to make sure the user retains the initial demo's compiler settings as the defaults... or at least knows where to go back to find them.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

MiR

  • Full Member
  • ***
  • Posts: 246
Re: RP2040 with Picoprobe and FreePascal/Lazarus
« Reply #16 on: May 28, 2022, 11:00:18 am »
I will think about a new chapter on the wiki, something like ‚where to go from here‘ that better explains how to put code in random directories.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: RP2040 with Picoprobe and FreePascal/Lazarus
« Reply #17 on: May 28, 2022, 01:03:07 pm »
I will think about a new chapter on the wiki, something like ‚where to go from here‘ that better explains how to put code in random directories.

On reflection, that might be an FPCUp issue: there's a button specifically for tailoring it to the Pico, so I'd expect that to establish the correct CPU/OS target settings as defaults.

Getting that fixed depends on how refractory the maintainer is...

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 14205
  • Probably until I exterminate Putin.
Re: RP2040 with Picoprobe and FreePascal/Lazarus
« Reply #18 on: May 28, 2022, 09:21:12 pm »
The maintainer is always on alert.
Better to ask for help, because he is merely on his own, I believe.
He needs a team.
Specialize a type, not a var.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: RP2040 with Picoprobe and FreePascal/Lazarus
« Reply #19 on: May 28, 2022, 10:35:57 pm »
The maintainer is always on alert.
Better to ask for help, because he is merely on his own, I believe.
He needs a team.

Yes, but there's actually two issues here: whether something like the "Pico" button sets up compiler defaults, and whether libraries to go with those project defaults are brought into the development tool tree rather than being left in the example project tree.

MarkMLl
-----
Black themes matter.
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
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: 6676
Re: RP2040 with Picoprobe and FreePascal/Lazarus
« Reply #20 on: May 30, 2022, 08:54:29 pm »
For anybody else working in this area, I've put a fork of the Picoprobe firmware at https://github.com/MarkMLl/picoprobe_led with substantially improved handling of both a single-colour LED and a WS2812 device (the latter on a WaveShare RP2040-Zero board).

I'd also note that I was talking to a Pico board on a Cytron "Maker Pi Pico". I eventually spent some time playing with some C code on this using cmake and VSCode, something that for some reason I had a lot of trouble with was getting the pinning right so that I could talk to the onboard SD-Card using SPI: for the record these should be MISO 12, CS 15, SCK 10, MOSI 11.

I don't know where we stand with embedding RP2040 PIO state machines in Pascal source or associated resources.

MarkMLl
« Last Edit: June 19, 2022, 12:55:39 pm by MarkMLl »
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
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: 6676
Re: RP2040 with Picoprobe and FreePascal/Lazarus
« Reply #21 on: July 21, 2022, 10:47:10 am »
Has anybody looked at the RP2040W yet?

I might be wrong, but looking at the schematics it appears that the LED has been moved from the main chip to the wireless chip. That means that the standard "blink LED" program now has to send commands (over SDIO?) rather than simply toggling a GP bit.

Various people have speculated that it's simply a Pico with an ESP8266 (expected to obey an AT command set) grafted on. In actual fact, it uses an Infineon chip which it needs to control at a low level.

Both of which points, I feel, lock users into the official MicroPython and C/C++ SDKs, rather than encouraging the use of alternative toolchains.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018