summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Move build and debug tools to 'cctools' directory.Keith Packard2009-06-04
| | | | | | These tools were merged in from the ccdbg package. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge ccdbg and altos sources into one giant repositoryKeith Packard2009-06-04
| | | | | | Keeping these separate isn't making things any easier. Signed-off-by: Keith Packard <keithp@keithp.com>
* Shrink USB output buffers, work around USB packet errorsKeith Packard2009-04-22
|
* Run-time selection between cp2103 and cc1111Keith Packard2009-04-17
|
* Add ccdumpKeith Packard2009-04-12
|
* Bump buffer pointer as data is written to cc-usbKeith Packard2009-04-06
|
* Add support for a serial-connected custom debug dongleKeith Packard2009-04-06
| | | | | This uses the cc1111 board as a custom debug dongle with faster methods for communicating with the debug target.
* Bump debug speed back upKeith Packard2009-03-15
|
* Only flip changing bits in async modeKeith Packard2009-03-07
|
* The debug port only works if reset is higher than clock. weirdKeith Packard2009-03-07
|
* Make manual bit flipping sync after every transactionKeith Packard2009-03-07
|
* Sync after manual bit readingKeith Packard2009-03-07
|
* Flip debug pins around to match telemetrumKeith Packard2009-03-07
|
* Wait for a while when switching the RESET_N lineKeith Packard2009-03-06
| | | | | | | | | | | The cc1111 manual suggests placing a 2.7kΩ resister and 1nF capacitor on the RESET_N line to filter out noise. This increases the time necessary to reset the chip to several microseconds which is longer than the interval between two USB packets. Flush the USB packet queue and sleep for a while after changing the value on the RESET_N line to make sure the chip sees the state change. Signed-off-by: Keith Packard <keithp@keithp.com>
* Sometimes the link breaks and the GET_PC command returns garbageKeith Packard2009-03-01
|
* Expose ccdbg_set_clock APIKeith Packard2009-01-05
| | | | | | | This allows applications to change the debug port clock rate on the fly. Signed-off-by: Keith Packard <keithp@keithp.com>
* Save/restore registers to host during memory operations. Cache ROM data.Keith Packard2008-12-30
| | | | | | | | | | | Because the debug port uses instructions for most operations, the debug code will clobber registers used by the running program. Save and restore these to avoid corrupting application data. If the ROM file is known, use that to return data instead of fetching it from the target to improve performance. Signed-off-by: Keith Packard <keithp@keithp.com>
* Fix flashing less than a full page of data. Verify page at a time.Keith Packard2008-12-29
| | | | | | | | The 8051 flashing code requires special help with counts with non-zero low byte. Also, instead of verifying the entire flash contents at the end, verify each page as it goes. Signed-off-by: Keith Packard <keithp@keithp.com>
* Save/restore regs when reading/writing memory. Add SFR access.Keith Packard2008-12-28
| | | | | | | | | | | The DPL and ACC registers are used by the memory access code, so they need to be saved and restored. Stuff them up high in ram for now; this should probably be fixed to pull them back to the host instead. Special SFR access is required as not all SFRs are visible in the unified address space. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch to libusb-1.0 and use async interface.Keith Packard2008-12-26
| | | | | | | | The async libusb interface offers substantial performance benefits by not making each command wait for the reply. This makes talking over this interface almost reasonable. Signed-off-by: Keith Packard <keithp@keithp.com>
* Make read_memory debug output use ccdbg_debug.Keith Packard2008-12-22
| | | | | | This makes it default to not being presented, which makes s51 much happier Signed-off-by: Keith Packard <keithp@keithp.com>
* Add preliminary version of s51, a UI clone of the 8051 emulator.Keith Packard2008-12-21
| | | | | | | | | sdcdb provides source-level debugging using the 8051 emulator, s51. By emulating that emulator a the UI level, we should be able to get source debugging right on our target platform. This is just the preliminary structure for the program with most commands not yet implemented.
* Cleanup work; separating out the cp interface to be more abstract.Keith Packard2008-12-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Autotools.Keith Packard2008-12-19
Signed-off-by: Keith Packard <keithp@keithp.com>