File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ nona_wlan.build.usb_product="Arduino NONA WLAN"
211
211
nona_wlan.build.usb_manufacturer="Arduino LLC"
212
212
nona_wlan.build.board=SAMD_NONA_WLAN
213
213
nona_wlan.build.core=arduino
214
- nona_wlan.build.extra_flags=-DCRYSTALLESS -D__SAMD21G18A__ {build.usb_flags}
214
+ nona_wlan.build.extra_flags=-DCRYSTALLESS -D__SAMD21G18A__ {build.usb_flags} {build.tx_rx_swap}
215
215
nona_wlan.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
216
216
nona_wlan.build.openocdscript=openocd_scripts/arduino_zero.cfg
217
217
nona_wlan.build.variant=nona_wlan
@@ -220,6 +220,12 @@ nona_wlan.build.pid=0x8057
220
220
nona_wlan.bootloader.tool=openocd
221
221
nona_wlan.bootloader.file=nona_wlan/samd21_sam_ba_arduino_nona_wlan.bin
222
222
223
+ menu.r0_tx_rx_bug=TX RX swapped
224
+ nona_wlan.menu.r0_tx_rx_bug.no=No
225
+ nona_wlan.menu.r0_tx_rx_bug.no.build.tx_rx_swap=
226
+ nona_wlan.menu.r0_tx_rx_bug.yes=Yes
227
+ nona_wlan.menu.r0_tx_rx_bug.yes.build.tx_rx_swap=-DTX_RX_NINA_SWAPPED_R0
228
+
223
229
# Arduino MKR FOX 1200
224
230
# --------------------
225
231
mkrfox1200.name=Arduino MKR FOX 1200
Original file line number Diff line number Diff line change @@ -186,15 +186,18 @@ extern Uart Serial1;
186
186
187
187
// Serial1
188
188
extern Uart Serial2 ;
189
- extern Uart SerialBLE ;
189
+ #ifdef TX_RX_NINA_SWAPPED_R0
190
+ // bug in R0, use MixedSerial(Serial2, 30) as SerialNina - 115200bps max
190
191
#define PIN_SERIAL2_RX (29ul)
191
192
#define PIN_SERIAL2_TX (30ul)
192
- //#define PAD_SERIAL2_TX (UART_TX_RTS_CTS_PAD_0_2_3)
193
193
#define PAD_SERIAL2_TX (UART_TX_PAD_2)
194
- //#define PAD_SERIAL2_RX (SERCOM_RX_PAD_1)
195
194
#define PAD_SERIAL2_RX (SERCOM_RX_PAD_0)
196
- #define PIN_SERIAL2_RTS (24u)
197
- #define PIN_SERIAL2_CTS (25u)
195
+ #else
196
+ #define PIN_SERIAL2_RX (30ul)
197
+ #define PIN_SERIAL2_TX (29ul)
198
+ #define PAD_SERIAL2_TX (UART_TX_PAD_0)
199
+ #define PAD_SERIAL2_RX (SERCOM_RX_PAD_1)
200
+ #endif
198
201
199
202
extern Uart SerialHCI ;
200
203
#define PIN_SERIALHCI_RX (23ul)
You can’t perform that action at this time.
0 commit comments