No serial port on Feather RP2040 DVI

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gordiegii
 
Posts: 137
Joined: Fri Jan 04, 2013 8:26 pm

No serial port on Feather RP2040 DVI

Post by gordiegii »

I can't download a sketch to my Feather RP2040 DVI (Product ID: 5710)
Using Arduino IDE 2.0 on Mint 20.1 Xfce-64 bit on a NUC
Boot drive shows up as per the instructions at https://learn.adafruit.com/picodvi-ardu ... stallation but no serial port.
I installed circuit python (uf2) and then I get ACM0 but then when I try to download the Arduino example sketch (fade) the serial port disappears with the following:

Code: Select all

Sketch uses 53308 bytes (0%) of program storage space. Maximum is 8384512 bytes.
Global variables use 8980 bytes (3%) of dynamic memory, leaving 253164 bytes for local variables. Maximum is 262144 bytes.
Resetting /dev/ttyACM0
Converting to uf2, output size: 139776, start address: 0x2000
Scanning for RP2040 devices
Exception executing udisksctl. Exception: [Errno 2] No such file or directory: 'udisksctl'
Exception executing udisksctl. Exception: [Errno 2] No such file or directory: 'udisksctl'
Exception executing udisksctl. Exception: [Errno 2] No such file or directory: 'udisksctl'
Exception executing udisksctl. Exception: [Errno 2] No such file or directory: 'udisksctl'
Exception executing udisksctl. Exception: [Errno 2] No such file or directory: 'udisksctl'
Exception executing udisksctl. Exception: [Errno 2] No such file or directory: 'udisksctl'
Exception executing udisksctl. Exception: [Errno 2] No such file or directory: 'udisksctl'
No drive to deploy.
Failed uploading: uploading error: exit status 1
According to mintinstall uidsks2 is installed.
I tried udiskctl at the command prompt and got this:

Code: Select all

Command 'udiskctl' not found, did you mean:
command 'udisksctl' from deb udisks2 (2.8.4-1ubuntu2)
Try: sudo apt install <deb name>
I tried that and it said the latest version was already installed.
udisksctl works. Is there a bug in the Arduino IDE that uses udiskctl instead of udisksctl?

Any suggestions?
Is there a version of the picodvi library or equivalent for Circuit Python?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: No serial port on Feather RP2040 DVI

Post by mikeysklar »

Did you try to install the recommended package from your error message:

Code: Select all

sudo apt install udisks2
CircuitPython runs on the Feather RP2040 DVI and there is a lowlevel picodvi library.

User avatar
gordiegii
 
Posts: 137
Joined: Fri Jan 04, 2013 8:26 pm

Re: No serial port on Feather RP2040 DVI

Post by gordiegii »

Yes. "I tried that and it said the latest version was already installed."
Thanks. I will try the Circuit Python version.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: No serial port on Feather RP2040 DVI

Post by mikeysklar »

I wanted to verify this was not a typo since you had put in uidsks2 as being currently installed instead of udisks2.

What is the path to the `udisksctl` binary since the arduino-ide cannot locate it?

Are you commited to MintOS as this is one of those "just works" with Ubuntu or if you have a Pi you could upload code through that with a Pi OS install.

User avatar
gordiegii
 
Posts: 137
Joined: Fri Jan 04, 2013 8:26 pm

Re: No serial port on Feather RP2040 DVI

Post by gordiegii »

Oops, that was a typo. udisks2 is installed.
I am rather fond of Mint, but I have a RPi zero 2 W that isn't dedicated to anything right now, so I might try that route.
I got the CP example working but it only has enough RAM left for 320x240 (at least with that example) not even 400x240. I could strip out a lot of the libraries in that example, but I suspect that it is CP that is hogging the RAM.
If the Arduino version can run 800x480 I would certainly try that route.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: No serial port on Feather RP2040 DVI

Post by mikeysklar »

Check your MintOS system first for the udisksctl that the Arduino IDE is not locating. On my Ubuntu box it is in the usual spot:

Code: Select all

$ which udisksctl
/usr/bin/udisksctl
The Grayscale and Monochrome resolutions are higher if those are an option to use. Based on a thread from a recent CircuitPython issue you will find interesting. I also have seen an internal discussion about working going to improve the CP DVI memory efficiency.
Please post this code. x4 isn't supported.

These are the supported arguments and the resulting framebuffer. The larger versions will be hard to allocate from within CP but may be possible from board_init().

Grayscale:

640x480x1 -> 640x480x1
800x480x1 -> 800x480x1
640x480x2 -> 640x480x2
800x480x2 -> 800x480x2
Monochrome:

640x480x8 -> 320x240x8 (default on feather)
800x480x8 -> 400x240x8
640x480x16 -> 320x240x16
800x480x16 -> 400x240x16 (8kish left for CP heap)
Which version of the IDE are you runinng? 1.x based or 2.x? Have you tried the other?

User avatar
gordiegii
 
Posts: 137
Joined: Fri Jan 04, 2013 8:26 pm

Re: No serial port on Feather RP2040 DVI

Post by gordiegii »

My udisksctl is in the same spot.
Arduino IDE is version 2.1.0
How do I set arduino's search path to see it?
Why does the serial port disappear when I try to download the project? Why does it only appear when I install CP on the feather? (/dev/ttyACM0 or /dev/ttyACM1 depending on whether my keyboard is plugged in)

This is confusing:
640x480x1 is grayscale, but
640x480x8 is monochrome?
It seems like grayscale and monochrome are being used in some non-intuitive jargony way here.
Was able to run example of 640x480x1 by dglaude but not 800x480x1. Do you know of any way to save RAM in CP?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”