Coder Social home page Coder Social logo

thecapn32 / stm32l0-helloworld Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pylover/stm32l0-helloworld

0.0 0.0 0.0 7.85 MB

STM32L071CZT6 boilerplate for Ubuntu.

License: GNU General Public License v3.0

Shell 0.08% C 99.49% Assembly 0.29% CMake 0.14%

stm32l0-helloworld's Introduction

STM32L0 HelloWorld!

This project is configured for target device: STM32L071CZT6. Use STMCubeIDE to generate startup assembly: stm32l0xxx.s and flash linker script: stm32l0xxx_flash.ld for other devices.

Preparation

sudo apt-get install \
  libncurses-dev \
  libusb-1.0-0-dev \
  libncursesw5 \
  openocd

STLink programmer utilities

git clone [email protected]:pylover/stlink.git
cd stlink
make clean
make release
sudo make install
sudo ldconfig
STlink v2 firmware version

Update your programmer's firmware using CubeProgrammer if required:

st-info --probe
Found 1 stlink programmers
  version:    V2J42S7
  serial:     030030000800003550334D4E
  flash:      196608 (pagesize: 128)
  sram:       20480
  chipid:     0x447
  dev-type:   STM32L0xxx_Cat_5

Toolchain

Install the latest ARM toolchain.

./scripts/install-toolchain.sh

Reboot the system, then:

Build & Debug

./scripts/rollup.sh
cd build
make clean all
make flash
Analyze *.elf file
make elfread
make elfsize

# Run both above commands.
make analyze
On-chip debug using GDB

First, start OpenOCD server:

make openocd

Then, run make gdb in another terminal.

make gdb

Or, run make debug to automate the above two commands:

make debug

Lint

pip install prettyc
cd build
make lint

stm32l0-helloworld's People

Contributors

pylover avatar thecapn32 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.