STM32 Discovery kit Iot Node and Arduino
Posted: Sat Jul 23, 2022 1:38 pm
Hi All
I bought this board a couple of years ago and have just got around to playing with it. The MCU is a STM32L475 and the chip has VGT6 stamped on it.
I went through a ST tutorial of using the STMCubeIDE and STMCubeMX to flash the LED and that works fine, so I think the toolchain is OK
I decided to try some programming through the Arduino IDE , to play with the built in sensors and maybe attach the board to Blynk. I found the board library on github (https://github.com/stm32duino/BoardMana ... index.json) and installed that. The library exposed the boards as excepted and I chose Generic STM32L4 series and part number L475VGTx . When the libraries where installed, you get some sample code and I chose BarometricPressureSensor. The code compiles OK and uploads to the board, but there is no output to the serial monitor. I am sure the code loads OK as the LED stopped blinking (from ST tutorial)
The compiler output is
I have left the rest of the tool settings at the default for this board. The code has a conditional output to the serial monitor, thus
To ensure the problem was not the pin being held LOW, I added an unconditional write to the console in Setup(), thus
Can anyone tell me what I am doing wrong?
Thanks
I bought this board a couple of years ago and have just got around to playing with it. The MCU is a STM32L475 and the chip has VGT6 stamped on it.
I went through a ST tutorial of using the STMCubeIDE and STMCubeMX to flash the LED and that works fine, so I think the toolchain is OK
I decided to try some programming through the Arduino IDE , to play with the built in sensors and maybe attach the board to Blynk. I found the board library on github (https://github.com/stm32duino/BoardMana ... index.json) and installed that. The library exposed the boards as excepted and I chose Generic STM32L4 series and part number L475VGTx . When the libraries where installed, you get some sample code and I chose BarometricPressureSensor. The code compiles OK and uploads to the board, but there is no output to the serial monitor. I am sure the code loads OK as the LED stopped blinking (from ST tutorial)
The compiler output is
-------------------------------------------------------------------
STM32CubeProgrammer v2.11.0
-------------------------------------------------------------------
ST-LINK SN : 066FFF3736324D5043224537
ST-LINK FW : V2J40M27
Board : STM32L4IO
Voltage : 3.22V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x415
Revision ID : Rev 4
Device name : STM32L4x1/STM32L475xx/STM32L476xx/STM32L486xx
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M4
BL Version : --
Debug in Low Power mode enabled
Memory Programming ...
Opening and parsing file: BarometricPressureSensor.ino.bin
File : BarometricPressureSensor.ino.bin
Size : 25.29 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 12]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.916
RUNNING Program ...
Address: : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully
I have left the rest of the tool settings at the default for this board. The code has a conditional output to the serial monitor, thus
Code: Select all
// don't do anything until the data ready pin is high:
if (digitalRead(dataReadyPin) == HIGH)
To ensure the problem was not the pin being held LOW, I added an unconditional write to the console in Setup(), thus
Code: Select all
Serial.println("Starting...");
Thanks