• AVR Freaks

Helpful ReplyHot!Harmony graphics on PIC32MX?

Author
realexander
Super Member
  • Total Posts : 193
  • Reward points : 0
  • Joined: 2006/04/08 09:50:42
  • Location: 0
  • Status: offline
2019/07/21 10:18:00 (permalink)
0

Harmony graphics on PIC32MX?

Hi,
 
I'm using Harmony 2.06 to generate a graphics stack for a PIC32MX150F128D. I get a compiler error in gfx.c because it wants to call __pic32_alloc_coherent.
 
Should I conclude from this that the graphics stack simply does not support the PIC32MX, and that I need an MZ? If that's the case, I'm a little surprised MHC offered me the choice of a graphics stack. (I realize the MX might be underpowered for a full-color, high resolution GUI, but I was planning to make a driver for a monochrome 128x64 LCD and I was hoping to use some of the lower-end features of the graphics library to help.)
 
The gfx.c code has #ifdefs that check for WIN32 and use malloc() and free() instead of the PIC32 functions. I'm tempted to try #define-ing WIN32, but that could open a different can of worms.
 
Thank you,
   Bob
 
#1
TS9
Super Member
  • Total Posts : 785
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/21 11:07:31 (permalink)
0
Hi,

No, GFX stack are available for both PIC32MX and PIC32MZ Part.

I have used Harmony V2.06 for
PIC32MX795F512L

Which GFX Controller you are using/ Selected in MHC?


--TS9
#2
realexander
Super Member
  • Total Posts : 193
  • Reward points : 0
  • Joined: 2006/04/08 09:50:42
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/21 11:19:45 (permalink)
0
The generic controller. I'd be using an unsupported monochome, 128x64 SPI LCD.
 
Your MX795 has a cache whereas my MX150 doesn't. That may be why you have __pic32_alloc_coherent and I don't.
 
- Bob
 
#3
TS9
Super Member
  • Total Posts : 785
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/21 12:03:18 (permalink)
0
realexander
The generic controller. I'd be using an unsupported monochome, 128x64 SPI LCD. Your MX795 has a cache whereas my MX150 doesn't. That may be why you have __pic32_alloc_coherent and I don't. - Bob 


Ok.. How do you select mx150 with Harmony for your purpose?

I am not sure but I don't think Harmony may helps for this purpose.

--TS9
#4
realexander
Super Member
  • Total Posts : 193
  • Reward points : 0
  • Joined: 2006/04/08 09:50:42
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/21 16:15:14 (permalink)
0
TS9
Ok.. How do you select mx150 with Harmony for your purpose?

I am not sure but I don't think Harmony may helps for this purpose.



I like the PIC32 because I prefer programming in C++. I like the MX150 because I can hand-solder the TQFP44 without too much difficulty (this is a hobby project).
 
- Bob
 
#5
TS9
Super Member
  • Total Posts : 785
  • Reward points : 0
  • Joined: 2010/05/07 10:52:22
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/21 20:29:31 (permalink)
0
realexander
TS9
Ok.. How do you select mx150 with Harmony for your purpose?

I am not sure but I don't think Harmony may helps for this purpose.


I like the PIC32 because I prefer programming in C++. I like the MX150 because I can hand-solder the TQFP44 without too much difficulty (this is a hobby project). - Bob 

Hi

Then simply Generate SPI Driver and start work. ..

Graphic Stack is meant for TFT RGB Displays

--TS9
#6
realexander
Super Member
  • Total Posts : 193
  • Reward points : 0
  • Joined: 2006/04/08 09:50:42
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/22 05:24:34 (permalink)
0
TS9
Graphic Stack is meant for TFT RGB Displays



Perhaps. But (1) that doesn't mean it couldn't provide useful functionality for lesser displays and (2) it doesn't explain its dependence on __pic32_alloc_coherent.
 
- Bob
 
#7
Ed@Microchip
Super Member
  • Total Posts : 152
  • Reward points : 0
  • Joined: 2017/04/06 09:39:29
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/22 09:05:33 (permalink) ☄ Helpfulby m4l490n 2019/08/02 06:43:37
0
The build error around __pic32_alloc_coherent may be due to a GFX project that was created without a bsp. To work around this issue please refer to:

https://www.microchip.com/forums/m1056694.aspx#1057129
 
The GFX library and Hardware Abstraction Layer (HAL) can be used to drive a SPI based display. We have an example of a PIC32MZ EF driving an ILI9488 based display via the SPI interface (aria_quickstart -> pic32mz_ef_sk_xpro).
 
For your monochrome SPI display, you will need to create your display driver, integrate that into the GFX HAL to write pixels out to the display based on the display's write protocol. You can refer to the ILI9488 driver (drv_gfx_ili9488.c) for the HAL functions that you need to implement to get the GFX library write pixels out to your display. You may also need to work on a grayscale project (GS_8) and convert the pixel values to a clear or opaque pixel when writing to a monochrome display.
#8
lamdaelectronics
Starting Member
  • Total Posts : 61
  • Reward points : 0
  • Joined: 2010/07/23 04:04:41
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/25 01:03:36 (permalink)
0
Since you are in a hobby project, get an Orange pi board (linux based) and do anything of the graphics you could imagine. The cost is comparable to a PIC32MX (with no board).
Discard Harmony and all these unsupported stuff (do not try to find any help from support, it is clearly a waste of time).
#9
realexander
Super Member
  • Total Posts : 193
  • Reward points : 0
  • Joined: 2006/04/08 09:50:42
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/07/25 04:07:07 (permalink)
0
lamdaelectronics
get an Orange pi board



I've never used any of those types of boards. All my projects seem to have size or form-factor requirements that preclude them. :-(
 
- Bob
 
#10
lamdaelectronics
Starting Member
  • Total Posts : 61
  • Reward points : 0
  • Joined: 2010/07/23 04:04:41
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/08/01 04:21:35 (permalink)
0
There are the "zero" versions for all the fruit boards (Raspberry, Orange, banana etc), with a notable small size.
They have a working Linux and you can use the free version of QT (truly cross-platform) to design your own GUI.
-Kostas
 
post edited by lamdaelectronics - 2019/08/01 05:53:16
#11
realexander
Super Member
  • Total Posts : 193
  • Reward points : 0
  • Joined: 2006/04/08 09:50:42
  • Location: 0
  • Status: offline
Re: Harmony graphics on PIC32MX? 2019/08/01 05:40:40 (permalink)
0
I'm aware of the Zero versions. I need to make a PCB anyway for the sensors/interfaces/whatever so I save no hardware effort in using a Zero. And with a Pi Zero, I add 65x30x7 mm to my project compared to a PIC32 which is 10x10x1.2 mm. In the things I tend to do, it matters.
 
I promise that if I ever do a project where it doesn't matter, I'll consider using a Zero.
 
- Bob
 
#12
Jump to:
© 2019 APG vNext Commercial Version 4.5