Fabien Le Mentec
62ea3faf1e
[add] stlinkv1_macosx_driver from marco.cassinerio@gmail.com
2011-12-16 14:07:17 -06:00
texane
2e6f2b6a65
Merge pull request #36 from UweBonnes/master
...
This batch implements and exposes the single data word access, jJTAG NRST and makes the F107 work when in Sleep mode.
2011-12-13 11:53:08 -08:00
Uwe Bonnes
9953efb763
Use the single word accesses in the flash inner loop too. We first swap the data, then the access routine swaps the data again, but cycles are cheep and so don't need another access function
2011-12-13 20:35:32 +01:00
Uwe Bonnes
03e745140d
Use the single WORD memory access
2011-12-13 20:33:58 +01:00
Uwe Bonnes
9ef6d28cb5
Modify shutdown seqeunce. Now a F107 in sleep mode reacts on the reset pin after running stlink
2011-12-13 18:41:07 +01:00
Uwe Bonnes
5eda4566d6
Determine the device parameters explicit after running
...
stlink_reset(). Otherwise a sleeping device (WFI) doesn't return the
parameters.
2011-12-13 17:48:54 +01:00
Uwe Bonnes
3e72f0b1b3
Implement and expose single 32 memory read/write
2011-12-13 17:42:37 +01:00
texane
195eced8c9
Merge pull request #35 from UweBonnes/master
...
Some cleanup patches (crashes on bad command lines, freeing of buffers, compiling dependancies...)
2011-12-12 09:05:14 -08:00
Uwe Bonnes
28956cf2c9
Expose JTAG NRST
2011-12-12 15:22:19 +01:00
Uwe Bonnes
b1e89edb57
More files to ignore
2011-12-10 21:27:54 +01:00
Uwe Bonnes
e82da443bf
Print undecode chip_id too
2011-12-10 19:01:52 +01:00
Uwe Bonnes
face2e7bab
Add explicit dependancy on the stlink archive
2011-12-10 18:22:51 +01:00
Uwe Bonnes
48b604040a
Fix leakage pathes for V1
2011-12-10 18:08:06 +01:00
Uwe Bonnes
c1130cc3a6
Fix memory leakage pathe with no V2 device found
2011-12-10 17:59:20 +01:00
Uwe Bonnes
bcee01d705
Chevck first for NULL before writing anything to the alloceted structure
2011-12-10 17:17:25 +01:00
Uwe Bonnes
2edd0530a6
Only call strtoul when there is an argument that strtoul can work on
2011-12-10 17:15:48 +01:00
le mentec fabien
592276c939
[update] apply patches from marpe@mimuw.edu.pl: stlink-sg.c unused/uninitialized variables
2011-11-22 10:04:36 -06:00
le mentec fabien
bd1249c224
[update] apply patches from marpe@mimuw.edu.pl: strict aliasing issues, busy bit waiting
2011-11-22 09:54:55 -06:00
le mentec fabien
e9586c100e
[update] apply patches from marpe@mimuw.edu.pl for flash tool: verbosity, run after programm\
2011-11-22 09:39:58 -06:00
Fabien Le Mentec
49569ccd6b
[update] blink_flash makefile
2011-11-20 15:54:00 -06:00
texane
a9237d7eb0
Merge pull request #29 from karlp/future_f1plusf4
...
Eliminate SCSI pass through, fix F1 targets again, valgrind all the goodies
2011-11-15 12:40:23 -08:00
Karl Palsson
fd332562a7
Fix merge problem with flash verify for F4
...
The F4 code had #ifdefd out the verification, as the page/sector size can be
too large to read in via a single transfer. Pull the verification out to a
separate function, the flash write was getting far too large anyway.
2011-11-15 19:56:14 +00:00
Karl Palsson
83a5eb2ed3
Merge branch 'tmaster' into future
...
This branch should work for F1 and F4 devices. It has currently been tested
with F1 value line, (a VL discovery board) programmed via gdb via both an
stlinkv1 and an stlinkv2.
F4 has _not_ yet been tested on this branch
Conflicts:
.gitignore
doc/tutorial/tutorial.pdf
example/blink/main.c
gdbserver/Makefile
gdbserver/gdb-server.c
src/stlink-common.c
src/stlink-common.h
src/stlink-usb.c
2011-11-15 00:57:09 +00:00
Karl Palsson
794a560ebf
Merge remote branch 'origin/libwork2'
2011-11-14 23:50:18 +00:00
Karl Palsson
8542b23c6e
Update readme, as this is about to get messy!
2011-11-14 23:32:50 +00:00
Karl Palsson
b55b75c3b9
Remove final reference to old sg/usb compilation flags
2011-11-14 23:01:03 +00:00
texane
5e1e150d5c
Merge pull request #28 from jnosky/master
...
Added code for gdbserver to support the full flash size of the STM32F4
2011-11-14 13:32:02 -08:00
jnosky
768a70d321
Added code so gdbserver can fully support the STM32F4 variable page sizes
...
gdbserver can now upload up to 1MB projects to flash
2011-11-14 16:20:49 -05:00
jnosky
67db39b0b3
Changed size argument to hex
...
Address was hex, size was decimal. Now uniform to be hex
2011-11-14 16:16:57 -05:00
jnosky
93b186f15b
Removed comment about STM32F4 limitations
2011-11-14 16:15:31 -05:00
texane
6ff401d4db
Merge pull request #27 from csamuelson/master
...
Unable to compile STM32F4 discovery_demo on Linux
2011-11-13 22:16:45 -08:00
Karl Palsson
09d732d776
Keep netbeans happy
2011-11-14 04:14:41 +00:00
Karl Palsson
9ac1f0d9d6
Fix memory leaks closing v1 hardware.
...
Thanks valgrind
2011-11-14 04:12:49 +00:00
Karl Palsson
dbe5391bd1
Remove dead code and unused variables
2011-11-14 04:12:29 +00:00
Karl Palsson
d019d3fc4f
Turn down default logging level.
...
And remove dead/duplicate code that is included in the opening of the device
2011-11-14 04:11:10 +00:00
Karl Palsson
e509310406
Start up stlinkv1 faster.
...
Now that we're not using sg, and we've told the kernel to ignore the device in
usb-mass storage, we don't need to close and wait 5 seconds. We can just
immediately issue the command to switch modes.
2011-11-14 03:52:19 +00:00
Karl Palsson
a76c9ccfb3
Remove lots of dead code and superfluous trace
...
Lots of the debug code is far too verbose for anything but usb tracing.
Likewise, remove all the old scsi code that was simply ifdefd out.
2011-11-14 03:47:47 +00:00
Karl Palsson
55dd45cb49
Note that many of these "examples" are busted
2011-11-14 03:24:12 +00:00
Chris Samuelson
48931eb4c5
STM32F4 discovery_demo Makefile needed correct capitalization for Linux
2011-11-13 21:20:30 -06:00
Karl Palsson
93da0169c0
Remove confusing distclean/clean dichotomy
...
in the top level, make clean cleans all stlink code.
in an application level, it only cleans that application
2011-11-14 03:03:07 +00:00
Karl Palsson
2600d78b7c
Start to keep an uptodate list of what's been tested in what combinations
2011-11-14 02:59:38 +00:00
Karl Palsson
b48420e394
Don't refetch the chip id on every single page erase.
...
And update some of the logging to be a bit tidier
2011-11-14 02:51:16 +00:00
Karl Palsson
a7c80d038f
Fix linking with new names
2011-11-14 02:47:44 +00:00
Karl Palsson
a7d14c7d4e
Adding original source of vl factory demo
...
It compiles, but I've got bugs preventing me from running this yet :(
2011-11-14 02:47:44 +00:00
Karl Palsson
fd1e3f5f2e
Build libraries for stm32l1xx and stm32f10x
...
These libraries IGNORE assert_param. Maybe later.
2011-11-14 02:47:44 +00:00
Karl Palsson
518fe1b0d0
Fix compile error with new libraries
2011-11-14 02:47:44 +00:00
Karl Palsson
d69cad8849
Rename board specific demos as appropriate
2011-11-14 02:47:44 +00:00
Karl Palsson
3ec53a0d34
Rename 32L specific examples
2011-11-14 02:47:44 +00:00
Karl Palsson
29cf5d590c
Restructure libs source to support multi platform
...
The "libstm32l_discovery" was actually the ST std periph library, plus the
CMSIS core files. Renamed it as such, and restructured the directories and
naming to make this easier to contain the std periph drivers for more than
just one board.
Verified with the LCD demo makefile, and loading it in sram again.
2011-11-14 02:47:44 +00:00
Karl Palsson
77f2d8b76c
Don't try reading device params in bad USB modes.
...
You cannot read device params when we're not in debug mode and trying to will fill the USB buffer with garbage, and you will have to
unplug and replug and start again. (which will fail, because, you're in the
wrong mode... :)
2011-11-14 02:25:31 +00:00