1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/common/arduino-atmega: Refactoring

- including `avrdude.mk` and `serial.mk` is no longer needed
- the avrdude flag -F is dropped
    - This allows flashing a board having an MCU different to the one
      RIOT was compiled for
    - It is better to let the user provide this flag manually if she/he really
      wants to turn safety off, knows what she/he is doing, and accepts the
      risk associated with this
- the avrdude flag -D is dropped
    - This disables issuing an erase command during flashing, however this
      erase cycle is strictly required to be able to program the flash
    - This is only needed in case of the stk500v2 bootloader, which implicitly
      does the erase cycle and fails if explicitly asked to do so
    - Only for the stk500v2 bootloader this flag is now added
This commit is contained in:
Marian Buschsieweke 2020-02-10 14:52:07 +01:00
parent 95704348ae
commit 750d3078e4
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -1,10 +1,3 @@
INCLUDES += -I$(RIOTBOARD)/common/arduino-atmega/include
include $(RIOTMAKE)/tools/serial.inc.mk
# Disable auto erase for flash and avoid error if signature doesn't match
FFLAGS_EXTRA += -F -D
# include avrdude flashing tool
include $(RIOTMAKE)/tools/avrdude.inc.mk
include $(RIOTBOARD)/common/atmega/Makefile.include