Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test the 8051 board #24

Open
larsbrinkhoff opened this issue Sep 29, 2017 · 8 comments
Open

Test the 8051 board #24

larsbrinkhoff opened this issue Sep 29, 2017 · 8 comments

Comments

@larsbrinkhoff
Copy link
Owner

No description provided.

@larsbrinkhoff
Copy link
Owner Author

Maybe use this for flash programming?

https://github.com/Guntermann-Drunck/c2tool

@larsbrinkhoff
Copy link
Owner Author

larsbrinkhoff commented Oct 2, 2017

Or use SiLab's "Simplicity Studio".
https://www.silabs.com/products/development-tools/software/simplicity-studio

Or use their Windows command line tool in Wine.
https://www.silabs.com/documents/login/software/utildll.exe

@larsbrinkhoff
Copy link
Owner Author

There is a command line flash tool in Simplicity Studio. Secret revealed by SiLabs support:

If you have installed Simplicity Studio on the Linux machine then the 8051 command line tool for flashing images is also installed. The file will be in the [SIMPLICITY_STUDIO_INSTALLATION]/developer/adapter_packs/c8051. The name of the tool is flash8051 and typing flash8051 -? will give a usage summary.

@larsbrinkhoff
Copy link
Owner Author

My 8051 board is putting up resistance. I haven't been able to program it from Simplicity Studio, or the flash8051 command line tool.

The tools says

OSX firmware update in progress.Bootload Run Command failure: status:00, FWresponse:00.
Firmware execution error: status:00.
Incorrect Firmware version download!Communication could not be established with the specified adapter.
Please confirm the current adapter selection and cable connection.flash8051 [ERROR: Bootloader returned failure response.]

And I see this in the system log when I attach the board through USB:

hid-generic 0003:10C4:8253.0004: usb_submit_urb(ctrl) failed: -1
hid-generic 0003:10C4:8253.0004: timeout initializing reports

@larsbrinkhoff
Copy link
Owner Author

@mretallack
Copy link

Hi,

I had the same issue and found that the following line to the GRUB_CMDLINE_LINUX_DEFAULT option fixed the issue:

usbhid.quirks=0x10c4:0x8253:0x20000000

This removed the usb_submit_urb(ctrl) failed: -1 issue and the Linux version of flash8051 now returns the correct reply.

@larsbrinkhoff
Copy link
Owner Author

Wow, thank you very much for this hint!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants