5 years, 10 months ago.

!!!Does anyone know how to program an STM32L031K6 microcontroller??? I have zero programming skills!

I am looking for someone to tell me how to program aSTM32L031K6 microcontroller because I have zer oprogramming experience and all the resources make me even more confused. So a short gist would be fine

1 Answer

5 years, 10 months ago.

Hello Koustav, I suggest that you go to our website tutorial that introduce you to the mbed os: https://os.mbed.com/docs/v5.9/tutorials/index.html Once, you done with the tutorials, you can followed these step for your first programming:

  1. Go to this website https://os.mbed.com/platforms/ST-Nucleo-L031K6/ and add the micro controller to your Online Mbed Compiler.
  2. Open your online mbed compiler and import first example code by clicking the import button and search for Blinky, pick between this two files. /media/uploads/petern98/screen_shot_2018-06-13_at_9.37.14_am.png
  3. Plug in your board and click compile code. A file should automatically be downloaded
  4. Once you plug in your board, your computer going to detect it as a usb drive. Drag and drop the file that just downloaded to the drive and you are done.

The board's LED should start blinking. To learn more about how the micro controller work, you can search and import example codes in the Mbed compiler library and use those as references or refer to the online Mbed documentation and cookbook.

Thank you, Peter,

Mbed Team