-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any thoughts? on not working on RPi2? #25
Comments
I haven't yet investigated how to get it running. It may be as simple as
|
Thanks so much for getting back to me.. I understand that the peripheral base address has changed 'they' [raspberrypi] have now a function to request for the new base address I haven't looked into the issues with DMA which have also changed but I'm not sure of as of yet what that means... (it looks to me as you have bypassed some of the issues already..but I'm not sure yet) if it's ok with you - leave this issue open and I will collect what information that seems pertinent as I investigate. thanks |
well I've gotten farther than I thought I would... the test program made the lights flash - but not in the right order at all but it worked better than NOT working.... |
I also changed the memory address of 0x40000000 to 0xc0000000 but I have a feeling that the DMA is just looking in the wrong place... I also tried under and over clocking the board thinking that it might have to do with the clock speed being different.. but no luck - I'm giving up for today any thoughts or clues would be great... as I'm only ranked above Script Kiddie.. G |
I have this working on a Pi B 2, and a B. Fairly extensive changes required due to the cache changes on the new board. Calling the gcc builtin to flush the cache doesn't seem to work, so I've changed the code to request the DMA memory from the VideoCore, via the mailbox interface. This gives us uncached memory, and you get a contiguous chunk so no need to mess around with chains of DMA pages or descriptors any more. You can find it here: https://github.com/richardghirst/rpi_ws281x Richard |
wow! & yeah - it seems that much of the DMA handling is very different than the b+ >>> I can only image this will break a lot of programs (GPIO, Audio, etc) |
Hi Richard... and none of the python scripts are working either I have upgraded and updated and am using the current firmware (as of today) sorry to be the barer of bad news.. G |
Thanks for the feedback. It is working for me and one other person, and
|
I did an apt-get upgrade (which found nothing to do) and ran rpi-update. $ cat /proc/version It still works as expected. Note I changed the 'test' program to do The "device cannot be opened" message presumably means the new code could I should say that I don't have a display and keyboard on my Pi, and am Here are my relevant config.txt settings and cmdline: $ cat /boot/cmdline.txt I don't have the camera enabled. I'm running a recent raspbian image If you can figure out what the significant difference is between your setup FWIW, I've used the same approach to get memory from the VideoCore for Richard On Sun, Feb 22, 2015 at 9:26 AM, Richard Hirst richardghirst@gmail.com
|
Thanks for you attention and effort my install is from the same (2015-02-16-raspbian-wheezy.zip) and pi@raspberrypi ~ $ cat /proc/version I'm also running headless via vnc and ssh
and no camera either the first run I get no response from the LEDs I'm gonna guess that I have something screwed up in my instal G |
Working perfectly fine for me. A charm! |
hummm interesting... so for some reason the ./test now will work but only after I initialize the system with the Python code the python examples work fine and can be started and stopped but the ./test will not exit properly so I will look at the test program and see what's changed... but I'm basically working!!! many many thanks G (PS this was all for a good cause - I'm building a large blinky light screen so that music can be abstractly represented for the deaf for a performance in Chile!) |
That's a really good cause - I'm happy I could help a little. The version of code you have opens /dev/ws2811_mb and keeps it open until I've just pushed some updates to github which make it only open the mailbox On Sun, Feb 22, 2015 at 2:49 PM, laboratories notifications@github.com
|
New version seems perfect thanks again for the effort |
This is working great. One thing though, i think some part of the pwm isnt initialized properly. The strandtest works fine after reboot. But once you play a sound through the audio jack every subsequent run of the strandtest is horribly random. It's quite interesting to listen to the pulses with headphones plugged in. Nice and regular before playing sound. Nasty and irregular after. |
I'm trying to control a neopixel ring (GPIO 18) and also use the audio jack for playback. Is there a way for both to coexist? Or do both require the same PWM capability of the Broadcom chip? Currently I can hear the neopixel data line pulses via the audio output and the pixels don't display what they should. Thanks for all the work on this library. |
Unfortunately, the audio device and the LED driver both use the PWM. In On Mon, Mar 23, 2015 at 8:31 AM, paf78 notifications@github.com wrote:
|
another good audio solution while using the GPIO pins is use the audio from the HDMI out. Digital audio (up to 8 channels) that most TV and monitors will decode (mostly only two channel). if you use a "TV" instead of a "monitor" the RPi will often not play audio - you need to change the config.txt file to force the use of the HDMI=2 mode.. peace |
👍 @richardghirst Fork confirmed working pi2 on raspbian wheezy w/ python 3.4.2 |
Hi ya
I'm gonna spend some time trying to get your code up and running on the RPi2
so far the binaries are not working for sure.
I will do the build and see what comes.
Anythoughts? Pointers? Tips?
thx in advance
G
The text was updated successfully, but these errors were encountered: