summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* 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
|
* Add ccmanualKeith 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>
* minor s51.1 formatting fixesBdale Garbee2009-03-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add s51 manual.Keith Packard2009-03-01
| | | | | | | This documents (briefly) the s51 hex debugging interface program, including some simple commands to test the operation of the system interactively. Signed-off-by: Keith Packard <keithp@keithp.com>
* Sometimes the link breaks and the GET_PC command returns garbageKeith Packard2009-03-01
|
* Support 'set' commandKeith Packard2009-01-25
| | | | | | The 'set' command modifies target memory and registers Signed-off-by: Keith Packard <keithp@keithp.com>
* 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>
* Use custom sdcc libraries (this needs to be configured...)Keith Packard2009-01-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Have S51 ignore SIGINT while running under sdcdb.Keith Packard2009-01-05
| | | | | | | This prevents keyboard interrupts from accidentally stopping s51. Signed-off-by: Keith Packard <keithp@keithp.com>
* Add simple and timer sample programsKeith Packard2008-12-30
| | | | 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>
* Use SFR access funcs. Support 'dump' command. Add -m (monitor) flag.Keith Packard2008-12-28
| | | | | | | | | | | | Not all SFRs are visible in the unified address space, so the SFR-specific accessors are required. The dump command is the same as the various 'd*' commands, but also supports dumping program memory. The new -m (monitor) flag watches the command stream between s51 and sdcdb. 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>
* s51: get start address from ihx file. re-enable breakpoints after reset.Keith Packard2008-12-27
| | | | | | | | | Use the start of the ihx file when asked to run from 0x0, this lets sdcdb run programs from ram. The reset command clears all hw breakpoints, so reset them afterwards. 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>
* s51: add breakpoints and the ability to block awaiting a breakpoint.Keith Packard2008-12-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add more commands to s51 assembly-language debuggerKeith Packard2008-12-22
| | | | 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>
* Clean up autotools stuff.Keith Packard2008-12-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Autotools.Keith Packard2008-12-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Ignore .ihx filesKeith Packard2008-12-19
|
* Move blink example to subdirKeith Packard2008-12-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Clean up makefiles, move ihx files to .ihxKeith Packard2008-12-19
|
* ignore more stuffKeith Packard2008-12-19
|
* Add cc1111 isr stub exampleKeith Packard2008-12-19
|
* Add blink-tiny flash and ram versionsKeith Packard2008-12-19
|
* Flash multiple pages. Eliminate off-by-one error in hex_image length.Keith Packard2008-12-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add flash writing code.Keith Packard2008-12-19
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* fasterKeith Packard2008-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* cqKeith Packard2008-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add ability to load Intel HEX files. Add sample sdcc LED blinker.Keith Packard2008-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add ability to read/write arbitrary memory. Write LED blinker program.Keith Packard2008-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Move manual bit-banging debug code to separate fileKeith Packard2008-12-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* reduce clock to 50usKeith Packard2008-12-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Fill out ccdbg-command to support all debug commands.Keith Packard2008-12-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Clean up bitbanging layer. Add debug printfs.Keith Packard2008-12-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Clean up sample debug filesKeith Packard2008-12-17
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add support for input-only lines (-)Keith Packard2008-12-08
|
* Add another exampleKeith Packard2008-12-06
|
* Add libusb support and lots more examplesKeith Packard2008-12-06
|
* Random hackingKeith Packard2008-11-28
|