Arduino IDE with MikroE M4 Clicker Board - Board Manager
Posted: Fri May 28, 2021 7:39 am
Hi All
Just got myself a Mikroe M4 Clicker board, it has a STM32F415RGT6 on it, and breaks out to one Click socket. It will arrive on Monday.
ITs like this, but with USB-C rather than Mini-USB like this suggests. They havent updated the doco yet it seems.
https://download.mikroe.com/documents/s ... l-v100.pdf
I have installed the STM32 for Arduino (https://github.com/stm32duino/Arduino_Core_STM32) into the board manager, and have selected the STM32F4 series and Generic F415RGTx board from the menus.
I am just wondering about Serial Ports. I know this has 4 USARTs and 2 UART's, but I don't know what the capability is of it in the Arduino IDE.
Does the USB Port function as a UART, so you can print to Terminal for debugging etc, and then the Click Socket has a UART on it too, so that is another one?
Would the USB be 'Serial' or Serial0, and the Click socket be Serial1 ?
Looking at the Datasheet, it looks like UART4 can be on Pins 14/15 (PA0/PA1) or 51/52 (PC10/PC11), and UART5 can be on 53/54 (PC12/PD2).
Looking at the schematic of this board, PC10/PC11 go to the Click socket for RX/TX and PC12/PD2 are not connected to anything at all. PA0/PA1 for UART4 go to the AN pin of the Click socket, and to an LED, so those are not much help. So it looks like PC10/PC11 is the UART for the pins anyway.
But would the USB port also feature as a UART for the likes of Terminal?
In the Arduino IDE menu, it has a dropdown for the USB Support, saying None, "CDC (Generic 'Serial' supersede U(S)ART)", CDC (no generic 'Serial'), and HID (keyboard and Mouse).
Never used a STM32 before, so never seen options quite like this on a board in the Arduino IDE
If I select the 2nd option, "CDC Generic 'Serial' etc" will that then mean it will be a Serial port? I'm not sure what CDC is.
Sorry if the question is dumb or obvious.
I also assume the USARTs could be used as UART's ? But can they be in the Arduino IDE with this board manager addon? It looks like the only USART pins that are valid on this board in particular go to pins 56/57 which is PB6/PB7, which is on an IO header, so those could be used if supported.
Thanks
Just got myself a Mikroe M4 Clicker board, it has a STM32F415RGT6 on it, and breaks out to one Click socket. It will arrive on Monday.
ITs like this, but with USB-C rather than Mini-USB like this suggests. They havent updated the doco yet it seems.
https://download.mikroe.com/documents/s ... l-v100.pdf
I have installed the STM32 for Arduino (https://github.com/stm32duino/Arduino_Core_STM32) into the board manager, and have selected the STM32F4 series and Generic F415RGTx board from the menus.
I am just wondering about Serial Ports. I know this has 4 USARTs and 2 UART's, but I don't know what the capability is of it in the Arduino IDE.
Does the USB Port function as a UART, so you can print to Terminal for debugging etc, and then the Click Socket has a UART on it too, so that is another one?
Would the USB be 'Serial' or Serial0, and the Click socket be Serial1 ?
Looking at the Datasheet, it looks like UART4 can be on Pins 14/15 (PA0/PA1) or 51/52 (PC10/PC11), and UART5 can be on 53/54 (PC12/PD2).
Looking at the schematic of this board, PC10/PC11 go to the Click socket for RX/TX and PC12/PD2 are not connected to anything at all. PA0/PA1 for UART4 go to the AN pin of the Click socket, and to an LED, so those are not much help. So it looks like PC10/PC11 is the UART for the pins anyway.
But would the USB port also feature as a UART for the likes of Terminal?
In the Arduino IDE menu, it has a dropdown for the USB Support, saying None, "CDC (Generic 'Serial' supersede U(S)ART)", CDC (no generic 'Serial'), and HID (keyboard and Mouse).
Never used a STM32 before, so never seen options quite like this on a board in the Arduino IDE
If I select the 2nd option, "CDC Generic 'Serial' etc" will that then mean it will be a Serial port? I'm not sure what CDC is.
Sorry if the question is dumb or obvious.
I also assume the USARTs could be used as UART's ? But can they be in the Arduino IDE with this board manager addon? It looks like the only USART pins that are valid on this board in particular go to pins 56/57 which is PB6/PB7, which is on an IO header, so those could be used if supported.
Thanks