The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.1.32 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Freeplaytech Forum
Exp_Cropped Driver [Fixed!] - Printable Version

+- Freeplaytech Forum (https://forum.freeplaytech.com)
+-- Forum: Freeplay Zero / Freeplay CM3 / Game Pie Advance (https://forum.freeplaytech.com/forumdisplay.php?fid=24)
+--- Forum: Freeplay Zero/CM3 (AKA GPA) Software (https://forum.freeplaytech.com/forumdisplay.php?fid=26)
+--- Thread: Exp_Cropped Driver [Fixed!] (/showthread.php?tid=4931)

Pages: 1 2 3 4 5 6


RE: Exp_Cropped Driver - Slow Catalyst - 07-05-2019

Ahh, that would make sense why I'm not seeing any changes after editing. Thank you.

So- just to be sure, in order to accomplish this- do necessary edits, and then do what to recompile and restart?


RE: Exp_Cropped Driver - Slow Catalyst - 07-05-2019

sudo pkill fbcp

and then

sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341

?


RE: Exp_Cropped Driver - Porcinus - 07-05-2019

Yes but you don't need to restart for the testing stuff
Kill the driver using 'sudo killall fbcp-ili9341', by security, multiple times.
Then recompile and rerun it thru SSH

Edit: You have been faster than me loool


RE: Exp_Cropped Driver - Slow Catalyst - 07-05-2019

Killed driver, and restarted it through

"sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341"

bcm_host_get_peripheral_address: 0x3f000000, bcm_host_get_peripheral_size: 16777216, bcm_host_get_sdram_address: 0xc0000000
BCM core speed: current: 250000000hz, max turbo: 400000000hz. SPI CDIV: 6, SPI max frequency: 66666667hz
Allocated DMA channel 1
Allocated DMA channel 5
Enabling DMA channels Tx:1 and Rx:5
DMA hardware register file is at ptr: 0x75b7e000, using DMA TX channel: 1 and DMA RX channel: 5
DMA hardware TX channel register file is at ptr: 0x75b7e100, DMA RX channel register file is at ptr: 0x75b7e500
Resetting DMA channels for use
DMA all set up
Initializing display
Resetting display at reset GPIO pin 27
Creating SPI task thread
InitSPI done
DISPLAY_FLIP_ORIENTATION_IN_SOFTWARE: Swapping width/height to update display in portrait mode to minimize tearing.
Relevant source display area size with overscan cropped away: 480x640.
Source GPU display is 480x640. Output SPI display is 240x320 with a drawable area of 202x302. Applying scaling factor horiz=0.42x & vert=0.47x, xOffset: 9, yOffset: 18, scaledWidth: 202, scaledHeight: 302
Creating dispmanX resource of size 202x302 (aspect ratio=0.668874).
GPU grab rectangle is offset x=0,y=0, size w=202xh=302, aspect ratio=0.668874
All initialized, now running main loop...


RE: Exp_Cropped Driver - Slow Catalyst - 07-05-2019

Here is my waveshare.h

Just doesn't seem like anything has changed. Have I missed the recompiling bit?

#pragma once

// Data specific to the Waveshare32b display, as present on FreePlayTech's CM3/Zero devices (https://www.freeplaytech.com/)
#ifdef FREEPLAYTECH_WAVESHARE32B

#if !defined(GPIO_TFT_DATA_CONTROL)
#define GPIO_TFT_DATA_CONTROL 22
#endif

#if !defined(GPIO_TFT_RESET_PIN)
#define GPIO_TFT_RESET_PIN 27
#endif

// On FreePlayTech GBA devices, a part of the screen is hidden by the bezels, since the GBA has a 2.8" screen surface area, but a 3.2" display is enclosed inside the case.
// The hidden area is placed under the left edge of the display horizontally, and under top and bottom edges of the display vertically, so reduce those out from the drawable area.
// Effective display area is then 320-18=302 pixels horizontally, and 202 pixels vertically (in landscape direction).

// The meaning of top/left/right/bottom here should be interpreted as the display being oriented in its native direction (which is portrait mode for ILI9341, 240x320 direction).
#define DISPLAY_NATIVE_COVERED_TOP_SIDE 0
#define DISPLAY_NATIVE_COVERED_LEFT_SIDE 0
#define DISPLAY_NATIVE_COVERED_RIGHT_SIDE 0
#define DISPLAY_NATIVE_COVERED_BOTTOM_SIDE 0 [fixed]

#endif


RE: Exp_Cropped Driver - Porcinus - 07-05-2019

sorry, replied between 2 messages

I don't think you can set negative value


RE: Exp_Cropped Driver - Slow Catalyst - 07-05-2019

Ah, that was me playing with values trying to get it to change before I knew the need to recompile part. I'll set them to 0 for now and then fine tune later.

You're a saint for all the help, man. I'm a total rookie in this area, haha.

So to recompile- I go back to this bit, and start from here?

cmake -DARMV8A=ON -DFREEPLAYTECH_WAVESHARE32B=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DUSE_DMA_TRANSFERS=ON -DDMA_TX_CHANNEL=1 -DDMA_RX_CHANNEL=5 -DSTATISTICS=0 ..


RE: Exp_Cropped Driver - Porcinus - 07-05-2019

Yes, don't miss 'make -j'


RE: Exp_Cropped Driver - Slow Catalyst - 07-05-2019

On it now!

So I'm going to go to command line, out of ES.

Kill the driver.

cd /home/pi/fbcp-ili9341/build


cmake -DARMV8A=ON -DFREEPLAYTECH_WAVESHARE32B=ON -DSPI_BUS_CLOCK_DIVISOR=6 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON -DUSE_DMA_TRANSFERS=ON -DDMA_TX_CHANNEL=1 -DDMA_RX_CHANNEL=5 -DSTATISTICS=0 ..

make -j

sudo ./fbcp-ili9341


RE: Exp_Cropped Driver - Porcinus - 07-05-2019

I am really sorry, I need to get back to work, please keep us update Smile
This can also help others Wink