April 20, 2024, 01:24:30 PM

Recent posts

#41
ESP32 / ESP32-EVB EN pin
Last post by harryweb - April 04, 2024, 05:04:02 PM
HI,
I made a PCB inspired with ESP32-EVB (I bought I version). Using LAN et some GPIO for SPI.
Power is made by USB connector.
When I upload my program with platformIO everything is OK on both cards, My program is booting and working (Original and mine).
If I just plug my power source (USB) it works fine on Olimex PCB but it doesn't boot on my PCB card.  :(
I found a way to make it boot just short circuit (pulse) the EN to ground (There is no button on my card)
With the DSO I can see that EN pin is pulled low 100mSec at the end of uploading but not when only plugged to power... (On both cards).... many many hours without finding what's wrong... before making/adding a new pulse reset after powering with pic10f or 555 timer, I ask for some ideas to help me. regards
#42
A20 / Re: LIME2 Rev.L lock-up freeze...
Last post by LubOlimex - April 04, 2024, 08:23:35 AM
Do you boot from the eMMC?

Can you check what is the revision of the stable board?

Is your Linux image based on Olimage?

How do you power the board and do you have a Li-Po battery?

Differences between revision K and latest L1 had been quite significant. Most notably the eMMC and the RAM are different, so it is probably something about support of those two in your image. You can check hardware changes here:

https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-OLinuXino-LIME2/hardware_revision_changes_log.txt
#43
ESP32 / Re: Help with Hardware
Last post by LubOlimex - April 04, 2024, 08:13:25 AM
GPIO36 is not GPIO regarding the ESP32 board, it is only input hence the name in our documentation GPI36. So maybe swap 3 and 8.
#44
A20 / Re: LIME2 Rev.L lock-up freeze...
Last post by faraz - April 04, 2024, 07:12:09 AM
So, more people are facing the same issue. I am not alone.
What solved my problems partially, was I masked the reboot and shutdown commands.
I have good uptime on one site and issues on the other.
Not sure what revision board is on the site that's been up (uptime almost a year now). The site that's going off is using Rev L boards.

I am going to implement the scaling option suggested above and see if that helps. and also learn how I can configure a watchdog to reboot the system.
I am also logging current_now, voltage_now and Temperature_now values.
#45
A20 / Re: Booting LIME2 from the eMM...
Last post by Oscarhoughton - April 03, 2024, 05:40:24 PM
Thank you for your questions and answers. I have fixed my problem
#46
ESP32 / Re: Help with Hardware
Last post by geertv - April 03, 2024, 05:23:55 PM
Hi, seems I am exactly looking into the same thing.
The RF module is the CC1101, which is available as a board E07-M1101D-SMA compatible with ESP32.
This should be the pin reference for E07-M1101D:
Pin   Description      ESP Pin
1   GND         GND
2   VCC         3v3
3   GDO0 - This is the TX Pin   GPIO 04
4   CSN         GPIO 13
5   SCK         GPIO 14
6   MOSI         GPIO 15
7   MISO         GPIO 16
8   GDO2 - This is the RX pin   GPIO 36

Would a UEXT module be an option ?
#47
A20 / Disable USB HOST Port
Last post by dlombardo - April 03, 2024, 02:50:55 PM
Hi,

In Jessie (Kernel 3.4) Image USB ports can be easily controlled using GPIO port for controlling its SY6280.

Example:
# USB port 1 (higher) - max 1000 mA
# Init
echo 66 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio66_ph6/direction
# Turn ON
echo 1 > /sys/class/gpio/gpio66_ph6/value
# Turn OFF
echo 0 > /sys/class/gpio/gpio66_ph6/value

# USB port 2 (lower) - max. 523 mA
# Init
echo 67 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio67_ph3/direction
# Turn ON
echo 1 > /sys/class/gpio/gpio67_ph3/value
# Turn OFF
echo 1 > /sys/class/gpio/gpio67_ph3/value


In current Debian 11 Bullseye image the USB ports are no longer easy to control.

The GPIO ports are taken by USB (vbus) driver
# cat /sys/kernel/debug/gpio | grep -i usb
 gpio-41  (                    |usb0-vbus           ) out lo
 gpio-227 (                    |usb2-vbus           ) out hi
 gpio-228 (                    |usb0_id_det         ) in  hi IRQ
 gpio-229 (                    |usb0_vbus_det       ) in  lo IRQ
 gpio-230 (                    |usb1-vbus           ) out hi

and I can only temporary disable USB port by using unbind example for USB port 2
echo "4-1" > /sys/bus/usb/drivers/usb/unbind

The problem is this can allow USB device to 'wakeup' and gets auto bind again e.g. USB screen upon touching.

I would like the device to be disabled until I make manual bind
echo "4-1" > /sys/bus/usb/drivers/usb/bind

This might not happen with initial setup I had done with image in 2021 (Ubuntu), when I discovered and tested unbind/bind with USB Touch device but I have upgraded the system and now I can confirm the USB Touch device gets auto bind upon touch and unbind is no longer usefull, except maybe for device reset request.

I have this behaviour with latest Debian Bullseye image and one I have from 2022.

Can I get control over USB Host GPIO control again in Mainline linux Image?

I do not find any setup for USB in the Olimex Device Tree overlays - https://github.com/OLIMEX/olinuxino-overlays.git


#48
A20 / Re: Interrupt EINT31(PI19)
Last post by LubOlimex - April 03, 2024, 09:05:29 AM
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.
#49
STMP1 / Re: Olimex STMP1 SOM - Error s...
Last post by LubOlimex - April 03, 2024, 08:42:46 AM
Yes, we are working on it. As I wrote previously: "Currently, we are prototyping a number of test boards around the AXP209 to exhaust all hardware scenarios." These PCBs were manufactured and tests are currently carried away. This can't be done very quick since there is a lot of hardware tinkering and soldering and empirical testing to reach to the bottom of the issue.
#50
A20 / Re: Interrupt EINT31(PI19)
Last post by Starkafan - April 03, 2024, 08:04:43 AM
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?