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

spi_fatfs.c incompatible with freertos? #25

Closed
stantonious opened this issue Jun 23, 2024 · 3 comments
Closed

spi_fatfs.c incompatible with freertos? #25

stantonious opened this issue Jun 23, 2024 · 3 comments

Comments

@stantonious
Copy link

Hello - We're looking to access the sd card via spi_fatfs (similar to allon_sensor_tflm_fatfs) while use the freertos OS. It appears all of the sample spi_fatfs.c are using the eventlibrary, and are incompatible. While porting over spi_fatfs.c, the dp_task timesout trying to acquire with the following output

sensor_type: 15
OV5647 on by app done
g_cursensorstream: 0
os_app_dplib_cb event=-76
send to dp task 0x11c
os_app_dplib_cb event=-77
send to dp task 0x11e
dp_recv_msg_event=0x11c
dp_recv_msg_event=0x11e
main_recv_msg=0x203
main_recv_msg.msg_data=0x11c fail
main_recv_msg=0x203
main_recv_msg.msg_data=0x11e fail

Is there an example spi_fatfs that uses freertos?

Thanks!

@stevehuang82
Copy link
Collaborator

Hi @stantonious,

We don't have this example, we'll need some time to port it.

@stevehuang82
Copy link
Collaborator

Hi @stantonious,

We've added fatfs support for the allon_sensor_tflm_freertos application.
You can enable FATFS support by setting SUPPORT_FATFS=1.

EPII_CM55M_APP_S/app/scenario_app/allon_sensor_tflm_freertos/common_config.h.
#define SUPPORT_FATFS 1 // 0 : send images via SPI, 1 : save images to SD card

@stantonious
Copy link
Author

Thankyou!

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

2 participants