You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "potato1992 (via GitHub)" <gi...@apache.org> on 2023/10/08 01:18:32 UTC
[I] SD card Data block CRC failure when chunk size is larger than 512 [nuttx]
potato1992 opened a new issue, #10872:
URL: https://github.com/apache/nuttx/issues/10872
I need to write file to sd card with around 100kb/s, thus chunk size larger than 512 is required, in my case, I choose 4096:
```
write(fd,buff,4096);
```
The error logs is generated:
```
stm32_interrupt: ERROR: Data block CRC failure, remaining 0
```
The used board: `stm32f407ve`
sdcard: sandisk class 10
interface: sdio
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] SD card Data block CRC failure when chunk size is larger than 512 [nuttx]
Posted by "potato1992 (via GitHub)" <gi...@apache.org>.
potato1992 commented on issue #10872:
URL: https://github.com/apache/nuttx/issues/10872#issuecomment-1754122173
Problem solved. I compared my configurations carefully with PX4 flight controller's, as my pixhawk log perfectly with the same SDCard. It seems that, in addition to the Youtube SD card [guide](https://www.youtube.com/watch?v=H28t4RbOXqI&t=15s), some further config needs to be done:
1. `System Type → SDIO Configuration`, check `SDIO Card support`
2. `Device Drivers → MMC/SD Driver Support`, check `Use D0 Busy to detect Write Complete` and `SDIO block setup`
I hope more guide as well as documents can be given for nuttx, I have to investigate very deep into the system source code implementing every single function, that is surely not the behaviour of a usable OS. Most people are interested in nuttx just because they are interested in PX4, not nuttx side at all. As a comparison, RT-thread brings much better community support as well as official documents.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] SD card Data block CRC failure when chunk size is larger than 512 [nuttx]
Posted by "potato1992 (via GitHub)" <gi...@apache.org>.
potato1992 closed issue #10872: SD card Data block CRC failure when chunk size is larger than 512
URL: https://github.com/apache/nuttx/issues/10872
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org