Skip to content

Using this library with the RP2350 #4

@jace1427

Description

@jace1427

Hello,

I'm attempting to use this library with my Pico2W, which has the RP2350 in place of the RP2040. I haven't been able to get either of the examples working, and I'm not sure why. When I run the terminal example, I see that the program is only reading 0's ($). When I run the usb example, I see the following:

$ vlc v4l2:///dev/video2
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
[00005989576a1520] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libv4l2: error turning on stream: Cannot allocate memory
[00007c1a7c001130] v4l2 demux error: cannot start streaming: Cannot allocate memory
[00007c1a7c001130] v4l2 demux error: not a radio tuner device
libv4l2: error turning on stream: Cannot allocate memory
[00007c1a7c003a10] v4l2 stream error: cannot start streaming: Cannot allocate memory

Potential Issues

The datasheet for the RP2350 mentions several differences between the two chips, for instance:

The four most-significant bits of TRANS_COUNT (CH0_TRANS_COUNT) are redefined as the MODE field, which defines what happens when TRANS_COUNT reaches zero:
◦ This backward-incompatible change reduces the maximum transfers in one sequence from 2^32-1 to 2^28-1.
◦ Mode 0x0 has the same behavior as RP2040, so there is no need to modify software that performs less than
256 million transfers at a time.

but as far as I can tell we should only be transferring 1601208 bits at time. I'm not familiar with DMA or PIO so I'm not sure if this breaking change is even relevant.

This PIO change could be relevant as well:

Reduced DMA request (DREQ) latency by one cycle vs RP2040.

but I'm not sure.

The last issue I noticed is that the datasheet for the HM01B0 has the following:

Image

So is this simply a case of me supplying too much voltage (I have it wired to the 3.3V on my board)

I'd love any pointers, I'm pretty new to the world of microcontrollers so any help is appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions