Beta Draft: 2016-07-12

A STM 32F746GDISCOVERYDevice I/O Preconfigured List

This appendix describes the proper ID and names for the various peripheral ports and buses for the STM 32F746GDISCOVERY board, which are accessible using the Device I/O APIs.

To access any device from the preconfigured peripheral list, the following permission is required:

jdk.dio.DeviceMgmtPermission(%Name%:%ID%);

You can find the names and IDs for specific devices in the tables that follow in this appendix. You must also specify an action. An empty string means open.

The tables use the following legend:

  • Device ID: an integer identifier that can be used to open the device with the methods of the DeviceManager class.

  • Device Name: the string name of a device that can be used to open it by name with the methods of the DeviceManager class.

  • Mapped: all hardware-related information regarding a peripheral, such as physical location, mapping, or port. This information enables the user to determine the peripheral's location on a target board.

  • Configuration: properties that are passed to the specific DeviceConfig constructor to open the peripheral by ID or name. The configuration can be used to open the peripheral using the DeviceManager with the appropriate configuration.

GPIO Pins

The following GPIO pins are preconfigured.


Devicel ID Device Name Mapped Configuration

1

USER_BUTTON

GPIO8.11

GPIO0

A blue user button marked as B1 on the board

controllerNumber = 8

pinNumber = 11

direction = GPIOPinConfig.DIR_INPUT_ONLY

driveMode = GPIOPinConfig.MODE_INPUT_PULL_DOWN

2

LED_1

GPIO8.1

GPIO1

A green user LED marked as LD1 on the board

controllerNumber = 8

pinNumber = 1

direction = GPIOPinConfig.DIR_OUTPUT_ONLY

driveMode = GPIOPinConfig.MODE_OUTPUT_PUSH_PULL

initValue = false


Consider the following implementation notes concerning GPIO on the STM 32F746GDISCOVERYboard.


Port Pin Arduino Connector Pin

0

8

ARD_D5

0

15

ARD_D3

1

4

ARD_D3

6

6

ARD_D2

6

7

ARD_D4

7

6

ARD_D6

8

1

ARD_D13 or USER GREEN LED

8

2

ARD_D8

8

3

ARD_D7

8

11

USER BUTTON


  • Device shared mode is not supported.

  • Unassigned controllerNumber is treated as 6.

  • Unassigned pinNumber is treated as 6.

  • Unassigned driveModeis PULL_DOWNfor input pins and OPEN_DRAIN for output pins.

ADC


Device ID Device Name Mapped Configuration

1100

WDG

WATCHDOG0

WatchdogTimer

 

Please note the following items about ADC on the STM 32F746GDISCOVERY.

  • The board supports sampling intervals (in µs):

    • 1.1

    • 2.0

    • 3.0

    • 5.0

    • 7.1

    • 9.2

    • 11.6

    • 36.4

SPI

SPI is supported on the STM 32F746GDISCOVERY. No SPI devices are preconfigured because there are no on-board SPI devices.

Consider the following implementation notes concerning SPI on the STM 32F746GDISCOVERY board.

  • Only one SPI bus is supported with controllerNumber = 2 or DeviceConfig.UNASSIGNED.

  • SPI pins are mapped as follows.


    SPI Line Hardware Pins
    MOSI ARD_D11 or PB15
    MISO ARD_D12 or PB14
    SCK ARD_D13 or PI1
    SS, CS, or NSS ARD_D5

  • Only address 0 is supported.

  • clockFrequency.UNASSIGNED is treated as 10MHz.

  • Supported wordLength are only 8bit and 16bit. wordLength.UNASSIGNED is treated as 8.

  • Only BIG_ENDIAN and LITTLE_ENDIAN ordering are supported. UNASSIGNED bit ordering is treated as BIG_ENDIAN

I2C


Device ID Device Name Mapped Configuration

200

ARD_UNO_I2C

I2C1.29

I2C0

I2C pins on Arduino UNO connector or D14 and D15 pins on STM32F746G-DISCOSTM 32F746GDISCOVERY board

controllerNumber=1

address=29

addressSize=7

clockFrequency=100000


Please note the following items about I2C on the STM 32F746GDISCOVERY.

  • Only one I2C bus is supported. It is SDA and SCL pins that are present in Arduino UNO connector on a board. 

  • The controllerNumber can be set to 1. If DeviceConfig.UNASSIGNED is set to controllerNumber, it is treated as 1.

  • Both address sizes I2CDeviceConfig.ADDR_SIZE_7 and I2CDeviceConfig.ADDR_SIZE_10 are supported. DeviceConfig.UNASSIGNED is treated as I2CDeviceConfig.ADDR_SIZE_7.

  • The value of DeviceConfig.DEFAULT when applied to the addressSize is 7.

  • The clockFrequency can be set to 100 000 and 400 000. DeviceConfig.UNASSIGNEDis treated as 100 000.

UART

The following UART devices are preconfigured:


Device ID Device Name Mapped Configuration

100

USART6

UART0

USART pins mapped to ARD_D0 and ARD_D1 pins

controllerName = USART6

baudRate = 115200

dataBits = DATABITS_8

parity = PARITY_NONE

stopBits = STOPBITS_1

flowcontrol = FLOWCONTROL_NONE


Please note the following items about UART on the STM 32F746GDISCOVERY.

  • Only two UART controllers are supported on the STM 32F746GDISCOVERY device.

  • UART with controller name USART6 is mapped to ARD_D0 and ARD_D1 pins on the Arduino connector.

  • UART with controller name USART1 is connected to ST-LINK embedded dongle and visible on host computer after connecting the board and installing ST-LINKv2 device drivers. This port can also be used for the device logging and can not be opened by application in such case.

  • PARITY_MARK and PARITY_SPACE are not supported.

  • Software and hardware flow control types are not supported.