Jump to content

pyA20 on Opi PC2


vph

Recommended Posts

Hi,

I installed pyA20 on my Orange pi PC2 and  running one of the test files I'm getting segmentation fault.

I am running  ARMBIAN 5.34.171029 nightly Ubuntu 16.04.3 LTS.

Can somebody help me troubleshoot the problem?

 

Thanks,

Link to comment
Share on other sites

Which version of pyA20 did you used ?

Check if at the end of gpio_lib.h the SUNXI_PIO_BASE is defined as "extern unsigned int" or as "extern unsigned long", if the former, it crash because it is a 32bits pointer used on 64bits CPU.

You will need to change that and some other references in gpio_lib.c too...

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines