Hello! Please help me configure the interrupt from EINT31(PI19).
CPU: A20
Board: LIME2
arm-linux-gnueabihf-gcc
What image do you use? For older images you need to edit the fex/bin and define it is for that function (and remove the pin from other usages). It is similar for newer Olimage images but instead of fex/bin you need to change the DTS.
Quote from: LubOlimex on March 29, 2024, 10:18:50 AMWhat image do you use? For older images you need to edit the fex/bin and define it is for that function (and remove the pin from other usages). It is similar for newer Olimage images but instead of fex/bin you need to change the DTS.
Thank You! I'm use DTS (sun7i-a20-olinuxino-lime2.dts).
1. What to write in dts?
2. How to enable an interrupt in a C program?
It is similar to this:
https://www.olimex.com/forum/index.php?topic=4400.0
EINT are already supported in older sunxi images, and can be used as described in here:
https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-7/USAGE-AND-COMMON-PRACTICEs-A20-Olimex_kernel_3.4.103%2B_Jessie_rel_3.txt
Older sunxi images can be found at our FTP.
Quote from: LubOlimex on April 03, 2024, 09:05:29 AMIt is similar to this:
https://www.olimex.com/forum/index.php?topic=4400.0
EINT are already supported in older sunxi images, and can be used as described in here:
slice master (https://slice-master.io)
https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-7/USAGE-AND-COMMON-PRACTICEs-A20-Olimex_kernel_3.4.103%2B_Jessie_rel_3.txt
Older sunxi images can be found at our FTP.
Thanks for your solution admin LubOlimex. I'm also looking to configure the interrupt from EINT31.
Quote from: LubOlimex on April 03, 2024, 09:05:29 AMIt is similar to this:
https://www.olimex.com/forum/index.php?topic=4400.0
EINT are already supported in older sunxi images, and can be used as described in here:
https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-7/USAGE-AND-COMMON-PRACTICEs-A20-Olimex_kernel_3.4.103%2B_Jessie_rel_3.txt
Older sunxi images can be found at our FTP.
Thank You. I'm sorry to be late with the reply.
Used a hardware timer instead
Quote from: LubOlimex on April 03, 2024, 09:05:29 AMIt is similar to this:
https://www.olimex.com/forum/index.php?topic=4400.0
EINT are already supported in older sunxi images, and can be used as described in here:
https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-7/USAGE-AND-COMMON-PRACTICEs-A20-Olimex_kernel_3.4.103%2B_Jessie_rel_3 tiny fishing (https://tinyfishing.co/).txt
Older sunxi images can be found at our FTP.
Thank you both. I was having the same problem and didn't know how to solve it until I read this article.