You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use distinctive names for SPI pin macros to avoid collisions
The "ArduinoISP" example allows the user to define arbitrary pins for use as the signal pins on the programmer board.
This is done via a set of macros.
Previously, very generic names were used for these macros. This resulted in a name collision. The core for the Renesas
boards also defines macros of the same name. Despite what the names might lead us to believe, the values of these macros
in the core do not match the Arduino pin numbers of the SPI bus. The result was that, with the default configuration of
the sketch where the USE_OLD_STYLE_WIRING macro is not defined, the sketch uses the values of the macros defined by the
core as the SPI signal pins instead of the standard SPI signal pins as the user would expect when the sketch is running
on an UNO R4 Minima, UNO R4 WiFi, or Portenta C33 board. This causes operations using the programmer to fail with an
error like:
avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
[...]
The name collision is avoided by adding a "namespace" prefix to the macro names.
0 commit comments