[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Parallella Community • View topic - RPi Camera bounty

RPi Camera bounty

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Re: RPi Camera bounty

Postby aolofsson » Wed Jun 24, 2015 1:23 pm

We have 1,000 Porcupine PCBs at our contract manufacturer. Looks like they will come rolling off the line in early July.
(then they have to make it into the distribution channels at Digikey and RS)
Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: RPi Camera bounty

Postby tnt » Wed Jun 24, 2015 2:02 pm

tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: RPi Camera bounty

Postby aolofsson » Wed Jun 24, 2015 2:41 pm

I can just throw out ideas in the air, please ignore if not helpful:-)

-Yours is quite different from the one in our github repo? I am not familiar enough to say if all the difference are OK?
https://github.com/parallella/parallell ... ella1.dtsi

-What about trying with the I2C interface that is already there for the PMIC? The I2C pins come out on the header as 5V. (need level translator)

Sorry I can't be more useful...

I have pinged Ola who has been messing around some with the I2c and linux is general, so he might have some ideas.

Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: RPi Camera bounty

Postby tnt » Wed Jun 24, 2015 3:11 pm

I actually based this entry off the existing one, but I decompiled the .dtb rather than going from the dts in the linux tree. This is why the symbolic reference like &gic are turned into actual ID numbers. And also why some numbers are hex rather than decimal

What I modified is:
- Removed the ADV node (there is no ADV on this bus)
- Changed the base address to e0005000 which is where the controller is
- Changed the interrupt from 25 to 48 (which should be IRQ80 and seems confirmed by the boot message). IRQ80 is what's listed in the TRM.
- Bumped the frequency to 400 kHz
- Changed the clock node to 0x27 = 39. I got that from zynq-zc770-xm012.dts

As for the other I2C bus, yeah it works, but I can't have the same I2C bus on 2 different sets of pins out of the FPGA so that doesn't help me much. I need them on the RPi camera connector.
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: RPi Camera bounty

Postby aolofsson » Wed Jun 24, 2015 3:17 pm

Have you tried backing off on frequency? The zynq rev that you have contains some errata on the i2c.

http://www.xilinx.com/support/answers/47916.html
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: RPi Camera bounty

Postby olajep » Wed Jun 24, 2015 3:31 pm

[ previous message got lost? ]

Since you use the EMIO pins you also need a small portion of PL logic (IIRC Vivado will create a OBUF in one of the design stages)
So you need to replace parallella.bit.bin or flash with a new bitstream and remove parallella.bit.bin

Try decreasing the clock frequency to 100 kHZ temporarily until you have it working.
I've been told that you might need to add a filter to the PL logic if you want to run @ 400 kHZ.

// Ola
_start = 266470723;
olajep
 
Posts: 140
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Re: RPi Camera bounty

Postby olajep » Wed Jun 24, 2015 3:49 pm

_start = 266470723;
olajep
 
Posts: 140
Joined: Mon Dec 17, 2012 3:24 am
Location: Sweden

Re: RPi Camera bounty

Postby tnt » Wed Jun 24, 2015 4:01 pm

nm ... I'm an idiot ...

I loaded my new bitstream loading it with xdevcfg, with my custom logic and the I2C EMIO -> PAD connection. And I could access my custom logic so I knew it was loaded. Then I modified the device tree, rebooted the board and saw the I2C driver load but couldn't access it.

See what I did there ? ... I forgot to reload my custom bitstream after having rebooting the board with the new device tree ...

Now it works, interrupts are firing and no timeout messages.

Sorry for the noise ...
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

Re: RPi Camera bounty

Postby aolofsson » Wed Jun 24, 2015 4:19 pm

Great news!:-)
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: RPi Camera bounty

Postby tnt » Wed Jun 24, 2015 9:07 pm

Ok, got it all working on the rev1 with the porcupine :)
Attached is the first image captured.

It's getting a bit late so I'll do some minor cleanup of the rough edges and publish a first prototype for people to try tomorrow. Just something that takes a single frame or so.

In the mean time you can start doing the hw mod to the porcupine that you'll need to try it. (at the moment this is still needed, I hope to lift that requirement).

MOD:
- GPIO_{N,P}7 is turned into a comparator
- GPIO_N7 is fixed to ~ 0.85v. You can do this either with a dedicated lab supply or a simple resistor divider. Personally I used a 1k to VCC_GPIO (2.5v), then 2*1k in parallell (so = 500ohm) to GND.
- GPIO_P7 is connected to GPIO_N8 through a 1k resistor. (value is not critical, but must be large enough to not distort the signal and low enough so that it doesn't take forever to charge the input capacitance of the pin)

I do have something a bit weird with the Xilinx VDMA controller, I configured it for 4 frame buffers (as opposed to 3 in my previous test) and strangely, it's still iterating through only 3 frame buffers ( 1->2->3->1->... ), it just never uses frame buffer 0 ... not sure wtf is going on there.
Attachments
out.jpg
out.jpg (234.7 KiB) Viewed 29500 times
tnt
 
Posts: 408
Joined: Mon Dec 17, 2012 3:21 am

PreviousNext

Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 15 guests

cron