52 Commits

Author SHA1 Message Date
Konrad Beckmann
df51d0518b scripts: Improve and add colors to prints 2021-02-05 19:16:28 +01:00
Konrad Beckmann
8cc6e9abcc flash_multi.sh: Add support for chip erase 2021-02-04 11:45:09 +01:00
Konrad Beckmann
2afcef8333 stlink: Reduce adapter speed to 500kHz 2021-01-09 22:47:54 +01:00
Konrad Beckmann
41b2c4506d flash.sh: Use openssl sha256 if sha256sum cannot be found 2021-01-06 04:35:09 +01:00
Konrad Beckmann
bb118f82d3 flash.sh: Warn if sha256sum can't be found 2021-01-06 03:50:27 +01:00
Konrad Beckmann
e9274afa57 Support 4k address offset properly 2021-01-05 08:02:16 +01:00
Konrad Beckmann
dacb4f8cc4 flash_multi.sh: Let users power cycle in case of failure 2021-01-04 06:12:49 +01:00
Konrad Beckmann
ed7c392113 flash_multi.sh: Print correct chunk index 2021-01-04 04:34:37 +01:00
Konrad Beckmann
9d3fff844f flash_multi.sh: Don't reuse the variable i 2021-01-03 19:26:36 +01:00
Konrad Beckmann
8717a0c09e Only calculate hash of the "size" first bytes 2021-01-03 19:03:21 +01:00
Konrad Beckmann
e6da67307f test.sh: Fix path 2021-01-03 18:40:07 +01:00
Konrad Beckmann
1a19e0e051 Move test.sh to the root 2021-01-03 18:38:35 +01:00
Konrad Beckmann
2e9db30a61 Add test 2021-01-03 18:36:32 +01:00
Konrad Beckmann
5201a867bc use string.h instead of memory.h 2021-01-03 18:24:39 +01:00
Konrad Beckmann
9aa05c54e5 flash_multi.sh: Retry flashing each chunk 3 times 2021-01-03 18:01:54 +01:00
Konrad Beckmann
9c5641459b flash.sh: Fix variable names and helptext 2021-01-03 17:50:55 +01:00
Konrad Beckmann
74466b26bb Perform SHA256 hashing of ram and flash 2021-01-03 16:09:47 +01:00
Konrad Beckmann
74589b1f2c flash.sh: Handle error when which doesn't find openocd 2021-01-02 19:21:37 +01:00
Konrad Beckmann
6a6d00dc52 Set VERBOSE=1 to increase verbosity 2021-01-02 19:08:15 +01:00
Konrad Beckmann
d47ae666ee Use OBJDUMP variable 2021-01-02 01:14:28 +01:00
Konrad Beckmann
9b22d8afae Allow configurable objdump path using GCC_PATH and DEFAULT_OBJDUMP 2021-01-02 01:12:07 +01:00
Ben
c9cbb69e61 Use optional environment variable to locate openocd
A user may specify the environment variable OPENOCD
to locate openocd. If not specified, it will be found
using the configured PATH.
2021-01-01 23:32:00 +01:00
al3x10m
789d9c39e0 support for raspberry pi 2020-12-30 20:41:20 +01:00
Nikolay Antsiferov
d9000738d1 Fix flash_multi.sh stat for macOS 2020-12-30 20:37:24 +01:00
Konrad Beckmann
9ee629fb95 Support erasing 4kB sectors 2020-12-29 15:29:03 +01:00
Konrad Beckmann
19d45e00cb Handle unaligned payloads 2020-12-29 02:37:42 +01:00
Konrad Beckmann
f58b959c84 Add CFLAGS --pedantic 2020-12-28 16:17:55 +01:00
Konrad Beckmann
7a3f517224 Fix warnings 2020-12-28 16:08:41 +01:00
Konrad Beckmann
4348775920 Improve Makefile output readability 2020-12-28 16:08:35 +01:00
Konrad Beckmann
59b50a4988 Send WriteEnable before each BlockErase 2020-12-26 07:00:45 +01:00
Konrad Beckmann
a505ebf90d Only erase the blocks that will be programmed 2020-12-26 06:12:00 +01:00
Konrad Beckmann
cf85e71d87 Always allow 16MB flash 2020-12-26 05:22:42 +01:00
Konrad Beckmann
769c953a9e Use SPI_MODE to make sure it works with any flash 2020-12-26 05:22:29 +01:00
Konrad Beckmann
1aac5ec7f5 flash.sh: Revert automatic size 2020-12-11 12:50:26 +01:00
Konrad Beckmann
71aa1dbf39 flash.sh: Set size correctly
Speeds up flashing and avoids flashing garbage after the provided binary.
2020-12-11 02:40:26 +01:00
Konrad Beckmann
098f3faeb7 Remove bc dependency 2020-12-10 21:57:26 +01:00
Konrad Beckmann
7b2f83bede Support jlink and stlink with ADAPTER env. variable 2020-12-10 11:34:55 +01:00
Joksan Alvarado
476e0e138f Added the ability to automatically download sources from the STM32CubeH7 SDK.
- Added configuration options for SDK location and version.
- Separated source tracking variables into application C sources, SDK C sources, SDK ASM sources and
  and SDK headers (the latter were added so they can be downloaded individually).
- Added automated prerequisite generation for SDK object file rules. This compensates for the fact
  that chains of implicit rules cannot work anymore as they did, as file location can't be
  determined through vpath anymore (downloaded files don't exist until after rules are procesed).
2020-12-02 09:51:42 +01:00
Joksan Alvarado
874d131a5c Several minor improvements aimed for speed and extensibility.
- Added a configuration option to move the interrupt vector table to ITCM and made it active.
- Relocated all code and IVT sections to ITCRAM for even faster execution in the linker script.
  Also relocated exception unwinding sections from FLASH to DTCM and updated comments.
- Disabled data section initialization (not needed anymore as DTCM is now initialized by the
  debugger).
2020-12-01 01:52:53 +01:00
Thomas Roth
dfa212af96 Run from RAM 2020-11-29 12:32:36 +01:00
Konrad Beckmann
9c282f0e8e Fix quad mode for MX flash 2020-11-28 13:47:39 +01:00
Konrad Beckmann
cd2b029926 Add support for flashing >1M using flash_multi.sh 2020-11-27 01:44:14 +01:00
Konrad Beckmann
3b9080e4de Make flash.sh block until programming is done 2020-11-27 00:22:25 +01:00
Konrad Beckmann
940432c714 Add support for address and size 2020-11-26 23:47:30 +01:00
Konrad Beckmann
efd8c4ea18 Convert files to unix line endings 2020-11-26 22:30:20 +01:00
Konrad Beckmann
7b4326f524 Add proper quad spi support for MX and ISSI 2020-11-26 22:26:21 +01:00
Konrad Beckmann
ae8e8682c9 Wait for Write In Progress Bit when programming 2020-11-26 16:28:16 +01:00
Konrad Beckmann
5548a924c0 Wait for status register when programming 2020-11-26 16:08:04 +01:00
Konrad Beckmann
c4ec9a4283 Add gitignore 2020-11-26 16:05:04 +01:00
Thomas Roth
543bea8600 Use stlink, fix usage from other directories 2020-11-24 14:16:14 +01:00