following warning:
warning: missing initializer for field ‘set_swdclk’ of ‘stlink_backend_t
{aka struct _stlink_backend}’ [-Wmissing-field-initializers]
silence the warning and expand comment
* - Fixed bug where stlink_jtag_reset in stlink_open_usb() was never being called because the STLINK version was being checked before it had been initialized
- Added support for stlink_set_swdclk() to adjust the SWD clock speed. For example, to set at 4Mhz, 1.8Mhz, 900Khz, etc similar to in the official ST-LINK utility. NOTE: The default when STLINK is powered appears to be 1.8Mhz (looked at scope traces) but it retains whatever was set before.
* Fixed tab->space
* flash: added easy way to reset the target
st-flash does now have a 'reset' command
makes it easy to reset the Target
* Doc: added man page entry for reset command of st-flash
Trying to load a elf image on a stm32f401xe can result in a problem
of flash write if a section does not start on a flash sector because
the memory map given to gdb was wrong.
This patch adds the following operations:
- SYS_OPEN
- SYS_CLOSE
- SYS_WRITE
- SYS_READ
- SYS_ERRNO
- SYS_REMOVE
- SYS_SEEK
The use of utility functions mem_read() and mem_write() add an
unnecessary memcpy() call. All buffer transfer could be done directly in
the sl->q_buf data instead of using a temporary transfer buffer.
However, given the relative slowness of target memory transfer, I don't
think that this has a big impact on performances
I run into flashing error with stm32f030. With some
debugging I find out that the mass erase bit was dropped
when flash programming bit already set on FLASH_CR.
This cause erase and write error with my stm32f030
board.
Mass erase never need the programming bit. Turn off the
programming bit make stlink flash stm32f030 successfully.
Since STLINK V1 cannot read voltage, and attempting to do so breaks the
USB communications, this patch will revert the behaviour to just blindly
doing 32-bit writes on these programmers.
- Replace 'typedef reg' by 'struct stlink_reg'
- Prefix the 'sl' global variable with a 'g'
- Rename 'j' -> 'k' and 'i' -> 'j' variables
- Rename 'hex' variable into 'hextmp'
- Fix unused parameter
- Use a correct printf format for gsize
- Use correct MAX macro
- Use correct data casting
- Do not use 'GTK_STOCK_*' anymore
- Do not use 'gtk_tree_view_set_rules_hint'
- Remove unused functions
- Explicitly cast data type
- Enable Werror