Wykres commitów

1063 Commity (e059ea7a5579bc41b88bdada376cfeed5e4ca988)

Autor SHA1 Wiadomość Data
Slyshyk Oleksiy e059ea7a55 Fix case when __FILE__ don't contain "/" nor "\\". (#745) 2018-10-30 17:56:36 +01:00
Gabriel Arjones 8c46827f54 Make udev rules and modprobe conf installation optional (#741) 2018-10-24 19:33:02 +02:00
Jerry Jacobs 7fafee24a5
Update README.md 2018-09-13 22:23:08 +02:00
Jerry Jacobs 3eab7b960f
Update ChangeLog.md 2018-09-13 22:20:46 +02:00
Jerry Jacobs 5edb9e1bb2
Update .version 2018-09-13 22:14:22 +02:00
Luc Hondareyte ae717b945d FreeBSD define LIBUSB_API_VERSION instead of LIBUSBX_API_VERSION. (#733) 2018-08-02 13:00:16 +02:00
donmr 27ce268a78 Mem write odd (#730)
* Use local variable for read_result instead of *ret, and fix
calculation of *ret for EOF case.

* Found a problem when reading an odd (%4) number of bytes at the end
of a file.  fread (on stm32) get them (say 3 bytes), then askes for
more.  do_semihosting gets a read return of 0 and tries to write that.
mem_write alters the address to be aligned and overwrites then 3 bytes
from the last read.

This change simply tells mem_write to do nothing if len is 0.

* Fix Issues from Fabien-Chouteau's review of my previous patch in isue #727.

* Revert change to mem_write() so it does not confuse fixes to do_semihosting().

* Add cast to avoid warning.

* Restore change to mem_write to return immeadiately if len == 0.
Add more comments on further possible issues and ways to handle them.
Using a branch to separate this change from others as it may need
more discussion and go on for a while...

* Remove cast of "-1" to uint32_t.  It's now compared to a ssize_t
and the compiler should be fine with that without any cast.
2018-08-01 11:05:31 +02:00
donmr ea98ab7bf2 Fix to cast in changes for SYS_READ. (#731)
* Remove cast of "-1" to uint32_t.  It's now compared to a ssize_t
and the compiler should be fine with that without any cast.
2018-08-01 11:03:35 +02:00
donmr 07a76b01ee Fixes to SYS_READ changes in PR #727 per review. (#729)
* Use local variable for read_result instead of *ret, and fix
calculation of *ret for EOF case.

* Found a problem when reading an odd (%4) number of bytes at the end
of a file.  fread (on stm32) get them (say 3 bytes), then askes for
more.  do_semihosting gets a read return of 0 and tries to write that.
mem_write alters the address to be aligned and overwrites then 3 bytes
from the last read.

This change simply tells mem_write to do nothing if len is 0.

* Fix Issues from Fabien-Chouteau's review of my previous patch in isue #727.

* Revert change to mem_write() so it does not confuse fixes to do_semihosting().

* Add cast to avoid warning.
2018-07-28 11:45:09 +02:00
donmr ca6ecc4cfd semihosting: Use local variable for read_result instead of *ret, and fix calculation of *ret for EOF case (#727) 2018-07-26 18:42:45 +02:00
Bez 79306cc5d8 Update tutorial.md (#722) 2018-07-10 19:43:48 +02:00
Deomid Ryabkov e147a8ea38 Proper flash page size calculation for F412 (#721) 2018-07-07 14:52:37 +02:00
Anatoli Klassen 1ec89bf7a2 implement IHEX for the GUI (#718)
* implement IHEX for the GUI
* use already loaded file's content to write into the flash
* fix clang casting
2018-06-27 17:16:25 +02:00
Timothy Lee 6db0fc243f Reset through AIRCR (#540) (#712)
In addition to asserting the NRST line, also request system reset through the
Application Interrupt and Reset Control Register (AIRCR).
2018-05-31 20:51:35 +02:00
trent 6f74f4a29c Fixed flash memory map for F72XXX chip_id (#711) 2018-05-31 20:41:26 +02:00
dacodas 065a4751cb st-util: send memory map for STM32F411RE (#709) 2018-05-19 08:03:02 +02:00
joede 0af68c0801 Add svg icon for .desktop file (#708)
* add SVG icon and .desktop file to Debian package. Renamed icon and .desktop file to package name.
2018-05-05 08:01:41 +02:00
Vasiliy Glazov b1b2a2f0a8 Disable static library installation by default (#702)
* Disable static library installation by default
* Added parameter for not install static lib
* Rename and move to top parameter for install static libs.
2018-04-17 10:30:31 +02:00
Slyshyk Oleksiy 88935336f8 fix #700 (#701)
* first try to fix #700
Use CMAKE_INSTALL_PREFIX for install paths

* check IS_DIRECTORY LIB_INSTALL_DIR
* fix incorrect VAR usage in condition
* changed debian/rules according to @bluca patch
2018-04-16 20:54:03 +02:00
Johannes d76e3c7c54 rename STLINK_CHIPID_STM32_L4R9 to STLINK_CHIPID_STM32_L4RX (#706) 2018-04-09 20:25:14 +02:00
Slyshyk Oleksiy aaf8e92075 Fix libusb function deprecation used for stlinkv1
Fixes #703
2018-04-01 19:16:49 +02:00
Matt Mills 095ef91818 Add support for STM32L4R9 (#699) 2018-03-29 11:18:09 +02:00
Cédric Boudinet d9d17f4cfe Icons for stlink gui (#697)
* Adding icon for ui
* renaming icons from stlinkgui to stlink-gui
* moving icons from art to src/tools/gui/art
2018-03-28 15:04:20 +02:00
Slyshyk Oleksiy 7ec1fb78ba remove exit() from lib. fix #634 (#696)
* remove exit() from lib. fix #634
* remove the UFATAL loglevel completely.
2018-03-28 10:03:38 +02:00
Vasiliy Glazov 2ee6edc9ae Add desktop file for linux gtk GUI application (#688)
* Add desktop file for linux
* installing desktop file to /usr/../share/applications
* Move desktop file to gui subdirectory.
2018-03-28 09:54:40 +02:00
Slyshyk Oleksiy 389fda2443 Update libusb to v1.0.22 (#695)
* Will not download libusb if it found.
* Checking CMAKE_LIBRARY_PATH before setting as STLINK_LIBRARY_PATH.
2018-03-28 09:49:14 +02:00
Cédric Boudinet 334fde7648 gui: Adding button to export stm32 flash memory to a file (#691) 2018-03-26 13:11:23 +02:00
Luca Boccassi e9fe4e5145 Debian packaging, CMake and README.md fixes (#683)
* Use https for debian/copyright

* Update dates and fix stanzas in debian/copyright

No need to have 2 stanzas for the same license

* Add BSD-3-clause body in debian/copyright

* Remove generated boilerplate from debian/rules

* Enable compiler hardening flags in debian/rules

* Fix source package name according to repo and docs

* Set source package section to electronics

See https://packages.debian.org/unstable/electronics/ for a full list

* Add long descriptions to packages

* Add gbp.conf file

* Update changelog for 1.5.0 release

* Remove dirs files, not needed anymore

* Rename library package to match SONAME

As per Debian policy, shared library packages must be named after
their SONAME version.

* libstlink0: break+replace libstlink since it took over its files

* Remove triggers, not needed anymore

debhelper tools will generate the triggers file automatically since
the package name was corrected

* List GPL2+ in debian/copyright for flashloaders

* Do not append -shared to shared library on *NIX

Only on Windows it's necessary to have different file names, on *NIX
the extension is what disambiguates between a static library (.a) and
a shared library (.so).

* Clarify license of flashloaders in README.md

Fixes #682

* List all individual authors in debian/copyright

The Debian FTP masters nowadays require that all authors are listed in
debian/copyright. Print the list of authors from git.

* Move modprobe and udev files from shared library package to tools package

Multiple versions of a shared library might be installed on the same
system. Do not ship unversioned files in their packages, or they will
conflict and fail to install.

* stlink-tools: break+replace libstlink

It took ownership of udev and modprobe files from libstlink

* Fix pkgconfig include dir: remove project version

The headers are installed in /usr/include/stlink without a version
number.

* Add libstlink1 symbols file

Generated with:

 dpkg-gensymbols -P/tmp -v1.5.0 -V -e/tmp/libstlink.so.1.5.0
  -plibstlink1 -Odebian/libstlink1.symbols

* Bump Standards-Version to 4.1.3

Main changes are shared library rename and files moved, and HTTPS
URLs.

https://www.debian.org/doc/packaging-manuals/upgrading-checklist.txt

* Add debian/watch file for notifications

The Debian package tracker can automatically notify when a new
version is out.
2018-03-16 16:41:07 +01:00
ZogFluff b69c1d51b0 fix serial name size mismatch with stlink_open_usb() (#680) 2018-03-06 21:38:44 +01:00
Jerry Jacobs 1f18a18a85 doc/man: Add semihosting parameter documentation, fix styling issue with double dashhes. Fixes #674. 2018-03-01 11:51:26 +01:00
Jerry Jacobs c8dbc0adb3 doc/man: Fix reference to non-exisiting st-term tool. Fixes #676. 2018-03-01 11:40:21 +01:00
Jared Szechy 4e27060689 Fix missing flash_loader for L011 (#675)
Fixes #654 flash loader on L011
2018-02-28 13:23:45 +01:00
Anatol Pomozov af4d2eb510 Update .version file to match release number (#670) 2018-02-19 20:00:29 +01:00
texane c0d759dc41 STM32F042K6 Nucleo-32 Board reported to work, by frank@bauernoeppel.de 2018-02-18 08:01:58 +01:00
Jerry Jacobs 954a64917a
Update README.md 2018-02-16 13:08:54 +01:00
Jerry Jacobs ddf60b4899
Update ChangeLog.md
Prepare for 1.5.0 release
2018-02-16 13:06:36 +01:00
Slyshyk Oleksiy d9a114a641 Try to fix 666 issue (#668)
* try to fix #666 issue
* has fixed few function's signatures for match g_thread_new expectations.
* fix check in stlink_gui_populate_filemem_view
* fix gcc-8 warnings
* fix g_return* for proper one
2018-02-16 13:01:08 +01:00
Slyshyk Oleksiy 247b7eb9ba Try to fix #666 issue (#667) 2018-02-15 19:18:05 +01:00
Kirill Kolyshkin fbd55d9f1b debian/triggers: add (to run ldconfig) (#664)
After installing the deb package, st-util fails to start:

> $ st-util
> st-util: error while loading shared libraries: libstlink-shared.so.1:
> cannot open shared object file: No such file or directory

The reason is, no one ran `ldconfig` upon installing the library.

The solution, as per latest Debian recommendations [1], is to add an
ldconfig trigger in debian/triggers, which is what this commit does.

[1] https://www.debian.org/doc/debian-policy/#ldconfig

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-02-06 14:45:57 +01:00
texane 1969148535 STM32F72xx73xx support, from bob.feretich@rafresearch.com 2017-11-16 22:46:12 +01:00
Slyshyk Oleksiy 95b6e03ed0 fix __FILE__ base name extraction, #628 (#648) 2017-10-25 21:48:43 +02:00
Rüdiger Fortanier a2a707e4f7 Add unknown chip output (#641) 2017-10-10 13:44:26 +02:00
Mateusz Krawiec 04dc7ead42 Fix memory map for stm32l496xx boards. (#639) 2017-09-29 11:07:23 +02:00
Gwenhael Goavec-Merou 6511a7e861 fix write for microcontroler with RAM size less or equal to 32K (#637) 2017-09-16 20:37:42 +02:00
Vasiliy Glazov 1700e6a471 Added LIB_INSTALL_DIR to correct libs install on 64-bit systems (#636)
* Added LIB_INSTALL_DIR to correct libs install on 64-bit systems
* Add description for using LIB_INSTALL_DIR parameter.
2017-09-08 14:00:45 +02:00
Vasiliy Glazov 3d8ca68dca README.md: Added information about Fedora and RedHat/CentOS packages. (#635) 2017-09-07 12:59:49 +02:00
Lyle Cheatham 7b7a5c102c Minor formatting fix in FAQ section of README.md (#631)
Fixup single quotes instead of back ticks
2017-08-27 11:51:59 +02:00
yaofei zheng 4e28e303b5 update debian package version (#630)
* update debian package version
2017-08-25 10:06:21 +02:00
dflogeras 47ce70d6cf Add note about availability in Gentoo package manager (#622) 2017-07-27 14:14:35 +02:00
rdlim 691a2d5026 Fix verification of flash error for STM32L496x device (#617) (#618)
There were missing chipid checks of STM32L496xx and STM32L46x devices.
2017-07-15 20:29:55 +02:00