From: Fabien Le Mentec Date: Sun, 11 Sep 2011 16:36:03 +0000 (-0500) Subject: [update] notes X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=21add718cba78e17bf4c8b7c26d119c609eb34e1;p=fw%2Fstlink [update] notes --- diff --git a/stm32l/doc/notes b/stm32l/doc/notes index f9bead5..1501a13 100644 --- a/stm32l/doc/notes +++ b/stm32l/doc/notes @@ -1,9 +1,12 @@ -. reversing methodology - . Windows - . ST set tools package contains a working programmer - . IAR latest version contains a working debugger - . usblyzer to snif the corresponding usb frames - . Linux - . usb kernel module compiled with debugging enabled - . usbmon - . libusb \ No newline at end of file +. tools used for reversing under windows (all free or eval version) + . ST set tools package contains a working programmer (stvp) + . http://www.st.com/internet/com/SOFTWARE_RESOURCES/TOOL/TOOLSET/sttoolset.zip + . IAR latest version contains a working debugger + . http://www.iar.com/website1/1.0.1.0/68/1/ + . usblyzer to snif the corresponding usb frames + . http://www.usblyzer.com/ + +. Linux + . usb kernel module compiled with debugging enabled + . usbmon + . libusb diff --git a/stm32l/src/main.c b/stm32l/src/main.c index 6dbe0e7..fe77614 100644 --- a/stm32l/src/main.c +++ b/stm32l/src/main.c @@ -627,7 +627,7 @@ void stlink_enter_swd_mode(struct stlink *sl) memset(buf, 0, sizeof(sl->q_buf)); buf[0] = STLINK_DEBUG_COMMAND; - buf[1] = 0x30; /* magic byte */ + buf[1] = 0x30; /* needed byte */ buf[2] = STLINK_DEBUG_ENTER_JTAG; size = send_recv(slu, buf, 16, buf, sizeof(sl->q_buf));