1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 09:06:16 +02:00
Commit Graph

194 Commits

Author SHA1 Message Date
Werner Almesberger
b82db55f4a atusb/fw/Makefile: new target "update" to update the application via DFU
- Makefile (USB_ID, dfu): moved USB ID to variable, for sharing
- Makefile (.PHONY, update): new target to reset atusb and to DFU new
  firmware
2011-05-11 05:29:54 -03:00
Werner Almesberger
85f60de9d5 atusb/fw: use the unique serial number of the ATmega8/16/32U2 for iSerialNumber
- usb/usb.h (USB_LANGID_ENGLISH_US): added USB LANGID for US-English
- board.h (board_sernum), board.c (board_sernum, hex, get_sernum,
  board_init): provide the board's serial number in "board_sernum"
  (UTF-encoded)
- sernum.h (sernum_get_descr), sernum.c (sernum_get_descr): return
  string descriptors for the serial number
- descr.c (device_descriptor), usb/dfu.c (device_descriptor):
  set iSerialNumber if serial number is available
- atusb.c (main), usb/dfu.c (my_descr): call sernum_get_descr for
  unknown descriptors
- Makefile (OBJS, BOOT_OBJS): added sernum.o
2011-05-10 17:23:08 -03:00
Werner Almesberger
fd91546c59 atusb/fw/Makefile (dfu): our functional descriptor is fine, no need for -t
What caused the error that looked like a problem with the functional
descriptor was in fact the boot loader resetting between the bus scan
and retrieval of the descriptor.
2011-05-10 11:53:32 -03:00
Werner Almesberger
ddd0022350 atusb/fw/boot.c (main): don't time out until there is an application
This prevents the boot loader from resetting all the time and makes
it easier to "catch" it with dfu-util.
2011-05-10 11:51:46 -03:00
Werner Almesberger
fc1a334bf6 atusb/fw/usb/dfu.c (dfu): lowered bwPollTimeout from 1 s to 100 ms and explained why 2011-05-10 08:32:12 -03:00
Werner Almesberger
42dae8dde2 atusb/fw: implemented ATUSB_RESET
- board.c (board_init): disable the watchdog timer (tricky !)
- board.h (reset_cpu), board.c: enable the watchdog timer to cause a
  CPU reset
- ep0.c (my_setup): uncommented and updated ATUSB_RESET handler
2011-05-09 23:52:00 -03:00
Werner Almesberger
6179f31fc0 atusb/fw/README: boot loader flashing time was a bit too optimistic (15 -> 30 s) 2011-05-09 23:44:51 -03:00
Werner Almesberger
1f99435bba atusb/fw/README: updated for complete firmware upload process 2011-05-09 22:06:33 -03:00
Werner Almesberger
0db361d49d atusb/fw/Makefile (dfu): pass transfer size to hide DFU non-compliance
We currently don't provide the DFU Functional Descriptor, which modern
versions of dfu-util request to determine the transfer size. Luckily,
they don't do this if the transfer size is given on the command line.
2011-05-09 22:02:28 -03:00
Werner Almesberger
eeb3af6a03 atusb/fw: fixed USB bus reset handling by software
- usb/atu2.c (ep_init): moved before usb_poll
- usb/atu2.c (usb_poll): register bit was used as mask, not as shift
- usb/atu2.c (usb_poll): call ep_init on USB bus reset
- usb/atu2.c (usb_reset): don't make USB bus reset force a hardware reset
- Makefile (.PHONY, dfu): new target to upload the application with DFU
2011-05-09 21:13:41 -03:00
Werner Almesberger
c5992bc675 atusb/fw/Makefile (.PHONY): added development-only phony targets 2011-05-09 21:12:26 -03:00
Werner Almesberger
f4342f49ae atusb: enlarged USB positioning pin hole; general cleanup
- modules/usb_a_plug_smt.fpd: enlarged hole for positioning pins from
  1.1 mm to 1.15 mm
- atusb/usb.sch, atusb/atusb.cmp, atusb/atusb.brd: removed trailing space
  from CON1's value
- atusb/atusb.sch, atusb/usb.sch, atusb/atrf.sch: schematics title still
  said AT86RF230, not 231
- atusb/README-SMT: corrected a typo
- atusb/README-PCB: specified the tolerance of the hole for the positioning
  pins of the USB connector
