Dean Camera
711542ee89
Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as the new 1.7 Doxygen's default stylesheet is much better.
15 years ago
Dean Camera
ff61dfa505
Fixed AVRISP project not sending a full erase-and-write EEPROM command to XMEGA targets when writing to the EEPROM instead of the split write-only command (thanks to Tim Margush).
15 years ago
Dean Camera
071e02c6b6
Add svn:eol-style property to source files, so that the line endings are correctly converted to the target system's native end of line style.
15 years ago
Dean Camera
fa1a092901
Add user callback function to the Bluetooth host demo to filter out connections from remote devices. Add in ability to reject connections based on their bluetooth device address.
...
Clean up RelayBoard project code.
Make AVRISP project clear the XMEGA target's reset register twice; this does not appear to take affect properly the first time under some circumstances.
15 years ago
Dean Camera
c9148f9b47
Added WIN_LIBUSB_COMPAT compile time option to the AVRISP programmer project to make the code compatible with Windows builds of avrdude at the expense of AVRStudio compatibility.
15 years ago
Dean Camera
9a5ae36a4f
Software PDI mode breaks unless the software USART has 100 cycles between bits.
15 years ago
Dean Camera
39d56aeffe
Fixed PDI programming mode in the AVRISP programmer project not exiting programming mode correctly (clear target Reset key twice, set /RESET pin to pullup).
...
Add newlines to the MIDI event printf() statements in the MIDI host demos.
15 years ago
Dean Camera
12a01ed72d
Increased the speed of both software and hardware TPI/PDI programming modes of the AVRISP project.
15 years ago
Dean Camera
3a2c1db675
Fixed lack of SECTION ERASE command in TPI programming mode of the AVRISP project preventing fuses from being cleared.
16 years ago
Dean Camera
7ae91099e9
Fix AVRISP-MKII clone project's TPI Chip Erase command processing - ensure erase location is the high byte in the given address space, check NVMBUSY for completion rather than the NVM Bus Enable bit.
...
Change If-Else chains over to switch statements in XPROGProtocol.c for clarity.
16 years ago
Dean Camera
5687ac7316
Fix TPI mode chip erase code not properly erasing the target memory space.
16 years ago
Dean Camera
1aeb5056d6
Ensure TPI enable timing requirements are met in AVRISP-MKII programmer. Remove invalid code in the TPI read/write functions.
16 years ago
Dean Camera
5d5e359076
Minor code cleanups, remove TemperatureDataLogger host application's Visual Studio Solution files, add LibHIDNet license files.
16 years ago
Dean Camera
60fd0ff418
Changed XPLAINBridge project to be both a USB to USART bridge and a PDI programmer, based on the state of a mode select pin.
16 years ago
Dean Camera
f3d370a777
Clean up and add more comments to the AVRISP-MKII project. Make sure the SPI_MULTI command handler supports multiple packet responses. Use slightly smaller/faster repeated indirect-load commands when retrieving the PDI target's memory CRCs.
16 years ago
Dean Camera
7f9f97c792
Update copyright year to 2010.
16 years ago
Dean Camera
f5951d1593
Reduced guard bit time in the AVRISP project PDI/TPI protocols to reduce the time needed to reverse the data communication direction.
16 years ago
Dean Camera
4600fd0cb6
Fix TPI NVM Write handler -- AVRStudio sends out writes in page sized chunks, not byte sized chunks.
16 years ago
Dean Camera
7c8f4a716f
Add first draft of the TPI NVM commands for reading, writing and erasing a target. Needs testing when physical access to a part is available.
16 years ago
Dean Camera
3222f21b84
Add dummy undocumented TPI XPROG parameters to the AVRISP project so that TPI programming mode can be entered.
16 years ago
Dean Camera
d4ca7fb44c
Fix MIT license language to make its intent clearer.
16 years ago
Dean Camera
8ecdc2b144
Rename AVRISP project folder to AVRISP-MKII.
16 years ago
Dean Camera
d1608d4af3
Added const where possible to the source functions in the Projects directory.
...
Added command timeout to the AVRISP project so that incorrectly connected targets no longer freeze the device.
Removed string descriptors from the TeensyHID bootloader to reduce its size.
16 years ago
Dean Camera
35dac470f2
Complete TPI protocol code to enter and exit TPI programming mode for the ATTINY 6-pin devices.
16 years ago
Dean Camera
65fcebf478
Complete combining of PDI and TPI target communication code files, stub out TINY NVM controller functions.
16 years ago
Dean Camera
18b0d408a9
Remove serial driver use from the AVRISP project now that it is no longer needed.
16 years ago
Dean Camera
9decc2bc59
Combine PDIProtocol and TPIProtocol into a single XPROGProtocol set of files.
16 years ago
Dean Camera
05fcf7e2a7
Rename PDIProtocol.c/.h to XPROGProtocol.c/.h as it will now handle both TPI and PDI programming.
16 years ago
Dean Camera
ce044844ea
Combine AVRISP project TPI and PDI lib directories - these protocols use the same underlying XPROG wrapper for the host-to-programmer command wrapping.
16 years ago
Dean Camera
31d7194252
Make seperate ISP, PDI and TPI folders in the AVRISP project Lib subdirectory to hold each protocol's files.
16 years ago
Dean Camera
be71f934a4
Seperate out XMEGA and TINY NVM routines into seperate files.
16 years ago
Dean Camera
461607020c
Use default NVM base address in the AVRISP programmer project in case the host programmer software doesn't set it correctly.
16 years ago
Dean Camera
2f6c096050
Complete initial working revision of PDI programming in the AVRISP project (XMEGAs can now be programmed by the firmware).
16 years ago
Dean Camera
79efd8c79e
Fix a bug in the Still Image Host Class driver where the returned block status code was being truncated.
...
Add programming support to the AVRISP project's PDI programming mode; paged memory writes are not currently functional.
16 years ago
Dean Camera
8ea051de63
Add Lock/Fuse byte programming support to the AVRISP PDI programming protocol code.
16 years ago
Dean Camera
a7880ac1cd
Fix error in AVRISP programmer when repeatedly using PDI mode via the hardware USART due to the SendByte routine not clearing the Transmit Complete USART flag.
16 years ago
Dean Camera
bb38793312
Add Doxygen documentation to the completed portions of the PDI programming protocol in the AVRISP project.
16 years ago
Dean Camera
f3e4fbe512
Use the PDI REPEAT instruction in the PDI programmer code to reduce protocol overhead and greatly improve transfer throughput. Switch bit-bang USART in the AVRISP project to Timer 1, so that Timer 0 can be used for hardware timeouts while waiting for the NVM bus or controller to become ready.
16 years ago
Dean Camera
48e50b6b57
Added memory erase handling to the PDI protocol in the AVRISP project.
16 years ago
Dean Camera
8a55d80e7e
Fix NVM commands so that memory reads and CRC generations now work correctly using unoptimized PDI commands.
16 years ago
Dean Camera
1fa27139f5
Split out NVM access code in the AVRISP project into a seperate NVMTarget.c source file and header. Make NVM register accesses use the NVM base address as set by the host, rather than using the fixed value from the XMEGA datasheet.
16 years ago
Dean Camera
3705330dd3
Use -pedantic compile time option to find and correct several minor code errors.
16 years ago
Dean Camera
307ba254d5
The AVRISP project can now enter PDI mode under both bit-bang and hardware USART connection modes, tested against the XPLAIN board hardware. Still need to complete higher level NVM access code so that the device's memories can be read and written.
16 years ago
Dean Camera
33a46b243a
PDI NVM enable is fast enough that bare polling is enough without a fixed delay in between each attempt. Make sure the USART transmitter is enabled explicitly when the USART is configured, so that repeated attempts to re-enter PDI mode don't fail due to TXEN not being set.
16 years ago
Dean Camera
66201a05e9
Fix PDI code - must send NVM enable key least significant byte first, need to make sure Tx and Rx is switched correctly including disabling the output on the Tx line when receiving.
16 years ago
Dean Camera
7e5966c1a8
Fix AVRISP PDI protocol - make sure inverted masks have the appropriate parenthesis around them, make sure the BREAK command for the hardware USART has 12 clock cycles exactly. Poll NVM Enable bit in the target's STATUS PDI register with a timeout, as it is not set immediately.
16 years ago
Dean Camera
42cfd15793
Change over AVRISP project to have both hardware USART and software USART modes for the PDI protocol, when enabled. Fix up PDI initialisation routines.
16 years ago
Dean Camera
9c8ed168e5
Fix inverted bit-banged USART logic in the AVRISP project for PDI programming. Add a delay to the clock toggling in the AVRISP project to ensure that the programming speed does not exceed 10MHz under any conditions to satisfy the limits in the datasheet for all target voltages. Fix incorrect pin being used as the DATA in in PDI programming mode.
16 years ago
Dean Camera
2281750b5f
Make sure that USB_STREAM_TIMEOUT_MS is set in the MassStorageHost ClassDriver demo, so that slow devices don't time out the data pipe. Increase pipe timeout in both MassStorageHost demos to 5 seconds to account for the really slow devices.
...
Fix TeensyHID bootloader not properly shutting down the USB interface to trigger a disconnection on the host before resetting the AVR.
16 years ago
Dean Camera
f338ddcb87
Make sure the protocol handler files are included in the Doxygen documentation of the AVRISP project.
16 years ago