Browse Source

stm32/boards/ARDUINO_PORTENTA_H7: Add more modules, I2C1 and SE pin.

Changes in this commit are:
- Increase CDC buffer size.
- Define I2C1 SCL/SDA pins.
- Add crypto device enable pin to board pins.
- Update deploy instructions.
- Add ntptime, urequests and logging to manifest.
pull/9177/merge
iabdalkader 2 years ago
committed by Damien George
parent
commit
8ddb4567ff
  1. 2
      ports/stm32/boards/ARDUINO_PORTENTA_H7/deploy.md
  2. 9
      ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py
  3. 7
      ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.h
  4. 1
      ports/stm32/boards/ARDUINO_PORTENTA_H7/pins.csv

2
ports/stm32/boards/ARDUINO_PORTENTA_H7/deploy.md

@ -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:

9
ports/stm32/boards/ARDUINO_PORTENTA_H7/manifest.py

@ -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
ports/stm32/boards/ARDUINO_PORTENTA_H7/mpconfigboard.h

@ -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)
@ -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)

1
ports/stm32/boards/ARDUINO_PORTENTA_H7/pins.csv

@ -231,3 +231,4 @@ I2C3_SCL,PH7
-QSPI2_D1,PD12
-QSPI2_D2,-PF7
-QSPI2_D3,PD13
-SE05X_EN,-PI12

1 PA0 PA0
Loading…
Cancel
Save