Recent

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

jcdammeyer

  • Jr. Member
  • **
  • Posts: 85
  • 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: 1068
  • Former Delphi 1-7, 10.2 User
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

Thaddy

  • Hero Member
  • *****
  • Posts: 10585
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.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1068
  • 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.  :-[
o Lazarus v2.1.0 r63871, FPC v3.3.1 r47164, macOS 10.14.6, Xcode 11.3.1
o Lazarus v2.1.0 r64160, FPC v3.3.1 Nov 27 21:16:31, macOS 11.0.1 (aarch64), Xcode 12.2
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 20.04 (PD VM)

Thaddy

  • Hero Member
  • *****
  • Posts: 10585
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.

MiR

  • Full Member
  • ***
  • Posts: 118
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: 2044
    • 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: 2427
  • 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: 10585
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...

MiR

  • Full Member
  • ***
  • Posts: 118
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