- atusb/README-PCB: added the 16-17 mm hole for the USB connector to the
  specification
- atusb/: bumped all version numbers to 20110330
2011-03-31 03:27:11 -03:00
Werner Almesberger
6487c32387 atben/README-PCB, atusb/README-PCB: clarifications regarding holes
- atben/README-PCB, atusb/README-PCB: illustrations now contain holes
- atben/README-PCB, atusb/README-PCB: clarified distinction antenna via
  vs. hole
2011-03-29 07:53:03 -03:00
Werner Almesberger
74706cfae8 atusb.brd: updated USB-A-PLUG-SMT footprint (fped put the layers wrong) 2011-03-24 21:19:08 -03:00
Werner Almesberger
6ff2740e9b atusb.brd: moved FIDUCAL label away from mounting hole; bumped version number
- atusb.brd: "FIDUCIAL" label was on hole; moved it
- atusb.brd: bumped version to 110325
2011-03-24 13:17:04 -03:00
Werner Almesberger
269f77079a added the front solder paste to the PCB fab package (for stencil production)
- atben/README-PCB, atusb/README-PCB: added *-SoldP_Front.gtp
- makefiles/Makefile.kicad (GERBERS): added $(NAME)-SoldP_Front.gtp
- makefiles/Makefile.kicad (gerbv): also show the board edge
2011-03-24 13:12:00 -03:00
Werner Almesberger
1c4c78e110 atusb.brd: added two vias to connect front and back ground at USB shield 2011-03-24 12:45:35 -03:00
Werner Almesberger
38bea8ec54 README-SMT: various small clarifications
- atben/README-SMT, atusb/README-SMT: added "component to "orientation"
- atben/README-SMT, atusb/README-SMT: added "drawings" to "footprint
  reference"
- atben/README-SMT, atusb/README-SMT: mention once more that the automatic
  insertion file is for the front only
2011-03-24 12:18:14 -03:00
Werner Almesberger
f242368deb atben. atusb: bumped version numbers to 110324 2011-03-24 05:07:50 -03:00
Werner Almesberger
af6d563194 README-PCB: relaxed antenna via size from 8 mil to <= 15 mil 2011-03-24 00:26:10 -03:00
Werner Almesberger
7e20be97dc atben.brd, atusb.brd: set solder mask opening of fiducials to 2 mm
- atben/atben.brd, atusb/atusb.brd: set solder mask clearance of fiducials
  to 0.1 mil, so that the real solder mask opening has a diameter of
  almost) exactly 2 mm (instead of 2 mm plus 10 mil)
2011-03-23 23:46:44 -03:00
Werner Almesberger
16ac7e5f4b miscellaneous integration of fiducials
- atben/atben.brd, atusb/atusb.brd: set insertion of fiducials to
  "virtual"
- makefiles/Makefile.kicad ($(NAME)-footprints.pdf): added FIDUCIAL
2011-03-23 17:44:59 -03:00
Werner Almesberger
7a9e5185b9 atusb: added two fiducial marks
- atusb.pro: added fiducial.mod
- atusb.brd: added two fiducial marks
- atusb.brd: adjusted RF and RF power ground zones
- atusb.brd (CON1): moved component reference out of the way
- atusb.brd: bumped version to 110323
2011-03-23 13:08:48 -03:00
Werner Almesberger
c3357216a5 atusb/atusb.brd: some more silk screen cleanup
- atusb.brd (C22): properly aligned reference with component center
- atusb.brd (P11, P12, P13, P14): moved reference below the pad, for
  consistency with P15 and P16
- atusb.brd (CON1): centered the component reference
2011-03-23 12:48:34 -03:00
Werner Almesberger
2aed5153ca generate SMT fab package
- makefiles/Makefile.kicad ($(NAME)-PCB_Edges.dxf, $(NAME).drl): since we
  now name the files explicitly, we need to generate them explicitly as
  well
- makefiles/Makefile.kicad (upload): added SMT fab package
- atben/Makefile (VERSION), atusb/Makefile (VERSION): bumped fab file
  version to 110323
2011-03-23 04:57:32 -03:00
Werner Almesberger
507e6c33de added project-specific footprint reference for SMT fab
- makefiles/Makefile.kicad: added generation of a footprint reference
- atben/README-SMT, atusb/README-SMT: added footprint reference, with
  explanation
2011-03-23 04:47:21 -03:00
Werner Almesberger
2e5329039c include overview images in PCB and SMT fab packages
- atben/README-PCB, atusb/README-PCB: added overview images for PCB front
  and back
- atben/README-SMT, atusb/README-SMT: added overview image for PCB front
- atben/README-SMT, atusb/README-SMT: clarified that the Gerbers are in
  the PCB archive
- makefiles/Makefile.kicad (PCB_FILES): moved list of gerbers to
  $(GERBERS)
- makefiles/Makefile.kicad (gerber): generate Gerbers only if necessary
- makefiles/Makefile.kicad (overview, uoverview, clean): renamed
  overview.png to $(NAME)-overview.png and turned phony target into file
  target
- makefiles/Makefile.kicad ($(NAME)-front.png, $(NAME)-back.png, clean):
  added generation of front and back images
2011-03-23 01:57:55 -03:00
Werner Almesberger
d53c2c2b72 added generation of SMT fab file package (in progress)
- atben/README-SMT, atusb/README-SMT: description for SMT fab files
- bom/Makefile (%-smt.csv, spotless): renamed *-smt.csv to *-bom.csv
- makefiles/Makefile.kicad (fab): split into "fab" (PCB and SMT) and
  fab-pcb (previous "fab"; only PCB)
- makefiles/Makefile.kicad (fab-smt): added packaging process for SMT
  fab files
2011-03-23 01:31:34 -03:00
Werner Almesberger
0782a3ce98 atusb: updated QFN footprints and version
- atusb.brd (U1, U2): updated QFN32-VHHD-2 and QFN32-VHHD-6 footprints
  (for solder paste size change)
- atusb.brd, Makefile (VERSION): bumped version number to 110322
2011-03-22 12:58:12 -03:00
Werner Almesberger
936d8076d9 atben, atusb: added comments specifying the grid sizes
- atben/atben.brd: added comment that grid is 0.1 mm
- atusb/atusb.brd: added comment that grid is 5 mil
2011-03-22 12:37:16 -03:00
Werner Almesberger
6caa0d36ab consolidated atben/Makefile and atusb/Makefile into common template
- makefiles/Makefile.kicad: common template for (some) KiCad projects
- atben/Makefile, atusb/Makefile: use makefiles/Makefile.kicad
2011-03-22 12:37:16 -03:00
Werner Almesberger
0960497602 atben, atusb: added Makefile targets to generate "pretty" overview images
- Makefile (overview): run prettygerbv to generate an overview image
- Makefile (uoverview): copy the overview image to
  downloads.qi-hardware.com and version it
