{"action":"reopened","issue":{"url":"https://api.github.com/repos/ul-gh/PiPyADC/issues/18","repository_url":"https://api.github.com/repos/ul-gh/PiPyADC","labels_url":"https://api.github.com/repos/ul-gh/PiPyADC/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/ul-gh/PiPyADC/issues/18/comments","events_url":"https://api.github.com/repos/ul-gh/PiPyADC/issues/18/events","html_url":"https://github.com/ul-gh/PiPyADC/issues/18","id":371171090,"node_id":"MDU6SXNzdWUzNzExNzEwOTA=","number":18,"title":"Segmentation Fault","user":{"login":"SparkyDK","id":42686689,"node_id":"MDQ6VXNlcjQyNjg2Njg5","avatar_url":"https://avatars0.githubusercontent.com/u/42686689?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkyDK","html_url":"https://github.com/SparkyDK","followers_url":"https://api.github.com/users/SparkyDK/followers","following_url":"https://api.github.com/users/SparkyDK/following{/other_user}","gists_url":"https://api.github.com/users/SparkyDK/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkyDK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkyDK/subscriptions","organizations_url":"https://api.github.com/users/SparkyDK/orgs","repos_url":"https://api.github.com/users/SparkyDK/repos","events_url":"https://api.github.com/users/SparkyDK/events{/privacy}","received_events_url":"https://api.github.com/users/SparkyDK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-17T16:49:28Z","updated_at":"2019-01-05T18:31:32Z","closed_at":null,"author_association":"NONE","body":"Ulrich/All,\r\nI am trying to get the High-Speed ADC (Waveshare product based on the 1256) working on a Raspberry Pi 3 using python3 and this code.  Using example.py module, pin setup and mode configuration seems to work and code execution gets to the first pipyadc 'send_byte' of xFE (reset) and then gives me a \"Segmentation Fault\".  \r\nMy experience with segmentation faults in other languages like C is that there is some kind of memory addressing error.  Perhaps this is because I have not set up something in the kernel properly.  I have a line 'dtparam=spi=on' in /boot/config.txt but no other device tree overlays).  _lsmod | grep spi_ shows 'spidev' and 'spi_bcm2835'. \r\nMaybe there is some other reason (improper PI GPIO SPI pin configuration?).  I have not pulled out a logic analyzer. It doesn't seem to be worthwhile yet.\r\nI am apparently been able to read ADC values using pigpio (https://www.raspberrypi.org/forums/viewtopic.php?t=134270&start=25) .  Wiringpi Gpio commands also seem to work fine (e.g. I can set bit port outputs on my Pi and can see the pins go high and low, as they should).  However, the combination of SPI bus and wiringpi and your code doesn't yet work for me, in terms of reading the ADC on SPI input channel 0.  \r\nAny suggestions?\r\n/ David"}}
{"actor":{"display_login":"ul-gh"}}