Skip to content

STM32F4 Discovery #726

Closed
Closed

Description

@Zytrahus

hi guys

I'm getting an AVR/io.h error when compiling and it looks like my board may not be compatible.
Although I'm not sure as I found some old forum posts saying it was resolved but they didn't give a clear fix.

I have tried the latest release as well as a custom/modified 3.0.3 that according to forums worked with the STM32 but it didn't work for me..

any pointer would be appreciated, thanks.

In file included from C:\Users\steph\Documents\Arduino\libraries\FastLED/led_sysdefs.h:32:0,

             from C:\Users\steph\Documents\Arduino\libraries\FastLED/FastLED.h:41,

             from C:\Users\steph\Documents\Arduino\test.ino:3:

C:\Users\steph\Documents\Arduino\libraries\FastLED/platforms/avr/led_sysdefs_avr.h:12:20: fatal error: avr/io.h: No such file or directory

#include <avr/io.h>

                ^

compilation terminated.

exit status 1
Error compiling for board STM32 Discovery F407.

Activity

  1. focalintent commented on Jan 27, 2019

    @focalintent
    Contributor

    The current STM32 code is for the STMF1 - it doesn’t look like I don’t have any STM32F4 definitions - I’ll have to add it as a platform to support in the future.

    (When it doesn’t find a platform definition, FastLED defaults to the avr platform)

  2. Zytrahus commented on Jan 27, 2019

    @Zytrahus
    Author

    Thanks for the quick and helpful response! How likely is it that it could get supported in the coming 2-3 weeks? I'm early enough on this project that switching to the Due is still an option, but if the STM32F4 Discovery could get implemented quickly then I would rather wait and not start over.

    Thanks again

  3. focalintent commented on Jan 27, 2019

    @focalintent
    Contributor

    Probably not that quickly

  4. Zytrahus commented on Jan 27, 2019

    @Zytrahus
    Author

    Got it, thanks Daniel!

  5. keukenrol commented on Oct 5, 2019

    @keukenrol

    I am looking for the F4 support as well. I am planning to make a light system with 2 WS2812B strips connected to a STM32F446 Nucleo kit.

  6. broehl commented on Oct 26, 2021

    @broehl

    I'm also looking for F4 support. Any updates?

  7. dfleck commented on Aug 23, 2025

    @dfleck

    I'm also looking for F4 support. F411 Black Pill support in particular would be awesome.

  8. zackees commented on Aug 23, 2025

    @zackees
    Member

    Can you provide me a platformio.ini example for BlackPill?

  9. zackees commented on Aug 23, 2025

    @zackees
    Member

    This is from my ci/boards.py file

    BLACKPILL_F103C8 = Board(
        board_name="blackpill",
        real_board_name="blackpill_f103c8",
        platform="ststm32",
    )
    
    # maple_mini_b20
    MAPLE_MINI = Board(
        board_name="maple_mini",
        real_board_name="maple_mini_b20",
        platform="ststm32",
    )
    

    How is this different than the maple mini? What's not compiling for you?

    i'm flying a bit blind here. As far as I know the definitions already exist and this bug should be closed?

  10. zackees commented on Aug 23, 2025

    @zackees
    Member

    I'm also looking for F4 support. F411 Black Pill support in particular would be awesome.

    as far as I know the board definitions were supplied by one of our users and was released in 3.10.2. Feel free to reopen this bug if this isn't correct.

  11. dfleck commented on Aug 23, 2025

    @dfleck

    Blue Pill is an STM32F103C8T6 so it looks like maybe your ci/boards.py should be Blue not Black??

    STM32F411 "BlackPill" Development Board Adafruit is an example Black Pill

    I'm using Arduino not platformio, perhaps this is what you're looking for?
    WeAct Studio BlackPill V2.0 (STM32F411CE)

  12. zackees commented on Aug 24, 2025

    @zackees
    Member

    So it looks like this is the correct configuration

    [env:blackpill_f411ce]
    platform = ststm32
    board = blackpill_f411ce

  13. dfleck commented on Aug 25, 2025

    @dfleck

    Yes, that is correct.

  14. zackees commented on Aug 25, 2025

    @zackees
    Member

    I'm leaving for burning man. I can maybe look at it next week

  15. dfleck commented on Aug 25, 2025

    @dfleck

    Good move skipping the wind and rain and 8 hour entry wait.

  16. added a commit that references this issue on Sep 12, 2025
  17. zackees commented on Sep 13, 2025

    @zackees
    Member

    BlackPill_STM32F4

    Official support has been added. Will be released with 3.10.3.

    If you are on ArduinoIDE then download the library manually. If you are on platformio then set the FastLED dep to github master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions