Skip to content

Commit

Permalink
V2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
felias-fogg committed Aug 28, 2023
1 parent 0e2442e commit 84fde9b
Show file tree
Hide file tree
Showing 5 changed files with 200 additions and 73 deletions.
5 changes: 5 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -771,3 +771,8 @@ when levelshifter is true
* fixed the error in power() that VSUP was not set to OUTPUT
* added a few declarations in dw-link.h
* dealt with the warnings in avrisp()

## Version 2.3.0 (28-Aug-2023)
* added two new possible clocks: alternate RC clock and ULP
* added new command: `monitor clock`

3 changes: 3 additions & 0 deletions docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,12 @@ Finally, there are commands that control the settings of the debugger and the MC
| monitor ck8prescaler | program the CKDIV8 fuse (i.e., set MCU clock to 1MHz if running on internal oscillator) (*) |
| monitor ck1prescaler | un-program the CKDIV8 fuse (i.e., set MCU to 8MHz if running on internal oscillator) (*) |
| monitor rcosc | set clock source to internal RC oscillator (*) |
| monitor arcosc | set clock source to alternate RC oscillator (*) |
| monitor extosc | set clock source to external clock (*) |
| monitor xtalosc | set clock source to crystal oscillator (*) |
| monitor slowosc | set clock source to internal low frequency oscillator (125 kHz) (*) |
| monitor ulposc | set clock source to ultra low power oscillator (32 kHz) (*) |
| monitor clock | report about clock source and divider |
| monitor hwbp | set number of allowed breakpoints to 1 (i.e., only HW BP) |
| monitor swbp | set number of allowed user breakpoints to 32 (+1 system breakpoint), which is the default |
| monitor speed [l\|h] | set communication speed limit to **l**ow (=150kbps) or to **h**igh (=300kbps); without an argument, the current communication speed and limit is printed |
Expand Down
13 changes: 10 additions & 3 deletions docs/wishlist.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# Wish list for dw-link


* design new adapter board
* test prototype of such a board
* design case for debugger and print it

* a mode where reads & writes are double-checked: "monitor
verify/noverify". Could be on or off by default.

* perhaps make conditional/repeating breakpoints faster: less register saving/restoring (would give you perhaps 10 ms out of 40 ms), shorter pauses by GDB (but where to control this?)
* integrate programmer into code so that one also could do ISP programming

* `monitor clock` command that displays the current clock setting





List of tasks done:

* integrate programmer into code so that one also could do ISP programming

* design new adapter board
* test prototype of such a board

* Adding response in dw-link to one special byte in order to be able to identify the debug serial port
* writing Python function for identifying debug port

Expand Down
10 changes: 6 additions & 4 deletions dw-link/dw-link.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ void power(boolean);
boolean gdbStop(boolean);
boolean gdbReset();
void gdbSetFuses(Fuses);
void gdbGetFuses();
void getInstruction(unsigned int &, unsigned int &);
boolean twoWordInstr(unsigned int);
void simTwoWordInstr(unsigned int, unsigned int);
Expand Down Expand Up @@ -60,6 +61,7 @@ boolean targetDWConnect();
int targetISPConnect();
boolean targetStop();
int targetSetFuses(Fuses);
int targetGetClockFuses(Fuses &, Fuses &);
void targetReadFlashPage(unsigned int);
unsigned int targetReadFlashWord(unsigned int);
void targetReadFlash(unsigned int, byte *, unsigned int);
Expand Down Expand Up @@ -116,7 +118,7 @@ byte DWflushInput();
void enableSpiPins();
void disableSpiPins();
byte ispTransfer(byte);
byte ispSend(byte, byte, byte, byte, boolean);
byte ispSend(byte, byte, byte, byte, boolean, boolean);
boolean enterProgramMode();
void leaveProgramMode();
unsigned int ispGetChipId();
Expand All @@ -140,8 +142,8 @@ int gdbTests(int &);
int targetTests(int &);
int DWtests(int &);
void ISPprogramming(boolean);
byte getch ();
void fill ();
byte getch();
void fill();
void empty_reply();
void breply (byte b);
void avrisp ();
void avrisp();
Loading

0 comments on commit 84fde9b

Please sign in to comment.