jbentham / streaming

ADC data streaming for the Raspberry Pi
35 stars 4 forks source link

PWM bus error #1

Closed noeldum closed 3 years ago

noeldum commented 3 years ago

I get a PWM bus error with a fresh install of Raspberrypi os on a Raspberrypi 3.

pi@raspberrypi:~/streaming-main $ sudo  ./rpi_disp_dma 
DMA channels in use: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
pi@raspberrypi:~/streaming-main $ sudo ./rpi_adc_stream -t
RPi ADC streamer v0.20
VC mem handle 5, phys 0xbeaec000, virt 0x76f77000
Testing 1.000 MHz SPI frequency: DMA transfer timeout
  0.000 MHz
Testing   100 Hz  PWM frequency: PWM bus error

I also tried on a Raspberrypi 4 but the binary just hangs.

pi@raspberrypi:~/streaming-main $ sudo ./rpi_disp_dma 
DMA channels in use: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14
pi@raspberrypi:~/streaming-main $ sudo ./rpi_adc_stream -t
RPi ADC streamer v0.20
VC mem handle 6, phys 0xbebc4000, virt 0xb6f39000
Testing 1.000 MHz SPI frequency: DMA transfer timeout
  0.000 MHz
^CTesting   100 Hz  PWM frequency: Closing
pi@raspberrypi:~/streaming-main $ sudo ./rpi_adc_stream -t
RPi ADC streamer v0.20
VC mem handle 6, phys 0xbebc4000, virt 0xb6f73000
Testing 1.000 MHz SPI frequency: DMA transfer timeout
  0.000 MHz

For info I have a MCP3208 hook up to the SPI port which has been well tested with python before venturing here.

Any ideas how I can get either rpi3 or rpi4 working here?

jbentham commented 3 years ago

It looks like you haven't changed rpi_dma_utils.h to reflect the board you are using.

On 22/11/2020 20:22, noeldum wrote:

I get a PWM bus error with a fresh install of Raspberrypi os on a Raspberrypi 3.

|pi@raspberrypi:~/streaming-main $ sudo ./rpi_disp_dma DMA channels in use: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 pi@raspberrypi:~/streaming-main $ sudo ./rpi_adc_stream -t RPi ADC streamer v0.20 VC mem handle 5, phys 0xbeaec000, virt 0x76f77000 Testing 1.000 MHz SPI frequency: DMA transfer timeout 0.000 MHz Testing 100 Hz PWM frequency: PWM bus error |

I also tried on a Raspberrypi 4 but the binary just hangs.

|pi@raspberrypi:~/streaming-main $ sudo ./rpi_disp_dma DMA channels in use: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 pi@raspberrypi:~/streaming-main $ sudo ./rpi_adc_stream -t RPi ADC streamer v0.20 VC mem handle 6, phys 0xbebc4000, virt 0xb6f39000 Testing 1.000 MHz SPI frequency: DMA transfer timeout 0.000 MHz ^CTesting 100 Hz PWM frequency: Closing pi@raspberrypi:~/streaming-main $ sudo ./rpi_adc_stream -t RPi ADC streamer v0.20 VC mem handle 6, phys 0xbebc4000, virt 0xb6f73000 Testing 1.000 MHz SPI frequency: DMA transfer timeout 0.000 MHz |

For info I have a MCP3208 hook up to the SPI port which has been well tested with python before venturing here.

Any ideas how I can get either rpi3 or rpi4 working here?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jbentham/streaming/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNUSET6TR3M3W4NXA3PIHTSRFXGZANCNFSM4T6WOBBA.

noeldum commented 3 years ago

Missed that somehow. Thank you.