…ash programming works. * Cleaned up checking of FP_CTRL register in gdb-server.c * Added source code for stm32lx.s flashloader - just for reference.
Report libusb_open() error code to the user.
…rds. Consider a 128-byte write to the chip. If the last 2 bytes are considered "empty", then len is adjusted to 126, and run_flash_loader will only copy 126 bytes to RAM. However, run_flash_loader then proceeds to round up to 32 words (128 bytes) when flashing, which has the effect of clobbering those last two "empty" bytes with junk data.
Stlinky can silently fail if its magic bytes are present anywhere else in the SRAM. This change makes st-term detect all stlinky structures, warn about multiple occurences and will use the last one detected.