summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* 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>