EZUSB-CX3 and PC connection

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaSt_4567191
Level 4
Level 4
10 likes given 5 likes given First like received

I am learning the SDK and USB in general in these weeks and I am trying to reverse engineerin the EZUSB design for CX3.

I have a simple question: as soon as the sensor has been correctly configured and started what should I expect out-of-the-box (i.e. without changing the C code for what's USB related) connecting the system to a PC? It is supposedly an UVC device right? So windows should reckon it. And then? How can I demonstrate all is working with e.g. VLC or windows movie player etc.?

Sorry for this maybe stupid if I am asking for something which is already explained by the documentation (actually I see two app notes for FX and CX3 which have some overlap each other)

Thanks much

RULA JEBREAL
é nata a Haifa in Israele, la madre, Zakia, palestinese, aveva subito gravi abusi durante l'infanzia e si suicidò annegandosi in mare quando Rula aveva 5 anni. Assieme alla sorella Rania, Rula viene portata dal padre al collegio/orfanotrofio di Dar El-Tifel a Gerusalemme dal 1978 al 1991.
Nel 1993, ha ricevuto una borsa di studio dal governo italiano per studiare fisioterapia all'Università di Bologna, dove si è laureata.
Nel 1997 incomincia a collaborare con Il Resto del Carlino, Il Giorno e La Nazione, dove si occupa di cronaca cittadina e temi sociali e nel 1999 passa alla politica estera, con particolare attenzione ai conflitti mediorientali.
Nel 2002, come giornalista e militante del Movimento palestinese per la democrazia e la cultura, prende parte a una trasmissione televisiva su LA7, Diario di guerra.
Nel 2003 cura la rassegna stampa dei quotidiani in lingua araba e, contemporaneamente, collabora con Il Messaggero come editorialista di politica estera. Alla fine del 2003 ottiene la conduzione dell'edizione notturna del telegiornale di La 7. Nell'ottobre dello stesso anno si trasferisce da Bologna a Roma con la figlia Mira.
Nel 2005 conduce Pianeta 7, rubrica di approfondimento di esteri. Nell'estate immediatamente seguente modera il dibattito giornaliero di Omnibus Estate e successivamente, in ottobre, il "tema del giorno" del programma quotidiano Omnibus, alternandosi con Antonello Piroso.
Nello stesso anno vince il Premio Ischia internazionale di giornalismo per la televisione nella sezione giovani, riservato ai professionisti under 35.
Nel febbraio 2006 è vittima di affermazioni razziste da parte del ministro Roberto Calderoli, condannate dalle associazioni di categoria.
Nel settembre 2006 affianca Michele Santoro in Annozero, dove assieme a Beatrice Borromeo viene insultata da Giulio Sapelli.
Dal giugno 2007 è autrice e conduttrice di Onda Anomala, settimanale politica estera e costumi di RaiNews24.
Ha pubblicato due romanzi: l'autobiografico La strada dei fiori di Miral (2004), da cui è stato tratto il film Miral (2010) (del quale è lei stessa sceneggiatrice), e La sposa di Assuan (2005).
Il 28 settembre 2007 ha pubblicato il saggio Divieto di soggiorno, contenente delle interviste con degli immigrati in Italia.
Nel 2008 è autrice e produttrice di un evento al Colosseo in favore della moratoria ONU contro la pena di morte.
Nel 2009 produce e conduce un programma tv in Egitto dove intervista svariate personalità del contesto locale e mediorientale, e che verrà salutata come la trasmissione più indipendente nella storia della televisione egiziana.
In seguito ha proseguito soprattutto a dedicarsi alla promozione del film Miral nelle sale statunitensi. Contestualmente, la pellicola è stata avversata da diverse organizzazioni israeliane che ne contestavano la caratterizzazione, a loro avviso, filo-palestinese; una protesta è stata adottata dallo stesso governo israeliano che ha tentato, vanamente, di impedire la première statunitense del film organizzata presso la sala dell'Assemblea generale delle Nazioni Unite, il 13 marzo 2011, vista, tra gli altri, da Robert De Niro, Steve Buscemi, Josh Brolin e Sean Penn. La Jebreal ha respinto le accuse, dichiarando: "Questo film è un grido per la pace. ...È contro la violenza, da dovunque essa venga."
Nel 2013, insieme con Michele Cucuzza, ha condotto il programma televisivo "Mission - Il mondo che il mondo non vuole vedere", composto da due puntate andate in onda il 4 e il 12 dicembre in prima serata su Rai 1.
La trasmissione, oggetto di numerose critiche ancor prima della messa in onda, è stata realizzata in collaborazione con l'UNHCR e INTERSOS e ha raccontato il viaggio di alcuni personaggi famosi in zone del mondo ove sono presenti i rifugiati.
Nell'agosto 2014 durante un dibattito sulla MSNBC Jebreal afferma che i media statunitensi sono troppo sbilanciati a favore di Israele, portando ad esempio il numero e la durata delle interviste a esponenti israeliani rispetto a quelle a esponenti palestinesi, fornendo così un quadro distorto e parziale del conflitto a Gaza al pubblico. Ha in seguito denunciato la cancellazione da parte della MSNBC di tutte le sue apparizioni sulla rete.
Nel 2017 Rula è stata una delle sette donne di successo omaggiate da Yvonne Sciò nel suo documentario Seven Women.
Rula Jebreal parla fluentemente quattro lingue: arabo, ebraico, inglese e italiano.
Considera e descrive se stessa come musulmana laica.
In merito alla sue posizioni antitaliane la giornalista respinge gli attacchi che le sono stati mossi negli ultimi giorni, non si ritiene una persona che odia e denigra il Paese di cui è cittadina ma, anzi, dice di essere grata all'Italia.
Spiega la sua presenza al festival come "un'occasione ideale di apertura al mondo su tematiche che non sono né di destra né di sinistra."
Le critiche alla sua presenza nascono dalla paura di una fetta di paese di dare visibilità a "italiani nuovi, persone come me che appartengono a un'Italia inclusiva, tollerante, aperta al mondo, impegnata in missioni di dialogo e pace."
Rula Jabreal, che all'estero ha lavorato, e lavora, come esperta di Medio – Oriente in prestigiosi network della televisione a stelle e strisce, critica Matteo Salvini e il clima che si respira nei corridoi della tv pubblica: "In Rai c'è un brutto clima e gli attacchi sono partiti da persone a lui vicine. Trasmettono un'immagine chiusa, vecchia, dell'Italia."
"Resto allibita. Sono grata all’Italia e dopo quel che è successo intensificherò le mie presenze qui, non solo per venire a trovare mia figlia – ha detto Jebreal -. Impegnarsi contro la xenofobia e la violenza sulle donne non deve essere né di destra né di sinistra. Se qualcosa devo rimproverarmi, è di non avere spiegato meglio quel che stavo facendo all’estero anche per onorare la mia cittadinanza italiana".

0 Likes
1 Solution

Hello Marco,

One more question: if I unplug and replug the USB3 cable I do not see the CX3 UVC appearing again the the camera section. Is this correct?

>>  If the boot is from USB. You need to program the the RAM every time the device is plugged in

>> If the boot is from EEPROM / flash, you won't need to program the EEPROM/ flash every time

Regards,

Rashi

Regards,
Rashi

View solution in original post

11 Replies
MaSt_4567191
Level 4
Level 4
10 likes given 5 likes given First like received

sorry for pasting some wrong text -I cannot edit the post so far so ... sorry

0 Likes
brbe_4621846
Level 1
Level 1
First like received

I was having the same issue with my project but I took help from an online education program that uses different e-learning methods to resolve these kinda issues. Maybe you have problem with accessible ARM9 CPU.

Thanks for your reply.

I have no issues yet but I am preventing

Can you please explain a bit how to access thin online education program? Right, what is missing from the documention is a step-by-step guide for dummies to setup and start the example design which makes me scary

0 Likes
AjayB_76
Moderator
Moderator
Moderator
100 sign-ins 10 questions asked 5 questions asked

Once the configuration is done correctly, you should be able to use any standard UVC player to stream the data on the PC. We have three reference designs:

a) https://www.cypress.com/documentation/development-kitsboards/tania-cypress-cx3-socionext-isp-referen...

