In mBED OS 6.10 if I change a portion of targets.json for RT1050 to this:
"MIMXRT1050_EVK": {
"supported_form_factors": [
"ARDUINO_UNO"
],
"core": "Cortex-M7FD",
"supported_toolchains": [
"ARM",
"GCC_ARM",
"IAR"
],
Changed ARDUINO to ARDUINO_UNO (to avoid warning message in PinNameAliases.h then
the various ARDUINO_UNO_xxx defines are missing.
Compile [ 2.7%]: AT_CellularSMS.cpp
Compile [ 2.8%]: Base64.cpp
Compile [ 2.9%]: main.cpp
[Error] main.cpp@16,21: unknown type name 'ARDUINO_UNO_D7'
[Error] main.cpp@17,19: unknown type name 'ARDUINO_UNO_D6'
[ERROR] .\main.cpp:16:21: error: unknown type name 'ARDUINO_UNO_D7'
DigitalOut greenLED(D7);
^
./mbed-os/hal/include\hal/PinNameAliases.h:44:13: note: expanded from macro 'D7'
#define D7 ARDUINO_UNO_D7
^
.\main.cpp:17:19: error: unknown type name 'ARDUINO_UNO_D6'
DigitalOut redLED(D6);
^
./mbed-os/hal/include\hal/PinNameAliases.h:43:13: note: expanded from macro 'D6'
#define D6 ARDUINO_UNO_D6
^
However, if I don’t change targets.json and keep supported form factors set at ARDUINO then everything compiles, but of course then I get many warnings about how we shouldn’t be using ARDUINO form factor anymore.
Compile [ 16.6%]: pppcrypt.c
Compile [ 16.7%]: pppoe.c
Compile [ 16.8%]: ESP8266.cpp
[Warning] PinNameAliases.h@58,2: ARDUINO form factor should not be used any more => use ARDUINO_UNO [-W#warnings]
Compile [ 16.9%]: ESP8266Interface.cpp
[Warning] PinNameAliases.h@58,2: ARDUINO form factor should not be used any more => use ARDUINO_UNO [-W#warnings]
Compile [ 17.1%]: pppos.cpp
Compile [ 17.2%]: pppol2tp.c
Compile [ 17.3%]: upap.c
Compile [ 17.4%]: utils.c
Compile [ 17.5%]: vj.c
Compile [ 17.6%]: LoRaMacCrypto.cpp
Compile [ 17.7%]: LoRaMacChannelPlan.cpp
Compile [ 17.8%]: ppp_service_if.cpp
[Warning] PinNameAliases.h@58,2: ARDUINO form factor should not be used any more => use AR
I have a proposed fix in my reply below.