How to flash from command line CYUSB3KIT-003

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

cross mob
LuTa_4642501
Level 3
Level 3
Welcome!

I want to develop a linux driver for this platform running my firmware.

Hardware : CYUSB3KIT-003

Development cycle :

1) Build and binary elf or img (elf2img)

2) test in the board by:

- Flashing to the I2C memory using usb3 or jtag, and boot from i2c

OR

- Boot from USB3 using some command line tool and re-enumerate to show my firmware capabilites

How Can I develop a firmware , flash it and test using linux ?

Now I'm using ubuntu 16.04.

Thanks

Lucas

0 Likes
1 Solution
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello Lucas,

In the SDK there is a application called control center which can be used to program the FX3

Path: Installation Path\FX3_SDK_Linux\cyusb_linux_1.0.5.tar\cyusb_linux_1.0.5\bin

cyusb_linux can be used to program FX3. You will have option to program to I2C EEPROM or RAM or SPI FLASH

Please let me know the reason to use command line for programming the FX3

Please let me know if any queries

Regards,

Rashi

Regards,
Rashi

View solution in original post

0 Likes
7 Replies
Rashi_Vatsa
Moderator
Moderator
Moderator
5 likes given 500 solutions authored 1000 replies posted

Hello Lucas,

In the SDK there is a application called control center which can be used to program the FX3

Path: Installation Path\FX3_SDK_Linux\cyusb_linux_1.0.5.tar\cyusb_linux_1.0.5\bin

cyusb_linux can be used to program FX3. You will have option to program to I2C EEPROM or RAM or SPI FLASH

Please let me know the reason to use command line for programming the FX3

Please let me know if any queries

Regards,

Rashi

Regards,
Rashi
0 Likes

Gui software it's not ideal for fast development. If need to reboot every 2 minutes, using gui will just take more time.

I want o build the new fiirmware and test as fast as can be, gui will take a lot time.

From command line I just want to call make and some flash script to reboot and boot from usb.

This software needs to be split in two. The Gui interface and the command line software that this gui will call. So, people can decide what version they want to use. And my test farm can just pull the latest firmware flash and test, No Gui.

0 Likes

Hello,

The CyUSB Suite for Linux is a wrapper around an existing Open Source user-space USB Library called libusb.

the libusb software is a pure 'C' library on linux, whereas the CyUSB Suite for

Linux is a full-fledged Application built on top of libusb in two flavors :

1. As a Command Line Interface [ CLI ]

2. With a GUI built as a Qt based application

Please refer to CyUSB Suite for Linux Programmer's Guide

Path: SDK installation path \cyusb_linux_1.0.5.tar\cyusb_linux_1.0.5\docs

Regards,

Rashi

Regards,
Rashi
0 Likes

Hi,

Whats the license of download_fx3.cpp ??

Can I use this code as a base for my GPL2 Linux Kernel Driver?

Thanks

0 Likes

Hello,

Yes you can use this application as the base

Regards,

Rashi

Regards,
Rashi
0 Likes

Hi,

Can you confirm that you can give this kind of authorization from Cypress ?

To make it clear, I want to take parts of download_fx3.cpp to develop a new linux kernel driver, which will be made public under GPL2 license.

Is Cypress ok with this ?

Thanks

Lucas

0 Likes

Hello,

Yes you can use download_fx3.cpp code to develop a new linux kernel driver

Regards,

Rashi

Regards,
Rashi
0 Likes