Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载的工程编译后报错,提示没有freertos文件 还有fat文件系统也有错误。 #24

Closed
givemethree opened this issue May 16, 2022 · 7 comments

Comments

@givemethree
Copy link

1.freertos 报错内容


#include "FreeRTOS.h"
^~~~~~~~~~~~
compilation terminated.
In file included from src/App/Accounts/ACT_IMU.cpp:2:
src/HAL/HAL.h:9:10: fatal error: FreeRTOS.h: No such file or directory

2.注释freertos文件后编译报fat 错误。

lib/SD/src/sd_diskio.cpp:825:18: error: 'ff_diskio_impl_t' does not name a type
static const ff_diskio_impl_t sd_impl = {
^~~~~~~~~~~~~~~~
lib/SD/src/sd_diskio.cpp:832:31: error: 'sd_impl' was not declared in this scope
ff_diskio_register(pdrv, &sd_impl);
^~~~~~~
lib/SD/src/sd_diskio.cpp:832:31: note: suggested alternative: 'fdiml'
ff_diskio_register(pdrv, &sd_impl);
^~~~~~~
fdiml
lib/SD/src/sd_diskio.cpp:832:5: error: 'ff_diskio_register' was not declared in this scope
ff_diskio_register(pdrv, &sd_impl);
^~~~~~~~~~~~~~~~~~
lib/SD/src/sd_diskio.cpp:832:5: note: suggested alternative: 'lv_disp_drv_register'
ff_diskio_register(pdrv, &sd_impl);
^~~~~~~~~~~~~~~~~~
lv_disp_drv_register
*** [.pio\build\pico32\libbbe\SD\sd_diskio.cpp.o] Error 1

@givemethree
Copy link
Author

platform 安装方式的问题,重新按照标准安装方式安装platformio后 再编译就没问题了
标准安装方式: https://blog.csdn.net/JR_Smmon/article/details/120856365

@givemethree
Copy link
Author

问题关闭

@jiuwei000
Copy link

platform 安装方式的问题,重新按照标准安装方式安装platformio后 再编译就没问题了 标准安装方式: https://blog.csdn.net/JR_Smmon/article/details/120856365

我遇到了和你一样的问题,请问解决的关键点就是按这篇博文写的那样做么?我照着做了之后仍然报错没有freertos头文件。。。

@FChong96
Copy link

FChong96 commented Aug 4, 2022

我也遇到了相同的问题,缺少头文件,如果注释掉的话会出fat 错误。重装了Platform并没有解决问题。

@jiuwei000
Copy link

问题解决了,esp32的platform用3.5版本

@FChong96
Copy link

FChong96 commented Aug 4, 2022

问题解决了,esp32的platform用3.5版本
我也试一下,freertos头文件需要注释掉吗

@MXuanZero
Copy link

问题解决了,上面的解决方法试了一遍不太行,如果有人没解决的话可以去看我这个issues
#28 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants