Recent

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

jcdammeyer

  • New member
  • *
  • Posts: 6
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

  • Hero Member
  • *****
  • Posts: 738
  • Former Delphi 1-7 and 10.2 User
o Lazarus v2.1.0 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

Thaddy

  • Hero Member
  • *****
  • Posts: 10200
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.
I am more like donkey than shrek

trev

  • Hero Member
  • *****
  • Posts: 738
  • Former Delphi 1-7 and 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 r63272, FPC v3.3.1 r45525, macOS 10.14.6 (with sup update), Xcode 11.3.1
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.1 amd64 (Parallels VM)
o FPC 3.0.4, FreeBSD 12-STABLE r361007 amd64
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

Thaddy

  • Hero Member
  • *****
  • Posts: 10200
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.
I am more like donkey than shrek

MiR

  • Jr. Member
  • **
  • Posts: 96
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: 1910
    • 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: 1744
  • 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: 10200
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...
I am more like donkey than shrek

MiR

  • Jr. Member
  • **
  • Posts: 96
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