embeddd linux getting started GPIO/I2C/SPI
Hi Community,
I have designed an add on board that is working well on raspberry using QT/C++.
I2C example: RTC ds3231 on PINs (3 SDA, 5 SCK)
SPI example: MCP2515 on PINs (19 MOSI, 21 MISO, 23SCK, 24 CS0, 22 INT)
GPIO example: output LED on Pin11, input from Optocoppler on PIN 13
Due to performance reasons I want to use UPboard (4GB/64GB) with ubuntu server and using the hardware from userspace.
Bios is updated to (https://downloads.up-community.org/download/up-board-uefi-bios-upc1dm15/), Hardware configured (Pin functions, GPIO directions, i2c speed)
ubuntu server is installed according WIKI (https://wiki.up-community.org/Ubuntu#Installation)
i2c-tools and can-utils are installed
modprobe can, can-dev,can-raw,mcp251x done
GPIO working well from userspace
and now there are the problems:
Problem: i2cdetect -y -r 1 does not detect 0x68 as expected
no answer on all the other listed i2cdetect -l busses
and no activity can be measured on the pins using an oscilloscopeProblem: ifconfig shows no can0
I followed discussion (https://forum.up-community.org/discussion/96/canbus-hat-support)
but where to put that last file and how to compile it in userspace (linux headers missing) ?
as a try Kernel was compiled and installed but same results
I know that are embedded linux beginner questions but I do not know how to proceed
So any hint is very welcome, best regards!
Comments
-
problem 1 with i2cdetect is solved > false bios settings for i2c / gpio
Categories
- All Categories
- 63 Announcements & News
- 139 Product News - New Product/Product Change Notice/ End-of-life
- 112 Welcome Developers!
- 60 Unboxing & Project Sharing
- 114 Tech Updates
- 3.6K UP Products
- 119 UP 7000
- 25 UP Squared i12
- 24 UP Xtreme i12
- 14 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 24 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 59 UP Squared Pro
- 135 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 265 Starter Kits & Peripheral