Welcome, Guest

Recent Posts

Pages: 1 ... 8 9 [10]
91
A64 / a64 board pendrive mount on boot issue
« Last post by nimeshvala on May 28, 2018, 10:38:06 PM »
Hello everyone,

I am using a64 board. I want to mount pendrive which is connected to the baord via otg cable on it's micro usb connector. I want to mount this pendrive automatically with read write access on startup. if anyone have a solution please share. Thankyou in advance. 
92
ESP32 / Re: ESP32 GATEWAY - Wire.h library malfunction
« Last post by LubOlimex on May 28, 2018, 02:20:40 PM »
I2C pins for the GATEWAY were added 3 days ago.

Check here: https://github.com/espressif/arduino-esp32/pull/1436
93
ESP32 / Re: ESP32 GATEWAY - Wire.h library malfunction
« Last post by Stanimir5F on May 28, 2018, 01:39:11 PM »
Hello erphillips28!

I managed to replicate the problem and figured out what cause it. Although I'm not sure I can give you an appropriate suggestion how to solve it. From what I can see it's the issue that in the GATEWAY variant of the Espressif package SCL and SDA are not defined. For example on the ESP32-EVB there is such definitions:
Quote
#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#include <stdint.h>

#define EXTERNAL_NUM_INTERRUPTS 16
#define NUM_DIGITAL_PINS        40
#define NUM_ANALOG_INPUTS       16

#define analogInputToDigitalPin(p)  (((p)<20)?(esp32_adc2gpio[(p)]):-1)
#define digitalPinToInterrupt(p)    (((p)<40)?(p):-1)
#define digitalPinHasPWM(p)         (p < 34)


static const uint8_t KEY_BUILTIN = 34;

static const uint8_t TX = 1;
static const uint8_t RX = 3;

static const uint8_t SDA = 13;
static const uint8_t SCL = 16;


static const uint8_t SS    = 17;
static const uint8_t MOSI  = 2;
static const uint8_t MISO  = 15;
static const uint8_t SCK   = 14;

#define BOARD_HAS_1BIT_SDMMC

#endif /* Pins_Arduino_h */
And thus on ESP32-EVB I2C module works.

The problem is on ESP32-GATEWAY you can't simply add them in the "pins_aruino.h" file and expect to work. It's because the I2C functions have to be mapped somehow to certain pins and then you can add them into the variant file.

Stan, Olimex
94
A10 / Re: A10 I2C
« Last post by LubOlimex on May 28, 2018, 12:47:05 PM »
A10-OLinuXino-LIME? The definitions can be checked in the fex file: ftp://staging.olimex.com/Lub-clients/A10_build/4-debian_3.4.90_release_3/script.fex

The i2c is called twi. The three I2C ports enabled and their corresponding pins are:

[twi0_para]
twi0_used = 1
twi0_scl = port:PB00<2><default><default><default>
twi0_sda = port:PB01<2><default><default><default>

[twi1_para]
twi1_used = 1
twi1_scl = port:PB18<2><default><default><default>
twi1_sda = port:PB19<2><default><default><default>

[twi2_para]
twi2_used = 1
twi2_scl = port:PB20<2><default><default><default>
twi2_sda = port:PB21<2><default><default><default>

You might want to check this Python package for I2C/GPIO/UART/SPI control: https://pypi.org/project/pyA10Lime/
95
TERES DIY Laptop / Re: 2 x M3-3mm screws missing in kit/instructions...
« Last post by ajeremias on May 28, 2018, 12:36:13 AM »
I had the same issue!  :(
96
iMX233 / Re: Using expander PCA9555 16-bit with imx233
« Last post by lambda on May 26, 2018, 07:07:24 PM »
How do I Know if it is BSP kernel or mainline kernel or how I know if there is  a driver in-tree for PCA9555?

Well, where did you get your kernel from? If it is the official image from olimex, then it would be the BSP kernel.
(And I have no idea where the source for that is, but probably Olimex could tell you that.)

However if you have no specific reason to use the BSP kernel, then maybe switching to mainline kernel would be a good idea anyway. Personally, I use the imx233 (mxs) images provided by OpenWRT: https://downloads.openwrt.org/releases/17.01.4/targets/mxs/generic/

The package containing the driver is called kmod-gpio-pca953x, you would need to enable the driver in device tree.

HTH,
Harald
97
iMX233 / Re: Using expander PCA9555 16-bit with imx233
« Last post by Rana on May 26, 2018, 10:43:23 AM »
Thanes for your replay

actually I don't have many experience with Kernel. How do I Know if it is BSP kernel or mainline kernel or how I know if there is  a driver in-tree for PCA9555?

 




98
A10 / A10 I2C
« Last post by DevinG on May 26, 2018, 04:31:54 AM »
I cannot find any information of using I2C with the A10 board. Which GPIO pins correspond to which I2C bus?
Thanks.
99
ESP32 / ESP32 GATEWAY - Wire.h library malfunction
« Last post by erphillips28 on May 26, 2018, 12:26:04 AM »
Im getting errors regarding SDA and SCL when trying to #include <Wire.h> library.
-> I am using Arduino IDE
-> I am using Olimex ESP32 Gateway board

Heres the code

Code: [Select]
#include <Wire.h>

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

Heres the error

Quote
Arduino: 1.8.5 (Mac OS X), Board: "OLIMEX ESP32-GATEWAY, 80MHz, 115200"

/Users/eruss28/Documents/Arduino/hardware/espressif/esp32/libraries/Wire/src/Wire.cpp: In member function 'void TwoWire::begin(int, int, uint32_t)':
/Users/eruss28/Documents/Arduino/hardware/espressif/esp32/libraries/Wire/src/Wire.cpp:51:34: error: 'SDA' was not declared in this scope
             if(sda==-1) sdaPin = SDA; //use Default Pin
                                  ^
/Users/eruss28/Documents/Arduino/hardware/espressif/esp32/libraries/Wire/src/Wire.cpp:63:34: error: 'SCL' was not declared in this scope
             if(scl==-1) sclPin = SCL; // use Default pin
                                  ^
exit status 1
Error compiling for board OLIMEX ESP32-GATEWAY.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


Curious if I can use a #define somewhere in the code to define pins on the Gateway as SCL and SDA, or if I have to rewrite part of the library itself.

Thanks for the help!
100
iMX233 / Re: Using expander PCA9555 16-bit with imx233
« Last post by lambda on May 25, 2018, 11:52:56 PM »
Are you on BSP kernel or mainline kernel?

I naturally suggest to use the kernel driver instead of messing with i2c-tools from user space. The module is called gpio-pca953x.ko IIRC and supports the PCA9555 for ages. However I don't know if this available in the BSP kernel.

HTH,
Harald
Pages: 1 ... 8 9 [10]