top of page
Search

kriation 1 switch and reset

29/12/2024

I am continuing the kria kriations towards using what is on the development kit. And it is the imaging sensor. There are 3 connectors available IAS0, IAS1, and rpi cam. I am aiming the IAS1 and the rpi cam. Because my goal is to build my own camera.


In this baby step I am aiming, as the title says, the switch and the reset. After having the i2c bus, I noticed that I started seeing the switch


ree




xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x2 I am setting to SD1 SC1, 0x3 to SD2 SC2, and só on, but I find out, this is the sensor EEPRON and not the i2c to configure the sensor.


Which caught my attention, after some debugging, is the presence of a reset circuit:

ree

and investigating HDA2, 4, and 9 using the kria k26 som datasheet plus the xdc of K26_SOM_Rev1.xdc I find the FPGA pins:

HDA2 D18 J11

HDA4 B17 K13

HDA9 A15 F11


once I set those pins to out of reset, which is basically setting them to 1,


I started seeing the 0x36 component in the bus:


ree



the only thing is I am seeing these options now

xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x0


xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4


ree

xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x1


xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4


ree

xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x2

xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4


ree

xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x3

xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4


ree

xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x74 0x0 0x4

xilinx-kv260-starterkit-20222:~$ sudo i2cdetect -y 4


ree

now the final test is to have some communication with the sensor.

Setting the switch to 2 which is IAS1 (also I dont have any sensor connected to IAS0), then I have to communicate via i2c but for 16b registers addresses which makes a bit harder ( because why not), and the code below is what I found só far that works with the i2c linux tools.


xilinx-kv260-starterkit-20222:~$ sudo i2cset -y 4 0x36 0x00 0x00

xilinx-kv260-starterkit-20222:~$ sudo i2cget -y 4 0x36 0x0 w


I can read back 0x5301, which matches with the datasheet of the ar1335



ree


and it also works for the switch 3, which has a raspberry pi cam attached with a Sony sensor IMX219


 
 
 

Recent Posts

See All
10 Professional VHDL Coding tips

Besides knowing how to program in VHDL for FPGA projects, they will require from you extra coding skills to make your code more...

 
 
 

Comments


+17782284975

©2021 by dr.maikon. Proudly created with Wix.com

bottom of page