- Makefile (clean): remove overview.png
2011-03-22 10:29:45 -03:00
Werner Almesberger
f1586fffd5 atben, atusb: updated back solder mask status (it's no longer empty)
- atben/Makefile (gerbv), atusb/Makefile (gerbv): show also the back
  solder mask layer
- atben/README-PCB, atusb/README-PCB: don't claim the back solder mask
  is empty
2011-03-22 10:03:19 -03:00
Werner Almesberger
44b49fd054 atusb.brd: more silk screen cleanup
- atusb.brd (R3): aligned reference with center of component
- atusb.brd (C16): moved component reference to less crowded place
2011-03-22 06:52:57 -03:00
Werner Almesberger
ef606f5df9 atusb.brd: some more component reference adjustments
- atusb.brd (P15, U1, VR3): moved to less crowded locations
2011-03-22 04:57:20 -03:00
Werner Almesberger
64a746b58d atben, atusb: set solder mask clearance to 5 mil and adjusted silk screen
- atben.pro, atusb.pro: set solder mask clearance to 5 mil
- atben.brd, atusb.brd: reduced silk screen outline of 0402 components
  from 5 to 3 mil
2011-03-22 03:22:39 -03:00
Werner Almesberger
18b2b919dc atben, atusb: always invoke KiCAD with absolute paths lest .pro be ignored
- atben/Makefile, atusb/Makefile (SCH, BRD): abstract path to .sch and
  .brd via variables
- atben/Makefile, atusb/Makefile (gerber, fab): pass absolute path to
  board file to pcbnew
- atben/Makefile, atusb/Makefile (gerber): put all options before the
  file name argument
2011-03-22 02:21:26 -03:00
Werner Almesberger
f17bcebce7 atusb: moved measurements to Drawings and merged Comments into silk screen
- atusb.brd: enabled Drawings layer
- atusb.brd: moved board dimensions to Drawings layer
- Makefile (clean): added $(NAME)-Drawings.gbr
- Makefile (GMERGE, gerber): use "gmerge" to merge Comments (which now
  only contains the component references) into SilkS_Front
- Makefile (gerbv): Comments is now redundant; removed it
2011-03-15 01:43:08 -03:00
Werner Almesberger
83d47a8826 atusb/Makefile (spotless): new target to also remove KiCAD "junk" files 2011-03-15 00:25:10 -03:00
Werner Almesberger
1cb69d1569 atusb.brd: changed version from 110314 to 110314
- Makefile (VERSION): bumped version from 110314 to 110314
- atusb.brd: bumped version on copper and re-generated version on silk
  screen
- atusb.brd: bumped version in board meta-data
2011-03-14 21:43:53 -03:00
Werner Almesberger
eac6e3c70b atben/README-PCB, atusb/README-PCB: various minor clarifications
- README-PCB: added imperial units for board thickness
- README-PCB: changed surface finish recommendation to prefer ENIG more
  strongly
- README-PCB: removed instructions for Gerber file generation from
  "interpretation of files section"
- README-PCB: mention common coordinate system origin
2011-03-14 21:31:55 -03:00
Werner Almesberger
6b3a049003 atben: set origin for fab files to lower left corner of board
- atusb/Makefile (gerber, fab): use pcbnew with --origin=aux for Gerber,
  drill, and DXF
- atusb/atusb.brd: set auxiliary origin to lower left corner of board
2011-03-14 13:27:15 -03:00
Werner Almesberger
695f6c2d57 atusb: use cptx to copy the version number to the silk screen
- Makefile (cptx): new target to update the version number on the silk
  screen
- atusb.brd: duplicated the version number from the back copper on the
  front silk screen
- atusb.brd: moved author tag to make room for front version number
2011-03-14 13:26:54 -03:00
Werner Almesberger
34d236cb38 atusb.brd (B1): moved component reference which overlapped with circle 2011-03-14 02:22:40 -03:00
Werner Almesberger
c06ed9e60f atusb.brd: specified which components to place (for SMT fab)
- atusb.brd (ANT1, P11...P16): marked as "virtual"
- atusb.brd (C16): marked as "normal" (not "normal+insert")
2011-03-14 02:18:54 -03:00
Werner Almesberger
970695c472 atben, atusb: added polarity markers
- atben.brd (B1), atusb.brd (B1): marked pin 1 location with a circle
- atusb.brd (D1): marked anode with a plus sign and moved the component
  reference
2011-03-14 02:14:11 -03:00
Werner Almesberger
fffa6e9867 atben/atusb: added -pcb to PCB fab archives; added "upload" target
- atben/Makefile (fab), atusb/Makefile (fab): changed name of PCB fab
  archives from $(NAME)-$(VERSION)... to $(NAME)-pcb-$(VERSION)...
- atben/Makefile (upload), atusb/Makefile (upload): new target to
  upload PCB fab archives to
  http://downloads.qi-hardware.com/people/werner/wpan/fab/
2011-03-14 00:33:40 -03:00
Werner Almesberger
cdf3825d24 atusb: added fab file generation, like in atben
- Makefile (VERSION, DIR): added board version and parent directory name
- Makefile: added generation of Gerbers and other fab files
- Makefile (gen): this never worked, changed --plot to --plot=ps
- Makefile: added section titles
- README-PCB: PCB making instructions
2011-03-12 23:43:00 -03:00
Werner Almesberger
d233c04c86 atusb/fw: implemented USB bus reset (to host) and polling of reset from host
- usb/usb.h, usb/atu2.c (usb_reset): reset the USB bus by detaching and
  re-attaching the device
- boot.c (main): force a USB reset before running the payload
- usb/atu2.c (usb_poll): test for USB reset from the host (in progress)
- usb/dfu.c (my_reset, dfu_init): register user USB reset handler
2011-03-11 17:56:41 -03:00
Werner Almesberger
e5571a26c3 atusb/fw/usb/atu2.c (handle_ep): cancel RX/TX if we receive a SETUP 2011-03-11 17:56:41 -03:00