Gunar Schorcht
cbbd02d520
dist/tools: rename esptool to esptools to use it for several tools
...
The directory `dist/tools/esptool` already contains a couple of ESP tools and not only esptool.py. As the location for a couple of ESP related tools, it is more clear to call it `esptools` instead of `esptool`.
2022-03-04 08:34:19 +01:00
Karl Fessel
415f9aa0ee
make/emulate: use unix sockets with qemu
2022-03-03 17:15:50 +01:00
krzysztof-cabaj
4bb5487f86
tools/cpy2remed: Addition of cpy2remed programmer to nucleo-L552ZE-Q
2022-02-11 08:27:25 -05:00
9eec6f4eb1
makefiles/openocd: remove DEBUG_ADAPTER and PRE_FLASH_CHECK_SCRIPT vars
2022-01-08 12:05:46 +01:00
135e0a6ca1
makefiles/tools/pyocd: remove deprecated FLASH_TARGET_TYPE var
2022-01-08 12:04:51 +01:00
6e8d3246e6
makefiles/tools: remove deprecated FFLAGS_OPTS variable
2022-01-08 12:04:02 +01:00
8d3d012acd
Merge pull request #17248 from benpicco/riotboot_serial-btn
...
riotboot_serial: enter bootloader mode by pin
2022-01-05 14:14:00 +01:00
krzysztof-cabaj
940f1eea4b
tools/elf2uf2: addition of new PROGRAMMER for rpi-pico board
2021-12-15 11:40:10 -05:00
Benjamin Valentin
4be2829537
makefiles: riotboot_serial: default to STDIO BAUD for PROG_BAUD
...
If $(PROG_BAUD) is not set, default to the boards $(BAUD).
2021-11-21 23:08:31 +01:00
Erik Ekman
cbfe502cc6
cpu/esp32: Reset when starting debugging
...
To avoid 'Target not examined yet' error
2021-10-18 20:11:32 +02:00
Erik Ekman
1c6d7dcdaf
tools/openocd: Make verifying flashed image optional
...
Checksumming flash is not supported on xtensa platform:
Warn : not implemented yet
make: *** [.../RIOT/examples/saul/../../Makefile.include:796: flash] Error 1
2021-10-15 10:13:25 +02:00
Erik Ekman
2df7d499c8
tools/openocd: Export IMAGE_OFFSET only when flashing
2021-10-15 10:12:40 +02:00
Erik Ekman
3d7d211157
cpu/esp: Always create app.elf.bin and partitions.bin
...
Even if programmer is not esptool
2021-10-15 09:59:38 +02:00
chrysn
648e014184
makefiles: Sort >/dev/null and 2>&1
...
Redirecting `2>&1 >/dev/null` moves stderr to stdout first and then
stdout to /dev/null; when checking for command existence or otherwise
silencing output, this is usually not desired (but only starts producing
errors when the actual command fails, which is often not tested).
2021-08-24 14:41:54 +02:00
Benjamin Valentin
a82d4e6683
makefiles: add riotboot_serial as flash tool
2021-07-20 22:51:15 +02:00
46cc7dedf3
tools/programmer.inc.mk: programmer wrapper is not used by default
2021-04-28 09:46:02 +02:00
Francisco
31a6aa1c9c
Merge pull request #16307 from iosabi/esp_table
...
esptool: Allow to pass the partition table CSV.
2021-04-27 14:26:51 +02:00
iosabi
4d40e55edf
esptool: Allow to pass the partition table CSV.
...
The partition table of the device in the esp8266 and esp32 based boards
was set to a default table with one "factory" partition with exactly
the size of the compiled firmware. This is problematic if we want to
update the device on the field.
This patch allows to set the `PARTITION_TABLE_CSV` variable from the
Makefile to a .csv file with a custom partition table, for example this
could be set to a partition table with two ota entries, or with a single
factory entry but of a known fixed size.
2021-04-26 22:50:45 +00:00
Benjamin Valentin
a0b83f8195
makefiles/tools/programmer: do not use programmer wrapper
...
While nice at first, this causes more issues than it's worth for
a slightly more pretty output.
Hiding information from developers is not a good idea, especially when
it comes to an often finicky programming step.
While in theory error output should be caught, there are enough
cases where the programmer will get stuck in a loop or require user
input that hiding programmer output by default is a bad idea.
2021-04-21 00:48:42 +02:00
Gerson Fernando Budke
1d55c85f24
makefiles/tools/avrdude: Add xmega cpu conditions
...
The current script don't allow change debug protocol and not allows
set proper part name for xmega. This make DEBUGPROTO optional with
JTAG as default protocol. It add a filter for atxmega to add proper
AVRDUDE_PROGRAMMER_FLAGS.
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-15 20:16:10 -03:00
Francisco Molina
930eb03a8c
makefiles/tools/programmer: do not use wrapper with pyocd
...
When multiple debuggers are connected then pyocd shows an interactive
UI to select the user interface to flash, with python wrapper this
is lost.
Until a similar functionality is implemented with the wrapper disable
the programmer wrapper script when pyocd is used.
2021-03-02 14:43:19 +01:00
c181ba2fe4
Makefile.include: use programmer wrapper to silent output
2021-02-25 12:59:39 +01:00
367a8e8574
Merge pull request #16083 from benpicco/cosy
...
make: add cosy as a build target
2021-02-24 13:59:11 +01:00
Benjamin Valentin
d95f21fd67
make: add cosy as a build target
...
`cosy` is a graphical memory usage analyzer.
It is a great tool, but pretty hidden.
Add it as a build target so it can be easiely summoned for any application and board.
2021-02-24 12:11:00 +01:00
e515c11b9f
tools/pyocd: deprecate FLASH_TARGET_TYPE
2021-02-23 21:22:56 +01:00
1c2132a508
tools/openocd: deprecate DEBUG_ADAPTER and PRE_FLASH_CHECK_SCRIPT
2021-02-23 21:22:55 +01:00
3b9682788c
tools/uf2conv: add deprecation warning about FFLAGS_OPTS
2021-02-23 21:22:55 +01:00
571a113a50
tools/dfu-util: add deprecation warning about FFLAGS_OPTS
2021-02-23 21:22:55 +01:00
b1d0fe0b2b
tools/cc2538-bsl: add deprecation warning about FFLAGS_OPTS
2021-02-23 21:22:55 +01:00
3ed4734821
tools/bossa: add deprecation warning about FFLAGS_OPTS
2021-02-23 21:22:55 +01:00
7e21f25779
make: namespace openocd PRE_FLASH_CHECK_SCRIPT variable
2021-02-23 21:22:55 +01:00
3f02e3bd12
boards/openmote*: introduce CC2538_BSL_FLASHFFILE variable
...
This allows to remove the last cc2538-bsl programmer conditional at board level
2021-02-23 21:22:54 +01:00
6b6abed29b
make: namespace bossa optional flags variable
2021-02-23 21:22:53 +01:00
9b0a626f0a
make: namespace cc2538-bsl optional flags variable
2021-02-23 21:22:53 +01:00
7ac924f15c
make: namespace uf2conv specific flags variable
2021-02-23 21:22:53 +01:00
6d5a5b9528
make: namespace dfu-util optional flags var
2021-02-23 21:22:53 +01:00
6f47505997
make: namespace pyocd FLASH_TARGET_TYPE variable
2021-02-23 21:22:52 +01:00
603186f913
make: namespace openocd DEBUG_ADAPTER variable
2021-02-23 21:22:52 +01:00
554a02ff2a
tools/esptool: cleanup preflash and qemu integration
2021-02-23 11:01:38 +01:00
430770886b
make/esptool: fix FFLAGS inclusion order for qemu
2021-02-22 10:35:38 +01:00
9153e39dab
makefiles/edbg: refactor to use wrapper script
2021-02-21 12:56:43 +01:00
ed8f14e5fb
makefiles/cc2538-bsl: define FFLAGS as overridable + cleanup
2021-02-09 18:53:16 +01:00
dbd8c7975e
makefiles/jlink: define FLASHER var as overridable
2021-02-09 18:48:00 +01:00
Francisco
4736a881fc
Merge pull request #15512 from aabadie/pr/tools/emulator_term
...
tools/emulator: allow use with *term targets + introduce EMULATE=1 instead of emulate target
2021-01-13 17:12:00 +01:00
dylad
7fc5bb483b
makefiles/dfu-util: automatically generate DFU_USB_ID
2021-01-12 11:34:22 +01:00
a6d856a5be
makefiles/tools/qemu: cleanup makefile
2021-01-11 21:31:49 +01:00
08108f85b4
make: replace emulate% targets with EMULATE variable
2021-01-11 21:31:48 +01:00
753e13fba3
tools/renode: disable gui and hide log by default
...
Use RENODE_SHOW_LOG and RENODE_SHOW_GUI from the command line to enable them
2021-01-11 21:31:48 +01:00
c8ce41c9de
dist/tools/emulator: allow use of term with emulators
2021-01-11 21:31:48 +01:00
b801d57f0c
Merge pull request #15555 from dylad/pr/makefiles/dfu_optionnal_dfuse
...
boards: move DfuSe specific argument at board level
2020-12-09 14:08:50 +01:00
dylad
ecc8296897
makefiles/dfu-util: Update dfu-util.inc.mk for DFU bootloader
2020-12-09 11:59:28 +01:00
8b8a3ffbd9
Merge pull request #15491 from aabadie/pr/tools/qemu_debug
...
tools/emulator: add debug feature with qemu emulator
2020-12-08 11:23:33 +01:00
Benjamin Valentin
b7b208829f
tools/uf2: add uf2conv.py as a flash tool
2020-12-02 10:20:17 +01:00
83bbe00d62
makefiles/serial.inc.mk: define a default port for linux/darwin
2020-12-02 09:20:57 +01:00
Francisco
9f3eebd9b9
Merge pull request #15543 from aabadie/pr/tools/robotis-loader_common
...
boards/opencm904: move robotis-loader in common place
2020-12-02 09:18:51 +01:00
Francisco
b251ca2d4f
Merge pull request #15541 from aabadie/pr/make/goodfet_common
...
tools/goodfet: define variables in common makefile
2020-12-02 09:18:18 +01:00
4ff5b749b0
tools/renode: qemu: move debug script in common place
2020-12-02 08:43:44 +01:00
ae20873510
makefiles/qemu: add DEBUGGER variables
2020-12-02 08:43:43 +01:00
c066f21b68
Merge pull request #15539 from aabadie/pr/tools/stm32loader
...
tools/stm32loader: introduce common makefile
2020-12-02 08:24:05 +01:00
Francisco
0b8ec0ba11
Merge pull request #15490 from aabadie/pr/tools/renode_refactor
...
tools/renode: refactor integration + add debugger support
2020-12-01 23:16:11 +01:00
2dc5a69939
Merge pull request #15535 from aabadie/pr/tools/lpc2k_pgm
...
tools/lpc2k_pgm: refactor build system integration
2020-12-01 21:13:52 +01:00
966221f5a4
boards/opencm904: move robotis-loader in common place
2020-12-01 18:31:41 +01:00
2e1b26bb8e
makefiles/tools/goodfet: add common makefile
2020-12-01 18:06:20 +01:00
14d19ee790
makefiles/tools/stm32loader: add common makefile
2020-12-01 17:26:57 +01:00
a74e005fbb
makefiles/tools: add common mspdebug makefile
2020-12-01 15:52:17 +01:00
9d3cbd5933
make: add common lpc2k_pgm programmer makefile
2020-12-01 13:39:28 +01:00
aea9d4b0a7
make: move lpc2k_pgm in tools/
2020-12-01 13:36:36 +01:00
72e1958953
makefiles/tools: add common esptool configuration
2020-12-01 10:22:26 +01:00
82eb48964d
makefiles/qemu: renode: define FLASHFILE
2020-11-27 13:39:23 +01:00
2bcc754fe5
makefiles/tools: ensure all FLASHER/DEBUGGER* vars are overridable
2020-11-27 13:39:22 +01:00
9eadcb38f3
makefiles/renode: make emulate depends on board config file
2020-11-27 13:39:22 +01:00
dcaa9eb59c
makefiles/tools/renode: improve debugger management
...
When using the debug target, the GDB server is spawned automatically in the background. This logic is moved in a external script
2020-11-27 13:39:22 +01:00
4707de2a5f
makefiles/renode: add debugger config
2020-11-27 13:39:22 +01:00
3cca8f4ee2
makefiles/tools/renode: control renode via Makefile only
2020-11-27 13:37:52 +01:00
3bafb6e2bc
makefiles/edbg: include openocd.inc.mk to define debug vars
2020-11-25 22:31:13 +01:00
c6ad85a7b0
boards: don't include programmer logic at board level
2020-11-25 22:31:13 +01:00
benpicco
09defe017f
Merge pull request #15483 from aabadie/pr/makefiles/renode_dont_export
...
makefiles/renode: dont export EMULATOR* variables
2020-11-25 00:33:35 +01:00
e1558b4487
makefiles/tools/qemu: add common qemu makefile
2020-11-20 14:17:54 +01:00
b7c1f7b2dd
makefiles/renode: don't export EMULATOR variables
2020-11-20 12:30:49 +01:00
Francisco Molina
6a606e3f21
makefiles/tools/cc2538-bsl: use --write-erase to avoid mass erase
2020-11-16 09:13:57 +01:00
Francisco Molina
8f1e2cbe00
dist/tools/cc2538-bsl: add Makefile to build dependencies
2020-11-16 09:13:57 +01:00
Gilles DOFFE
cca2d70808
tools/openocd: add stlink-dap adapter
...
stlink-dap adapter is based on stlink-dap.cfg and is used by
STM32MP1 family.
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
8a35e114c0
tools/openocd: add GDB_PORT_CORE_OFFSET variable
...
In case of muticore CPU, openocd opens one debug port by core for gdb.
Thus add a GDB_PORT_CORE_OFFSET port offset to select the right port
for debugging.
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Gilles DOFFE
4f3ea5c74c
tools/openocd: select target core
...
For multi-arch SoC like STM32MP1, the right target core has
to be selected to avoid debugging the wrong default cpu.
This is done using openocd command 'targets ${OPENOCD_CORE}'.
OPENOCD_CORE has to be set in board Makefile.include file.
In case it is not set, the command just display available targets, thus it
has no effect on already existing boards using openocd.
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>
2020-11-13 10:43:08 +01:00
Jelle Haandrikman
f18d3f5663
dist/tools/openocd/stlink: handle new and old Openocd version
2020-08-31 17:34:25 +02:00
Leandro Lanzieri
3c7174cfc5
makefiles/openocd-adapters/iotlab: default to JTAG transport
2020-08-17 17:47:24 +02:00
Francisco
4ba791fcb9
Merge pull request #14724 from fjmolinas/pr_cc2538_makefile.include
...
boards: use common Makefile.include for cc2538 boards
2020-08-11 11:29:35 +02:00
Francisco Molina
75dbad847c
makefiles/tools/cc2538-bsl.inc.mk: specify BAUD for reset
2020-08-11 09:57:09 +02:00
Cenk Gündoğan
f49eb4305c
dist: tools: import fixdep from linux
2020-08-10 12:17:59 +02:00
Leandro Lanzieri
9c10580ba4
dist/tools/kconfiglib: introduce own genconfig.py tool
...
This tool unifies multiple functionalities needed by the Kconfig
integration into one tool.
2020-08-07 18:17:37 +02:00
Benjamin Valentin
871f51dca6
openocd-adapters/raspi.inc.mk-fix: fix typo
...
Somehow a space has sneaked in here, breaking the variable expansion.
2020-08-04 19:04:39 +02:00
benpicco
52bf3096cf
Merge pull request #14480 from benpicco/openocd-adapters_swd
...
openocd-adapters: select transport based on adapter
2020-08-04 11:37:32 +02:00
Benjamin Valentin
0d59e7dc6e
makefiles/tools/openocd-adapters: default to SWD, but make it configurable
2020-08-04 10:36:39 +02:00
Benjamin Valentin
1a04425d7b
makefiles/buspirate: add Bus Pirate as Debug Adapter
...
Flash with PROGRAMMER=openocd DEBUG_ADAPTER=buspirate
2020-08-03 14:10:42 +02:00
c8b0f972df
makefiles/tools: add common bossa makefile
2020-07-10 11:56:11 +02:00
Cenk Gündoğan
7aa499d5f1
make: use $(MAKE) instead of direct make
call
2020-07-03 12:03:06 +02:00
Benjamin Valentin
2325dba871
makefiles/bossa: move USB reset logic to common file
2020-06-11 11:56:35 +02:00
benpicco
75d82cc9b8
Merge pull request #14209 from btcven/2020_06_04-common-cfg
...
boards/cc26x2_cc13x2-based: move config to common directory
2020-06-10 15:32:11 +02:00
99ca736b53
stdio_semihosting: Initial include of Semihosting-based STDIO
2020-06-09 10:15:49 +02:00
aff18b9599
tools/openocd: add OPENOCD_DBG_EXTRA_CMD
2020-06-09 10:14:57 +02:00