1.5k views
in Getting started by
Evening, Im new to GUI designing & coding and I am having issues loading EW onto a Raspberry Pi. I have followed the instructions listed on....

https://doc.embedded-wizard.de/getting-started-raspi-4b?v=9.30

.. but I still haven't managed to get it to work/run. Is there any further information or video support (Youtube) on how to get EW to work on Pi.

Any feedback will be greatly appreciated.

1 Answer

0 votes
by

Hi,

according to the link, you are using the documentation of version 9.30 - meanwhile we have version 11.00 online.

Please use the current version of Getting started with Raspberry Pi 4 Model B - and follow exactly the steps to get everything up and running. There should be no other documents (or videos) necessary.

If it is still not working, please let us know what you have done so far, what is missing or what error messages you got. Otherwise it is not possible to provide helpful advices.

Best regards,

Manfred.

by
With regard to the following "Installing Tools and Software"

Step 1 & Step 2: Install the latest version of Embedded Wizard Studio & Embedded Wizard Linux OpenGL Platform Package.

1. Am I downloading this to my Computer or the Raspberry Pi. (Already Downloaded on the Computer but both installations wont open without an application on R-Pi

 

Step 3: Unpack the provided Embedded Wizard Build Environment for Raspberry Pi into a new directory, e.g. {UserDocumentFolder}\RasPi-4B.

2. Am I unpacking this onto the SD card which will be used for R-Pi OS Lite in Step 4 or the computer with regard to Step 1 and 2
by

Step 1 & Step 2: Install the latest version of Embedded Wizard Studio & Embedded Wizard Linux OpenGL Platform Package.
=> Both are setups (*.MSI) for your Windows PC. Please note, that the development of the GUI application is done on a PC and not on the target (in your case the RasPi).

Step 3: Unpack the provided Embedded Wizard Build Environment for Raspberry Pi into a new directory, e.g. {UserDocumentFolder}\RasPi-4B.
=> It is a new directory on your PC

 

by
Noted. When it comes to preparing the R-Pi, there is no option of GL Driver in the Advanced options. Has this setting been relocated or renamed to another setting to select 'OpenGL desktop driver with fake KMS'.
by

Hi,

I just noticed that on the download page for the latest version of the Raspberry Pi OS Lite image that a new version was released a couple of days ago. According to the release notes, the new version contains the following change:

 * KMS used as default display driver

This means, there is no need to change the display setting to 'OpenGL desktop driver with fake KMS' - just leave out this step.

I just downloaded the latest version of Raspberry Pi OS Lite image and it works fine without that setting now.

Best regards,

Manfred.

by
Me again. Within the "Mounting the Project Directory" part after I type in the following;

sudo mount.cifs //192.168.178.xxx/RasPi-4B /home/pi/share/ -o user=<YourWindowsLogin>

Obviously with my details etc I keep getting;

mount error(22): Invalid arguement   , despite entering the right details. Any suggestions?
by
Were all previous steps completed correctly?

Did you use the IP address of your PC and the your windows login?
by
Yes. All the steps prior to this went accordingly. Only when it prompts a password and enter it, it props the line above. I've tried this on two PC's but I've had the same response.
by
Can you ping from RasPi to your PC and vice versa?

Please note, this is a pure Raspberry Pi topic (not related to GUI development with Embedded Wizard) - please check also some Raspberry Pi forums.
by
I can ping between the two. Just had a quick look, and I no longer have the issue above. However I now have

mount error(2): No such file or directory

NOte: The RasPi-4B was extracted onto my PC as its own separate folder. I have opened it to everyone.
by

The directory /home/pi/share/ must exist on your Rasperry Pi and the development directory (containing the entire Build Environment) must be shared as "RasPi-4B". Can you double-check that? 

by
Both exist as you mention above.
by
Please check the Windows sharing of the folder. Make sure to have read and write access for everyone and to use the shared name "RasPi-4B".

Can you post a screenshot of the settings?

Which Windows version are you using?
by

Windows 10. The folder is set to Read/Write and hasnt been altered in any other form.

DocumentRaspi4B

by
Thanks - maybe the folder is somehow synced with OneDrive.... Can you place the directory in your local directory system (e.g. C:\RasPi-4B) and share that as RasPi-4B?
by
Changing the directory into my local system has done the trick. Running through the example of "Hello World" hasn't gone as expected. After inputting   

./EmbeddedWizard-RasPi-4B

Error comes up as

Using drm device node "/dev/dri/card0".     ,     Selected display interface DSI_0 is not available.         ,  Initialise Display ... [failed]

 

Guessing I need to change the display interface but where do I change it, if this is the case.
by

Great to hear that the first steps are done...

If you do not have the official 7" Raspberry Touch display and you want to use an HDMI display you need to configure the display settings - see section HDMI display with USB touch controller.

by
Cheers, I made the change from DSI to HDMI but now I'm having an issue saving this new file (On the RasPi)...

Error Opening File "Home/pi/share/Application/Source/ewconfig.h.  Permission Denied

Do I need to edit the main config on my PC instead then repeat the whole process of sharing the file or should the share file on the RasPi automatically update.
by
The shared directory is just necessary to build the binary and to execute a binary.

All modifications within files (and the generation of code within Embedded Wizard Studio) is done from the PC. Just use a text editor on the PC and edit the file \RasPi-4B\Application\Source\ewconfig.h. Then build and execute the file (via SSH) on the RasPi...
by
Understood. Changing it to HDMI_0 has prompted an error:

XDG_RUNTIME_DIR not set in the enviroment. followed with Initialise Display ... [Failed]

 

Selecting HDMI_1 comes up with

GgxSystemInit: DRM connector not connected, followed with Initialise Display ... [Failed]
by
Hmm, difficult to say - this depends on your display.

So you do not have the official 7" Raspberry Touch display - correct? This would be the prerequisite mentioned in the Getting Started article.

Maybe you need some settings for the HDMI display - have you got some information from the display manufacturer? What display are you using?

In principle it should work - I tested the new Raspberry Pi OS a few days ago on a RasPi CM4 with an HDMI display.
by
On the referred website there is a section "Raspberry Pi Setup" - are you using the settings there?
by
Initially I was but on rebooting the RPi the settings went back to default.
by
Are there any news concerning your display? Is this now working as HDMI_0?

Let us know...

Best regards,

Manfred.
by
Nope still trying to figure it out.

With the recent update to the RPi OS two of these are no longer visible to change (Based on PiHut site);

max_usb_current=1, (Not an option)

hdmi_force_hotplug=1, (Available to Change)

config_hdmi_boost=10, (Available to Change)

hdmi_group=2, (Available to Change)

 hdmi_mode=87, (Available to Change)

hdmi_cvt 1024 600 60 6 0 0 0 (Not an option)

dtoverlay=vc4-fkms-V3D  changes slighlty to kms instead of fkms

 

Making any changes to the available options leaves the screen blank and unable to run the screen visually. The closest I got was keeping the config.txt file the same as the original OS, setting the DRM to HDMI_0. However this results in the XDG_RUNTIME_DIR not set in the enviroment but acknowledges HDMI_) is detected
by

