Skip to content

Commit bc8cab4

Browse files
committed
Provide a single version of the flasher
1 parent 96cbbf9 commit bc8cab4

File tree

6 files changed

+1926
-2059
lines changed

6 files changed

+1926
-2059
lines changed

examples/Flasher/Flasher.ino

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
STANDALONE FIRMWARE UPDATE FOR MKR Motor Shiuld
2+
STANDALONE FIRMWARE UPDATE FOR Arduino Motor Carrier
33
44
To generate a new firmware, compile D11-Firmware with target MKRMotorShield, 4KB bootloader, LTO enabled, pinmap complete
55
and execute
@@ -8,9 +8,14 @@
88
*/
99

1010
#include "Wire.h"
11-
#include "fw.h"
1211
#include "ArduinoMotorCarrier.h"
1312

13+
#ifdef ARDUINO_SAMD_NANO_33_IOT
14+
#include "fw_nano.h"
15+
#else
16+
#include "fw_mkr.h"
17+
#endif
18+
1419
#define I2C_ADDRESS 0x09
1520

1621
void setDataRunning(int cmd, uint8_t target, int data) {
@@ -52,6 +57,9 @@ void setup() {
5257
Serial.println("Reset D11");
5358
setDataRunning(RESET, 0, 0);
5459
delay(10);
60+
} else {
61+
// TODO: on NanoMotorCarrier we have the change to forcefully reset the D11; do it now if it is unresponsive
62+
5563
}
5664

5765
// reset running D11

0 commit comments

Comments
 (0)