Karl Palsson
46f1a7f29a
Merge branch 'master' of https://github.com/texane/stlink
...
Conflicts:
src/stlink-usb.c
2011-10-16 20:54:06 +00:00
Fabien Le Mentec
27cbec5d27
[fix] missing stlink_fwrite_flash decl
2011-10-16 15:36:53 -05:00
Uwe Bonnes
7abc08eeef
Remove some debug output
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-16 20:25:42 +00:00
Uwe Bonnes
06a737c4cc
Assert size only if Q_BUF_LEN is smaller UINT16_MAX
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-16 20:25:27 +00:00
Uwe Bonnes
4aa64b2daa
Size all USB receive operations
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-16 20:25:14 +00:00
Fabien Le Mentec
840f5e4821
[update] unused stlinkv2 commands
2011-10-15 17:21:35 -05:00
Fabien Le Mentec
502a540519
[fix] remove invalid free
2011-10-14 15:47:08 -05:00
Fabien Le Mentec
8b86626c36
[fix] missing parse_version in sg transport layer
2011-10-14 15:38:54 -05:00
Fabien Le Mentec
902f3a7e70
[fix] warnings
2011-10-14 14:51:16 -05:00
Uwe Bonnes
0d390c9122
Fix a signedness warning
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-14 19:28:28 +00:00
Uwe Bonnes
dc71d50b2c
Add missing functionality stlinkv2
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-13 19:25:04 +00:00
Uwe Bonnes
37f3d97e05
Implement _stlink_usb_write_mem32|8
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-13 19:25:02 +00:00
Uwe Bonnes
173831d592
Add a buffer to hold the command
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-13 19:24:53 +00:00
Uwe Bonnes
011f4e3e83
Add a pointer how to wrap USB SG commands
...
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2011-10-13 18:54:17 +00:00
Karl Palsson
59162a0b5c
More debug in prepration for working out writemem32
2011-10-12 21:24:33 +00:00
Karl Palsson
8ff74b175e
Add commentary on test methods?
2011-10-12 21:05:44 +00:00
Karl Palsson
1135f17d28
Add comments on register magic numbers.
2011-10-12 20:54:03 +00:00
Karl Palsson
bd3472751b
Support arm core cpuid register decoding
2011-10-12 20:40:24 +00:00
Karl Palsson
f85a173c46
Make stlink_core_id return the core id.
...
Instead of requiring manual extraction from the q_buf
2011-10-12 20:36:43 +00:00
Karl Palsson
75e544a724
Fix compiler warnings from missing includes
2011-10-12 19:57:54 +00:00
Karl Palsson
921b32cf58
Support "force debug" command, required by gdb server
...
usb implementation provided by Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Glued together again by me. With this change, gdbserver actually enters debug and gdbserver
stays open!
2011-10-12 19:56:19 +00:00
Karl Palsson
371b100cb0
Fix stm32l readmem32.
...
As noted, the usb transfer only has a 1 byte length, but it also has a different mode
to enter.
Tidied up and removed more duplicate and hard coded code, tried to add some notes on
where the magic came from.
No idea where the chip ids came from, I can't find them in the datasheets anywhere.
2011-10-12 01:45:28 +00:00
Karl Palsson
d12da44c74
Support version decoding on both platforms
2011-10-12 00:01:46 +00:00
Karl Palsson
c327578c7d
Use defined VID/PIDs instead of magic numbers
2011-10-11 23:41:49 +00:00
Karl Palsson
1b2e65ae06
remove the keypress to exit the app
2011-10-08 18:50:45 +00:00
Karl Palsson
4e95d10aa8
move debugging output to common code
2011-10-07 20:21:37 +00:00
Karl Palsson
8f4e7c64dc
build gdbserver with new library
...
Has a line hardcoding it to the the usb backend. I don't have a stm32vl board :(
2011-10-07 20:17:48 +00:00
Karl Palsson
baf9829fd2
Fix the missing mode calls.
...
Start cleaning up the debug output a little
2011-10-07 19:41:55 +00:00
Karl Palsson
d31396111d
Pluggable backends for libsg or libusb
...
Compiles, but not fully tested yet.
2011-10-07 19:41:18 +00:00
Karl Palsson
93ea941dff
Remove duplicate endianness
2011-10-07 02:17:36 +00:00
Karl Palsson
d060c3c040
Initial commit of workable stm32l debug
...
Move towards a standard libstlink, with backends for libusb (stm32l discovery) and scsi
passthrough (stm32vl discovery) and a common front end.
Verified that stm32l branch works much the same, but more to go for stm32vl.
2011-10-06 23:22:33 +00:00
Karl Palsson
c34ccc3e51
Tweak stm32l version to start using shared headers
2011-09-29 22:06:54 +00:00
texane
c2a0e91d47
Merge pull request #9 from whitequark/master
...
Support for data watchpoints and larger flashes
2011-07-15 06:58:05 -07:00
Peter Zotov
f31dae4f24
Allow for bigger flash block sizes (code by Geoffrey Brown).
2011-07-14 23:46:21 +04:00
Peter Zotov
bc9dc8ffa1
Implement data watchpoints (code by Geoffrey Brown).
2011-07-14 23:40:59 +04:00
Karl Palsson
c9ab9cb0c7
Build on amd64 architecture.
...
printf("%x") -> printf("%zx") when using size_t
2011-06-27 22:30:13 +00:00
Fabien Le Mentec
08a79ed0fe
[fix] make_memory_map should receive flash_size as uint32_t
2011-06-05 12:35:09 -05:00
Peter Zotov
a4126921f0
make_memory_map should receive flash_size as uint32_t.
2011-05-19 18:41:00 +04:00
texane
189d33c0db
[patch] bug fixes and documentation improvements by Greg Alexander
2011-04-18 13:29:24 -05:00
Peter Zotov
ad2470d0eb
Use real flash size from system ROM.
2011-04-08 19:08:15 +04:00
Peter Zotov
12e13cd08a
Compare chip IDs correctly.
2011-04-08 19:08:02 +04:00
Peter Zotov
7f58436b93
Updated memory maps.
2011-04-08 18:59:31 +04:00
Peter Zotov
aaf1a0cd84
Add real core identification. Now stlink may debug devices other than STM32F100RB on Discovery.
2011-04-04 20:20:18 +04:00
Peter Zotov
7c294cf6a1
Add support for remote reset commands.
2011-04-04 20:20:13 +04:00
Peter Zotov
a4ae2f66b6
Remove useless message.
2011-02-17 16:45:03 +03:00
Peter Zotov
955d5f26dd
Fix multi-page flash writing.
2011-02-17 16:44:20 +03:00
Peter Zotov
32045151e9
Reset CPU before and after flash writing.
2011-02-16 14:28:20 +03:00
Peter Zotov
d10edcd6c0
Reduce latency a bit.
2011-02-16 14:04:32 +03:00
Peter Zotov
870694cbc1
Write flash correctly.
2011-02-16 12:34:46 +03:00
Peter Zotov
36b8fe70f3
Implement hardware breakpoints.
2011-02-16 03:56:29 +03:00
Peter Zotov
9795b7e8cc
Update memory map.
2011-02-16 03:55:58 +03:00
Peter Zotov
441bffd8ed
Fix alignment when uploading data to flash.
2011-02-16 02:07:25 +03:00
Peter Zotov
13d7162b0e
Fix continue command.
2011-02-16 00:24:00 +03:00
Peter Zotov
47bb36079b
Implemented flash writing.
2011-02-16 00:01:12 +03:00
Peter Zotov
d4b435e7c0
Implement FlashErase GDB command.
2011-02-15 22:35:19 +03:00
Peter Zotov
eac53cf6d1
Implement query command and add memory map.
2011-02-15 21:50:34 +03:00
Peter Zotov
fc7b68944d
Add optional -DDEBUG to Makefile.
2011-02-15 19:48:36 +03:00
Peter Zotov
ca668a5a5f
Bind to localhost.
2011-02-15 19:47:57 +03:00
Peter Zotov
db0a8d3ddf
Use SO_REUSEADDR socket option to allow binding after ^C.
2011-02-15 19:47:45 +03:00
Peter Zotov
db2744519e
Don't exit after kill gdb command; re-listen instead.
2011-02-15 19:47:18 +03:00
Peter Zotov
a6c902d67b
Add working GDB remote debug server.
2011-02-15 05:15:28 +03:00
texane
1896ea7336
[fix] unknown bug, must use 0x40 instead of pgsize when writing flash
2011-01-14 10:49:59 -06:00
texane
8c938d019b
[update] stlink_{fread,fwrite}
2011-01-14 10:24:32 -06:00
texane
18daa64fb4
[fix] use xxx_mem8 to write buffer into sram.
2011-01-14 06:18:08 -06:00
texane
5f6a692e72
[update] write a file to flash. compile, not tested.
2011-01-14 04:45:43 -06:00
texane
27b50a3df8
[initial]
2011-01-14 02:54:52 -06:00