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

Multi-core file IO test cases #29

Closed
2 tasks done
oyama opened this issue Jun 10, 2024 · 4 comments · Fixed by #30
Closed
2 tasks done

Multi-core file IO test cases #29

oyama opened this issue Jun 10, 2024 · 4 comments · Fixed by #30

Comments

@oyama
Copy link
Owner

oyama commented Jun 10, 2024

  • Design test cases
  • Implement unit tests
@oyama
Copy link
Owner Author

oyama commented Jun 10, 2024

littlefs-project/littlefs#483
http://elm-chan.org/fsw/ff/doc/appnote.html

Littlefs and FatFs do not support multiple opens to the same file. In the sense that it can be opened, but not with the expected results.

A case to consider is when file descriptors are passed from fifo and each core seeks the file before operating on it?

Parallel read/write to different files may be a realistic test.

@oyama oyama changed the title Multi-threaded test cases Multi-core test cases Jun 10, 2024
@oyama oyama changed the title Multi-core test cases Multi-core file IO test cases Jun 10, 2024
@oyama
Copy link
Owner Author

oyama commented Jun 11, 2024

https://forums.raspberrypi.com/viewtopic.php?t=311709

To update Flash from core1, functions need to be placed in RAM; SD and Heap block devices do not have this restriction.

@oyama
Copy link
Owner Author

oyama commented Jun 12, 2024

When running with pico-sdk 1.5.1 and openocd, core1 needs to reset and sleep.
https://forums.raspberrypi.com/viewtopic.php?t=349795
This has been resolved in the develop branch

@oyama
Copy link
Owner Author

oyama commented Jun 17, 2024

To access the flash in FreeRTOS with configNUMBER_OF_CORES > 1 configuration, the firmware must be run in RAM.

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

Successfully merging a pull request may close this issue.

1 participant