用STM32做WS2812灯带测试的时候出现个错,哪位大佬帮忙看看-Arduino中文社区 - Powered by Discuz!

Arduino中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 4631|回复: 1

用STM32做WS2812灯带测试的时候出现个错,哪位大佬帮忙看看

[复制链接]
发表于 2019-12-27 16:48 | 显示全部楼层 |阅读模式
FastLED.addLeds<WS2812,PC13,GRB>(leds,NUM_LEDS);
调用这句的时候报的错,用UNO一切正常,换成STM32就出错了
用的是FastLED3.3.2

In file included from C:\Users\Mars.CN\Documents\Arduino\sketch_dec19b\sketch_dec19b.ino:1:0:


C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/FastLED.h:14:21: note: #pragma message: FastLED version 3.003.002


#    pragma message "FastLED version 3.003.002"


                     ^


In file included from C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/fastled_arm_stm32.h:5:0,


                 from C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms.h:28,


                 from C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/FastLED.h:52,


                 from C:\Users\Mars.CN\Documents\Arduino\sketch_dec19b\sketch_dec19b.ino:1:


C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/fastpin_arm_stm32.h: In instantiation of 'static volatile uint32_t* _ARMPIN<PIN, _BIT, _MASK, _GPIO>::port() [with unsigned char PIN = 32u; unsigned char _BIT = 11u; long unsigned int _MASK = 2048ul; _GPIO = __gen_struct_GPIOA; _ARMPIN<PIN, _BIT, _MASK, _GPIO>::port_ptr_t = volatile long unsigned int*; uint32_t = long unsigned int]':


C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/clockless_arm_stm32.h:22:37:   required from 'void ClocklessController<DATA_PIN, T1, T2, T3, RGB_ORDER, XTRA0, FLIP, WAIT_TIME>::init() [with int DATA_PIN = 32; int T1 = 18; int T2 = 45; int T3 = 27; EOrder RGB_ORDER = (EOrder)66u; int XTRA0 = 0; bool FLIP = false; int WAIT_TIME = 50]'


C:\Users\Mars.CN\Documents\Arduino\sketch_dec19b\sketch_dec19b.ino:23:1:   required from here


C:\Users\Mars.CN\Documents\Arduino\libraries\FastLED/platforms/arm/stm32/fastpin_arm_stm32.h:52:86: error: incomplete type '__gen_struct_GPIOA' used in nested name specifier


   inline static port_ptr_t port() __attribute__ ((always_inline)) { return &_GPIO::r()->ODR; }

发表于 2020-8-21 17:49 | 显示全部楼层
把你的构思和程序尽量上传上来,才可以大致梳理一下你的程序 我可以帮你看看 53693488@qq.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|Arduino中文社区

GMT+8, 2024-12-1 05:48 , Processed in 0.090493 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表