Recent

Author Topic: Cross compiling for Microchip PIC32 processors running the Free RTOS.  (Read 3462 times)

jcdammeyer

  • Full Member
  • ***
  • Posts: 195
  • Embedded System Developer
    • Automation Artisans Inc.
One can use MPLAB-X to compile C programs that run and can be single step debugged on Microchip PIC32.  There's also the MikroPascal Pro for the PIC32.   But when it comes to the easy of creating applications Lazarus or Delphi are without question the best there is.

But is there a cross compiler/debugger for the PIC32 family?

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1698
  • Former Delphi 1-7, 10.2 user
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

Thaddy

  • Hero Member
  • *****
  • Posts: 10991
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #2 on: February 12, 2020, 08:21:17 am »
See the Wiki https://wiki.lazarus.freepascal.org/TARGET_Embedded_Mipsel
That's not for RTOS, RTOS is an OS. I don't know if fpc can target OS_VERSION=RTOS. What you refer to is embedded, i.e. without OS.
The average programmer productivity is 4-5 hours per day. Peak performance 72 hours for short bursts. MTBF is 1 second or less.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1698
  • Former Delphi 1-7, 10.2 user
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #3 on: February 12, 2020, 09:16:57 am »
That's not for RTOS, RTOS is an OS. I don't know if fpc can target OS_VERSION=RTOS. What you refer to is embedded, i.e. without OS.

I was going to ask for some of what you were smoking... and then  I noticed the subject line of the post continued onto a second line.  :-[
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

Thaddy

  • Hero Member
  • *****
  • Posts: 10991
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #4 on: February 12, 2020, 11:35:04 am »
I was going to ask for some of what you were smoking... and then  I noticed the subject line of the post continued onto a second line.  :-[
It would be really nice if FPC could target RTOS, but I can't find anything in the repositories.
The average programmer productivity is 4-5 hours per day. Peak performance 72 hours for short bursts. MTBF is 1 second or less.

MiR

  • Full Member
  • ***
  • Posts: 206
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #5 on: April 20, 2020, 12:07:04 am »
Quote
It would be really nice if FPC could target RTOS, but I can't find anything in the repositories.

Well, look again  8)

avra

  • Hero Member
  • *****
  • Posts: 2262
    • Additional info
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #6 on: April 21, 2020, 02:37:22 pm »
There is FreeRTOS version for ESP32:
https://wiki.freepascal.org/ESP32#Xtensa-FreeRTOS
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

PascalDragon

  • Hero Member
  • *****
  • Posts: 3518
  • Compiler Developer
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #7 on: April 21, 2020, 03:47:56 pm »
And we now also have initial arm-freertos support. So mips-freertos should be possible as well.

Thaddy

  • Hero Member
  • *****
  • Posts: 10991
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #8 on: April 21, 2020, 04:27:17 pm »
Quote
It would be really nice if FPC could target RTOS, but I can't find anything in the repositories.

Well, look again  8)
I did... but that was added after my posting...
The average programmer productivity is 4-5 hours per day. Peak performance 72 hours for short bursts. MTBF is 1 second or less.

MiR

  • Full Member
  • ***
  • Posts: 206
Re: Cross compiling for Microchip PIC32 processors running the Free RTOS.
« Reply #9 on: April 21, 2020, 04:40:40 pm »
Seems you did not see the smiley in my post, I wanted to say something like 'please recheck, something is happening' but the joke obviously did not work...

esp32 version is brand new, it appeared beginning of April and arm is compilable in trunk since yesterday, very exiting times ahead of us.....

Michael

 

 

TinyPortal © 2005-2018