nomadpgmr / stm32_i2c_vs

I2C Initial Test Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STM32 + Visual Studio Code

Building and debugging a "STM32 IoT B-L475E-IOT01A" mbed based blink program with Visual Studio Code. I2C Test Application

Requirements

This is based on using Windows 10. It should not be that hard to tweak to run on Linux.

The following 3rd party tools need to be installed.

MBED Compiler and Sample Code

You will need an mbed.com compiler account. This gives you access to various sample programs for the STM32L475 MCU.

Required Changes

After downloading the above tools and sample code I found it didn't work in Visual Studio Code. The following changes needed to be made and are reflected in this repository.

  1. Copy the .json files from the program root folder to the .vscode folder.
  2. Edit the .vscode/tasks.json file to be compatible with version 2.00 file format.
  3. Edit the "Makefile" to use GNUCC compiler and correct precompiled files.
  4. Edit .vscode/launch.json to use Make, GNU Tool, and detect when the OpenOCD server is started.

Helpful Hints

  • If you are getting Exceptions on starting the debugger (F5) try adding a breakpoint at main().

About

I2C Initial Test Application


Languages

Language:C 92.3%Language:C++ 7.5%Language:Makefile 0.2%Language:Batchfile 0.0%