Not happy looking for examples

For general Flowcode discussion that does not belong in the other sections.
RGV250
Posts: 333
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 32 times
Been thanked: 33 times

Re: Not happy looking for examples

Post by RGV250 »

Hi,
Good to know it works for you, unfortunately I have no idea how to run it from the console. Normally I have just downloaded the programs from FC and they just work.
I have looked and it does not seem to need any changes to the Pi until I want it to run from boot. If I do need to make any changes could you point me to the document etc that I would need to follow.

Regards,
Bob

LeighM
Valued Contributor
Posts: 486
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 83 times
Been thanked: 260 times

Re: Not happy looking for examples

Post by LeighM »

• Compile and deploy your Flowcode project to the Raspberry Pi (“Compile to Target”)
• On your development Windows PC, run the Terminal (Command Prompt)
• Login to the Raspberry Pi by typing ssh admin@192.168.0.21
• If you get a message question about adding the key, type yes
• Enter your admin user password
• At the linux prompt, type ls -l and check that your project HDMI_Test is listed (also it should be around 600KB for a static lib link, 60K for dynamic)
• Run the project application by typing ./HDMI_Test
• Are there any error messages?
• To logout type exit

RGV250
Posts: 333
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 32 times
Been thanked: 33 times

Re: Not happy looking for examples

Post by RGV250 »

Hi,
Thanks for the info, I am not sure what has happened but the Pi is refusing to boot. I get a flash on the screen and then blank, I can't ping it either. I don't think i changed anything yesterday so it looks like I will have to write a new card and hope that fixes it.

Regards,
Bob

RGV250
Posts: 333
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 32 times
Been thanked: 33 times

Re: Not happy looking for examples

Post by RGV250 »

Hi,
I had to re-image the card, not sure why. Anyway, I did as you suggested (using Putty, Win7 does not have SSH) and nothing.The file is present, 656600 bytes, no error messages or anything so I can only assume I have not got something set up correctly on the Pi. I also tried it with the terminal program on the Pi directly and the same.
When I image the card I use the latest OS 64 bit, I will try later using the 32 bit one or possibly the 32 bit legacy one.

Regards,
Bob

LeighM
Valued Contributor
Posts: 486
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 83 times
Been thanked: 260 times

Re: Not happy looking for examples

Post by LeighM »

Hi Bob
I've just found a bit of time to do more testing and copy what you have - same result, no screen output.
I had previously tested on lite (no desktop) version as all my pi units are headless servers.
I thought the component had worked with desktop version in the past, maybe it now uses a different buffer.
This needs further investigation.
In the meantime it's a case of needing to use the Lite version.

RGV250
Posts: 333
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 32 times
Been thanked: 33 times

Re: Not happy looking for examples

Post by RGV250 »

WooHoo, I have output :D

The first time with Lite the Pi crashed, I am not sure which version I used or if it was just one of those things, the second time I used the 64 bit first option in imager and it all works.
Thank you so much for saving my sanity, I normally run the Pi from the PC using VNC anyway but to be honest I had no idea the Lite option existed and I would never have found it without your help.

Do I still need the "static" modification now. I will try tomorrow, time for the pub I think.

Regards,
Bob

LeighM
Valued Contributor
Posts: 486
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 83 times
Been thanked: 260 times

Re: Not happy looking for examples

Post by LeighM »

Ah, well done 😁
Yes, you will still need the static modification for latest OS, otherwise version 12 of the GCC compiler.

Post Reply