Problem building STM32 blinky example

Open
#2,267 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
erlang
Domain
embedded-iot

Research direction

Start by comparing the stock AtomVM/build/examples/erlang/stm32/blink_nucleo144.avm with the atomvm_examples/erlang/blinky project built using rebar3, including how the example is packaged with atomvmlib.avm or atomvmlib-stm32.avm. Check the board pins and the reported change to atomvm:platform(); the issue does not identify a specific failure or test. Done means the custom blinky.avm runs on the Nucleo STM32L4R5ZI and blinks the intended LEDs.

Written by the indexing model from the issue text.

Description

Hi,

I am new to AtomVM and am trying to build and run the stm32 nucleo144 example. I am using erlang otp v 28, the atomvm main branch and a Nucleo stm32l4r5zi board.

After building and flashing the stm32 atomvm, I flash the example AtomVM/build/examples/erlang/stm32/blink_nucleo144.avm. This loads and I get three flashing LEDs.

I then copied the erlang code from the above example to atomvm_examples/erlang/blinky example and built blinky.avm using rebar3 (the pins in the stock example are wrong for my board and I suspect the main branch has changed the return value from atomvm:platform()).

With this build setup I get a blinky.avm but loading this does not blink any LEDs. I have tried using atomvmlib.avm or atomvmlib-stm32.avm with pack-beam but neither work. Other than that I have no more ideas on what to try next

Any pointers on what I am missing would be appreciated.

Dominant language
Erlang
Stars
2.3k
Forks
171
Avg merge
4d 11h
Merged PRs (30d)
20

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from atomvm/AtomVM

All issues in atomvm/AtomVM

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.