Skip to content

Update Arduino boards config. #9657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
# Networking
require("webrepl")
require("urequests")
require("ntptime")

# Drivers
require("lsm6dsox")
require("espflash")

# Utils
require("logging")

# Bluetooth
require("aioble", client=True, central=True, l2cap=True, security=True)
3 changes: 3 additions & 0 deletions ports/rp2/boards/ARDUINO_NANO_RP2040_CONNECT/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
// Enable networking.
#define MICROPY_PY_NETWORK (1)

// Enable MD5 hash.
#define MICROPY_PY_UHASHLIB_MD5 (1)

// Disable internal error numbers.
#define MICROPY_USE_INTERNAL_ERRNO (0)

Expand Down
2 changes: 1 addition & 1 deletion ports/stm32/boards/ARDUINO_PORTENTA_H7/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This board can programmed via DFU bootloader, using e.g. [dfu-util](http://dfu-u
To enter the DFU bootloader, double tap the reset (blue) button, or you can use `machine.bootloader()` from the MicroPython REPL.

```bash
dfu-util -w -d 2341:035b -a 0 -d 0x8040000 -D firmware.dfu
dfu-util -w -a 0 -d 2341:035b -D build-ARDUINO_PORTENTA_H7/firmware.dfu
```

Or from MicroPython source repository:
Expand Down
9 changes: 9 additions & 0 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
include("$(PORT_DIR)/boards/manifest.py")

# Networking
require("webrepl")
require("urequests")
require("ntptime")

# Utils
require("logging")

# Bluetooth
require("aioble", client=True, central=True, l2cap=True, security=True)
7 changes: 5 additions & 2 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_UART7_CTS (pyb_pin_BT_CTS)

// I2C busses
#define MICROPY_HW_I2C1_SCL (pin_B6)
#define MICROPY_HW_I2C1_SDA (pin_B7)

#define MICROPY_HW_I2C3_SCL (pin_H7)
#define MICROPY_HW_I2C3_SDA (pin_H8)

Expand Down Expand Up @@ -206,8 +209,8 @@ extern struct _spi_bdev_t spi_bdev;
#define MICROPY_HW_USB_HS_ULPI_DIR (pin_I11)
#define MICROPY_HW_USB_HS_ULPI3320 (1)

#define MICROPY_HW_USB_CDC_RX_DATA_SIZE (512)
#define MICROPY_HW_USB_CDC_TX_DATA_SIZE (512)
#define MICROPY_HW_USB_CDC_RX_DATA_SIZE (1024)
#define MICROPY_HW_USB_CDC_TX_DATA_SIZE (1024)
#define MICROPY_HW_USB_CDC_1200BPS_TOUCH (1)
#define GPIO_AF10_OTG_HS (GPIO_AF10_OTG2_HS)

Expand Down
1 change: 1 addition & 0 deletions ports/stm32/boards/ARDUINO_PORTENTA_H7/pins.csv
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,4 @@ I2C3_SCL,PH7
-QSPI2_D1,PD12
-QSPI2_D2,-PF7
-QSPI2_D3,PD13
-SE05X_EN,-PI12