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

[Question] Image created for uC #31

Open
d-soliveira opened this issue Jul 6, 2021 · 0 comments
Open

[Question] Image created for uC #31

d-soliveira opened this issue Jul 6, 2021 · 0 comments

Comments

@d-soliveira
Copy link

d-soliveira commented Jul 6, 2021

HI there,


Update (7/7/21):

For some reason, I can't read the file unless I create a second one. After that I can read the first file but not the second file and so on. The new file could be empty.


My question is similar to #23.
I created an image following the README steps on Ubuntu with a dummy TXT file, and I want to use the image on a uC (STM32L4 with Zephyr RTOS).
When I try to read the file, on the uC, it can list the file but can't read the content, it returns empty. I attached the image.zip

--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at http://bit.ly/pio-monitor-filters
--- Miniterm on /dev/ttyACM0  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
*** Booting Zephyr OS build zephyr-v20500  ***
Area 4 at 0xfc000 on FLASH_CTRL for 16384 bytes
/lfs mount: 0
OK open /lfs/test.txt: 0
Read /lfs/test.txt file:  | Result: 0
/lfs/test.txt close: 0
/lfs opendir: 0
  F 0 test.txt
End of files
/lfs unmount: 0
[00:00:00.008,000] ␛[0m<inf> littlefs: LittleFS version 2.2, disk version 2.0␛[0m
[00:00:00.008,000] ␛[0m<inf> littlefs: FS at FLASH_CTRL:0xfc000 is 4 0x1000-byte blocks with 512 cycle␛[0m
[00:00:00.008,000] ␛[0m<inf> littlefs: sizes: rd 16 ; pr 16 ; ca 64 ; la 32␛[0m
[00:00:00.008,000] ␛[0m<inf> littlefs: /lfs mounted␛[0m
[00:00:00.022,000] ␛[0m<inf> littlefs: /lfs unmounted␛[0m

I have missed some configuration when I created the image?

Thank you

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

1 participant