I just tried the following with a RasPi-4 and the current Raspberry Pi OS Lite 2021-10-20:

  • Rebuilding an Embedded Wizard GUI example as described in the Getting Started document
  • Reboot RasPi with a connected DSI display (official 7" Raspberry Pi Touch Display)
  • Executing the binary, works fine
  • Reboot RasPi with a connected HDMI display (5" HDMI 800x480 display - maybe Waveshare) - the display is detected automatically during boot sequence.
  • Executing the same binary (compiled for DSI):
Using drm device node '/dev/dri/card0'!
Available display interface(s):
HDMI_0
HDMI_1
Selected display interface  'DSI_0' is not available!
Initialize Display...                        [failed]
  • Changed ewconfig.h the display interface to HDMI_0:
#define EW_DISPLAY_INTERFACE                   EW_DISPLAY_INTERFACE_HDMI_0
  • Rebuild the binary and executing the binary works now fine:
Using drm device node '/dev/dri/card0'!
Available display interface(s):
HDMI_0 (selected)
HDMI_1
Display interface 'HDMI_0' detected.

Available output modes:
  800 x  480 @ 60Hz (pixel clock:   29570kHz) (preferred mode)
  640 x  480 @ 75Hz (pixel clock:   31500kHz)
  640 x  480 @ 73Hz (pixel clock:   31500kHz)
  640 x  480 @ 60Hz (pixel clock:   25200kHz)
  640 x  480 @ 60Hz (pixel clock:   25175kHz)
  720 x  400 @ 70Hz (pixel clock:   28320kHz)
Selected display mode: 800x480@60Hz (pixel clock: 29570kHz)
(Preferred display mode requested)

Initialize Display...                        [OK]
Initialize Touch Driver...                   [OK]
Initialize Memory Manager...                 [OK]
Initialize Graphics Engine...                [OK]
Create Embedded Wizard Root Object...        [OK]
Create Embedded Wizard Viewport...           [OK]
Starting Embedded Wizard main loop - press <p> to shutdown application...

Btw: I did not change any settings within the Raspberry PI OS configuration - the auto-detection did make all settings.

Can you try the same steps?

Do you have an alternative HDMI display to test? 

by

So following the same exact steps as you I get the same prompt for "Executing the same binary (compiled for DSI)".

On changing ewconfig.h the display interface to HDMI_0:

Using drm device node '/dev/dri/card0'!
Available display interface(s):
HDMI_0 (selected)
HDMI_1
Display interface 'HDMI_0' detected.

After this prompt comes up, it prints Available Output Modes for the different resolutions and pixel clocks available, followed by

No suitable display mode available for interface 'HDMI_0'!
(Please note, that EW_DISPLAY_USE_PREFERRED_Mode is set!)
Initialize Display...                         [failed]

On changing ewconfig.h the display interface to HDMI_1:

Using drm device node '/dev/dri/card0'!
Available display interface(s):
HDMI_0 
HDMI_1 (selected)
GfxSystemInit: DRM connector not connected
Initialize Display...                       [failed]

I do not have an alternative HDMI display to test.

by
It seems that you display is connected to HDMI_0. Can you provide the list of supported resolutions and pixel clocks?
by
Available output modes:
 1920 x 1080 @ 60Hz (pixel clock:  148500kHz) 
 1920 x 1080 @ 60Hz (pixel clock:  148352kHz) 
 1920 x 1080 @ 60Hz (pixel clock:   74250kHz) 
 1920 x 1080 @ 60Hz (pixel clock:   74176kHz) 
 1920 x 1080 @ 50Hz (pixel clock:  148500kHz) 
 1920 x 1080 @ 50Hz (pixel clock:   74250kHz) 
 1280 x 1024 @ 75Hz (pixel clock:  135000kHz) 
 1280 x 1024 @ 60Hz (pixel clock:  108000kHz) 
 1440 x  900 @ 75Hz (pixel clock:  136750kHz) 
 1440 x  900 @ 60Hz (pixel clock:   88750kHz) 
 1152 x  864 @ 75Hz (pixel clock:  108000kHz) 
 1280 x  720 @ 60Hz (pixel clock:   74250kHz) 
 1280 x  720 @ 60Hz (pixel clock:   74176kHz) 
 1280 x  720 @ 50Hz (pixel clock:   74250kHz) 
 1024 x  768 @ 75Hz (pixel clock:   78750kHz) 
 1024 x  768 @ 70Hz (pixel clock:   75000kHz) 
 1024 x  768 @ 60Hz (pixel clock:   65000kHz) 
  832 x  624 @ 75Hz (pixel clock:   57284kHz) 
  800 x  600 @ 75Hz (pixel clock:   49500kHz) 
  800 x  600 @ 72Hz (pixel clock:   50000kHz) 
  800 x  600 @ 60Hz (pixel clock:   40000kHz) 
  800 x  600 @ 56Hz (pixel clock:   36000kHz) 
  720 x  576 @ 50Hz (pixel clock:   27000kHz) 
  720 x  576 @ 50Hz (pixel clock:   13500kHz) 
  720 x  480 @ 60Hz (pixel clock:   27027kHz) 
  720 x  480 @ 60Hz (pixel clock:   27000kHz) 
  720 x  480 @ 60Hz (pixel clock:   13514kHz) 
  720 x  480 @ 60Hz (pixel clock:   13500kHz) 
  640 x  480 @ 75Hz (pixel clock:   31500kHz) 
  640 x  480 @ 73Hz (pixel clock:   31500kHz) 
  640 x  480 @ 60Hz (pixel clock:   25200kHz) 
  640 x  480 @ 60Hz (pixel clock:   25175kHz) 
  720 x  400 @ 70Hz (pixel clock:   28320kHz)

 

by

Can you try the following settings in ewconfig.h:

#define EW_DISPLAY_INTERFACE                   EW_DISPLAY_INTERFACE_HDMI_0
#define EW_DISPLAY_USE_PREFERRED_MODE          0
#define EW_DISPLAY_WIDTH                       800
#define EW_DISPLAY_HEIGHT                      480
#define EW_DISPLAY_FRAME_RATE                  60
by
Using drm device node '/dev/dri/card0'!
Available display interface(s):
HDMI_0 (selected)
HDMI_1
Display interface 'HDMI_0' detected.

Available output modes:
 1920 x 1080 @ 60Hz (pixel clock:  148500kHz) 
 1920 x 1080 @ 60Hz (pixel clock:  148352kHz) 
 1920 x 1080 @ 60Hz (pixel clock:   74250kHz) 
 1920 x 1080 @ 60Hz (pixel clock:   74176kHz) 
 1920 x 1080 @ 50Hz (pixel clock:  148500kHz) 
 1920 x 1080 @ 50Hz (pixel clock:   74250kHz) 
 1280 x 1024 @ 75Hz (pixel clock:  135000kHz) 
 1280 x 1024 @ 60Hz (pixel clock:  108000kHz) 
 1440 x  900 @ 75Hz (pixel clock:  136750kHz) 
 1440 x  900 @ 60Hz (pixel clock:   88750kHz) 
 1152 x  864 @ 75Hz (pixel clock:  108000kHz) 
 1280 x  720 @ 60Hz (pixel clock:   74250kHz) 
 1280 x  720 @ 60Hz (pixel clock:   74176kHz) 
 1280 x  720 @ 50Hz (pixel clock:   74250kHz) 
 1024 x  768 @ 75Hz (pixel clock:   78750kHz) 
 1024 x  768 @ 70Hz (pixel clock:   75000kHz) 
 1024 x  768 @ 60Hz (pixel clock:   65000kHz) 
  832 x  624 @ 75Hz (pixel clock:   57284kHz) 
  800 x  600 @ 75Hz (pixel clock:   49500kHz) 
  800 x  600 @ 72Hz (pixel clock:   50000kHz) 
  800 x  600 @ 60Hz (pixel clock:   40000kHz) 
  800 x  600 @ 56Hz (pixel clock:   36000kHz) 
  720 x  576 @ 50Hz (pixel clock:   27000kHz) 
  720 x  576 @ 50Hz (pixel clock:   13500kHz) 
  720 x  480 @ 60Hz (pixel clock:   27027kHz) 
  720 x  480 @ 60Hz (pixel clock:   27000kHz) 
  720 x  480 @ 60Hz (pixel clock:   13514kHz) 
  720 x  480 @ 60Hz (pixel clock:   13500kHz) 
  640 x  480 @ 75Hz (pixel clock:   31500kHz) 
  640 x  480 @ 73Hz (pixel clock:   31500kHz) 
  640 x  480 @ 60Hz (pixel clock:   25200kHz) 
  640 x  480 @ 60Hz (pixel clock:   25175kHz) 
  720 x  400 @ 70Hz (pixel clock:   28320kHz)

No exact display mode found!
requested output resolution: 800 x 480
requested frame rate:        60 

Selected display mode: 800x600@60Hz (pixel clock: 40000kHz)

error: XDG_RUNTIME_DIR not set in the environment.
Initialize Display...                           [failed]

 

by

Just to be sure, you are using Raspberry Pi OS Lite not Raspberry Pi OS with desktop - correct?

by
I've been using the Lite version but I have also tried the desktop version and had the same response.
by
Do you start the application as root (sudo -s)?
by
When performing "Compiling, Linking and Executing" Yes. I've got it to work now, but i'm not sure what exactly was wrong but I redownloaded the RasPi-4B folder again, (following the same steps), changed the DSI_0 to HDMI_0 and now it works fine. It doesn't fit all the screen but I need to change some parameter in the ewconfig.h file and the GUI application to match that of the screen I'm using.

I know it was an anti-climatic ending/issue but thanks for the help, I appreciate it.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...