espusb icon indicating copy to clipboard operation
espusb copied to clipboard

Hardware design has outdated and missing libraries

Open con-f-use opened this issue 9 years ago • 16 comments

I don't know if you noticed, but the hardware design doesn't work with recent versions of KiCad. This has two reasons:

  • Custom libraries, you used were not exported with the project.
  • KiCad broke compatibility of standard footprints about a year ago. Resistors and such are now much smaller in EESchema, leading to broken connections in the schematic, because KiCad doesn't automatically restore connections. It's stupid, but that's the way it is. Doesn't seem to be a problem with the current daily build, though. That has learned to handle it more gracefully with a dialog.

kicad library fail

con-f-use avatar Aug 12 '16 11:08 con-f-use

I will fix this tonight. But, keep in mind that it is an untested design. I should include schematics of what I am actually working with, I guess.

cnlohr avatar Aug 12 '16 17:08 cnlohr

...My -cache file does include even things like resistors. I'm not sure why your kicad is preferring your personal libraries. Also, that's really annoying since I used the libraries in kicad!

cnlohr avatar Aug 13 '16 02:08 cnlohr

Yes, it is annoying, but not a problem. The latest dev version of KiCad seems to have a dialog that asks about it. After that, your schematic works fine. Nonetheless, I find the library management in KiCad a bit odd. If you break compatibility with your old standard library, your program should gracefully port old projects to the new library without much ado, and do it from the start. Bad release policy from KiCad's side.

con-f-use avatar Aug 13 '16 09:08 con-f-use

I thought it did! That was the whole point of the -cache files.

cnlohr avatar Aug 13 '16 18:08 cnlohr

Didn't mean to imply anything was wrong on your side. It's one of many known problems with KiCad, but ever since version 4 and CERN contributing, problems keep disappearing.

Btw. by chance, do you know your settings for gnu indent? I made a few changes to commonservices.c to make it more readable and documented it a little, all while I was doing my own project. In the process I converted things to my coding style. I'd like to convert it back before making a pull request.

con-f-use avatar Aug 13 '16 19:08 con-f-use

Hmm, I appreciate the updating and cleanups - but - one of the biggest problems is going to be keeping these things in sync. I'm not really sure how to do that. ESPUSB, ColorChord and esp8266ws2812i2s somehow need to be kept in sync. Also, still haven't gotten a chance to upgrade kicad, will be trying tonight or tomorrow. I spent so much time this weekend getting the ColorChord triple-header done. But, back to work now.

cnlohr avatar Aug 16 '16 03:08 cnlohr

My thoughts on project-syncing

Btw. great videos, especially the "YEEELLLOOOOOOOOOW and a little bit of BLUUUUUUUE" one.

con-f-use avatar Aug 16 '16 07:08 con-f-use

I will pick up in that thread.

cnlohr avatar Aug 17 '16 02:08 cnlohr

I updated the design in github to reflect reality. Also, you can use the design in esp82xx for USB as well. Hmm... We are going to need to make that bootloader sooner or later.

cnlohr avatar Sep 04 '16 05:09 cnlohr

Bootloader? What? Why?

con-f-use avatar Sep 04 '16 16:09 con-f-use

Oh! Bootloader = we need something that can reside in the first 4k? of memory, that will boot. If plugged into USB gives you a brief period of time before booting the main program, or, if not plugged into usb immediately boots the program. This makes it possible to completely remove the serial programming headers, or re-appropriate the serial port for other use.

cnlohr avatar Sep 04 '16 17:09 cnlohr

Ah, you want an USB bootloader. Didn't make the connection, because board layout here... fail Anyway, we basically have a bootloader over network already, don't we? I mean you can update the firmware via net-flashing. Is an USB bootloader even worth the effort, seeing users will always need the serial port for flashing the bootloader itself? I mean it's a nice option to have, but I'm pretty content with net-flashing.

con-f-use avatar Sep 04 '16 17:09 con-f-use

The big distinction is with the fact the usb bootloader would need to be "unbrickable" whereas netflashing and current usb flashing.

Plus... what in the world is that board for? Looks like WS2812B's... Is that an ESP-01?... but I am confused.

cnlohr avatar Sep 04 '16 18:09 cnlohr

Why not be ambitious and make the netflash unbrickable instead? ^^

Looks like WS2812B's... Is that an ESP-01?

Correct. It's for a prop I'm making with a friend. Basically something like this, with the stone lit and larger. I got fifty ESP-01 for only $10 shipping. You know, the ones with the faulty flash. Decided to used them over the more expensive modules, because I only needed to drive a few WS2812s and have it web-controlled. That's how I came here in the first place and decided to contribute. Thought the picture was weirdly fitting in a board layout thread.

con-f-use avatar Sep 04 '16 18:09 con-f-use

fifty ESP-01 for only $10 shipping

How is it possible :P? You work for espressif? Aliexpress? Ebay? Can you share your secret?

KaDw avatar Sep 04 '16 18:09 KaDw

No secret, someone wanted to be rid of them. I was first to reply. Bham, just had to pay shipping. One time deal, I'm afraid. :-( That how I got into ESPs. The rest is, as they say, history.

con-f-use avatar Sep 04 '16 18:09 con-f-use