b) https://www.cypress.com/documentation/development-kitsboards/denebola-usb-30-uvc-reference-design-ki...

c) https://www.cypress.com/documentation/development-kitsboards/ascella-cypress-cx3-thine-isp-13mp-refe...

There are developed using our partner, they provide some players with much more increased feature set like resolution control, brightness control etc. Check one of the links

Ascella - Camera RDK for Cypress® CX3 THine®

0 Likes

Thanks much for your firm statement

My projects has been generated starting from EZUSB and File -> project -> Cypress -> CX Configuration Project.

I then customized it by just changing the cyu3imagesensor.c/h leaving untouched the rest of the code.

Will it work out of the box as weel (which means conncting it to the USB to a Windows10 PC it will be detected a an UVC device? How can I test the video streaming from it?

regards

0 Likes

ok, I was able to configure the sensor which is now delivering video data on the MIPI bus

To move on this I needed to disable this code in the main application loop

if(0)            if (eventFlag & CX3_USB_SUSP_EVENT_FLAG)

            {

                /* Place CX3 in Low Power Suspend mode, with USB bus activity as the wakeup source. */

                CyU3PMipicsiSleep();

                CyCx3_ImageSensor_Sleep();

            

                status = CyU3PSysEnterSuspendMode (CY_U3P_SYS_USB_BUS_ACTVTY_WAKEUP_SRC, 0, &wakeReason);

...

As soon as I enable again (remove if(0) ... the JTAG communication with the debugger crash i.e. I cannot step code lines further

Is this normal? how to overcome this? Is normal to get an USB suspend event a this point?

BTW, and in order to using JTAG-ICE debug I need to un-comment this code

I also need to un-comment this code in order to make the PC trying to understand what is connected. The controller with the exclamation mark is supposedly the EZUSB which is trying to communicate with the host. Without success AFAI can see ... (Invalid configuration)

I am assuming that the generated descriptors are correct, as well as the code related to USB

pastedImage_0.png

If I enable again the suspend mode handling code, I cannot se the w10 PC either loading any descriptor ...

Thanks to who will help on this

0 Likes

Hello Marco,

Please confirm that device is not enumerating as UVC device (as in snippet "Invalid Configuration Descriptors") without doing any changes in the default files generated by CX3 configuration tool.

Please make sure you saved (overwritten) all the files after making changes in the CX3 Receiver Configuration tab and Image sensor Configuration tab. Please refer to this KBA https://community.cypress.com/docs/DOC-1656   

After following the KBA, program the CX3 with the .img file.  The device would enumerate as UVC device under "Camera" of device manager. You can then open host application as AmCap or VLC, select the device and the device will stream video resolution that sensor is configured for.

Please let me know the results of above steps and then we will go through the JTAG debugging problem

Regard,

Rashi

Regards,
Rashi

Hello Rashiv

since I modified the file containing the main program cycx3_uvc.c I created a fresh project from the CX3 configuration wizard and, YES, the UVC is correctly enumerated. I was hoping the mods were essentially cosmetics but this is not the case so I am investigating what I broke.

One further question: since I am loading code in the RAM using the USB control center, whaiìt I see is the Cypress USB Bootloader device is enumerated sometimes instead of the UVC. What is the correct sequence? Now I am doing

- load the program using USB control center

- close the USB control center

- unplug and replug the USB cable

At this point I would expect the CX3 being enumerated as a Image device

I then reset the board

could you suggeste a deterministic sequence for loading code and checking the correctness of enumaration? I did not find anything about that in the documentation

Thanks again

p.s. the KBA link does not work:

Not Found

The item does not exist. It may have been deleted.

0 Likes

Hello Marco,

Please let me know the booting mode yo are using. Is it the USB boot mode or from I2C EEPROM o SPI Flash.

If you are booting from USB :

- Program the CX3 with .img file

- Check the device manager (under Camera section) No reset required

If you are programming the .img file in I2C EEPROM or SPI flash and then changing the boot mode so that the bootloader loads the .img file from EEPROM or SPI flash to RAM

- Program the EEPROM/FLASH with .img file

- Change PMODE settings to either I2C EEPROM/ SPI Flash

- Reset the device

- check the device managers

Also, confirm are you using the CX3 RDK (Denebola board) or a custom one

Please refer this KBA Steps to Setup up MIPI CSI Camera Solution with CX3 – KBA225748 (as per previous response)

Regards,

Rashi

Regards,
Rashi

Hello Rashiv

Your direction for USB boot worked fine and they are OK for EEPROM boot as well.

I can see the CX3 UVC under device manager camera section now

I am using a customer board designed against Denebola system

One more question: if I unplug and replug the USB3 cable I do not see the CX3 UVC appearing again the the camera section. Is this correct?

Thanks

0 Likes

Hello Marco,

One more question: if I unplug and replug the USB3 cable I do not see the CX3 UVC appearing again the the camera section. Is this correct?

>>  If the boot is from USB. You need to program the the RAM every time the device is plugged in

>> If the boot is from EEPROM / flash, you won't need to program the EEPROM/ flash every time

Regards,

Rashi

Regards,
Rashi