es-ude / EmbeddedSystemsBuildScripts

Bazel build scripts used for all projects of the embedded systems department
MIT License
4 stars 5 forks source link

platform target ElasticNode_v4_monitor has no programmer #39

Closed DerDavidos closed 3 years ago

DerDavidos commented 3 years ago

Probably only " "@AvrToolchain//platforms/programmer:stk500", " needs to be added in Toolchains/Avr/platforms/BUILD.tpl to ElasticNode_v4_monitor and ElasticNode_v3_monitor to add the programmer.

pixelboehm commented 3 years ago

The monitor board has a atmega32u4 mcu, which can be flashed with the dfu programmer. For that just use the following parameter in the target binary for the monitor target: upload_script = "@AvrToolchain//:dfu_upload_script"

DerDavidos commented 3 years ago

For now we will still use the avrdude_upload_script. So the programmer is added.