打印
[技术问答]

求指教,请问NUC220如何使用SPI制作.TXT 或 .CSV 档案

[复制链接]
822|12
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
nbn13579|  楼主 | 2022-7-13 11:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我不熟悉使用新塘芯片和SD卡的操作希望各位可以指导一下我。请问NUC220VE3AN如何使用SPI制作.TXT 或 .CSV 档案在SD卡并把资料存在档案内? 如果可以请各位大家指导一下**作过程。

使用特权

评论回复
沙发
海滨消消| | 2022-7-13 16:26 | 只看该作者
看看数据手册把

使用特权

评论回复
板凳
dlutccj| | 2022-7-14 09:48 | 只看该作者
首先,你要能实现无文件系统读写SD卡;之后,你要给SD卡初始化文件系统(也就是格式化);然后你就可以写文件进去了。

使用特权

评论回复
地板
nbn13579|  楼主 | 2022-7-15 01:40 | 只看该作者
明白,谢谢指引

使用特权

评论回复
5
nbn13579|  楼主 | 2022-7-15 01:42 | 只看该作者
明白,谢谢指引

使用特权

评论回复
6
foxsbig| | 2022-7-16 11:09 | 只看该作者
移植文件系统没成功吧

使用特权

评论回复
7
nbn13579|  楼主 | 2022-8-4 11:30 | 只看该作者
foxsbig 发表于 2022-7-16 11:09
移植文件系统没成功吧

还没成功,现在遇到"引用未定义函数"的问题,现时我不懂解决
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
       [cc] sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
       [cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-writer.o): In function `_write_r':
       [cc] writer.c:(.text._write_r+0x10): undefined reference to `_write'
       [cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-closer.o): In function `_close_r':
       [cc] closer.c:(.text._close_r+0xc): undefined reference to `_close'
       [cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-fstatr.o): In function `_fstat_r':
       [cc] fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'
       [cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-isattyr.o): In function `_isatty_r':
       [cc] isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
       [cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-lseekr.o): In function `_lseek_r':
       [cc] lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'
       [cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\libg.a(lib_a-readr.o): In function `_read_r':
       [cc] readr.c:(.text._read_r+0x10): undefined reference to `_read

CooCox CoIDE   Version: 1.7.5

使用特权

评论回复
8
nbn13579|  楼主 | 2022-8-4 11:52 | 只看该作者
本帖最后由 nbn13579 于 2022-8-4 12:00 编辑
foxsbig 发表于 2022-7-16 11:09
移植文件系统没成功吧

最主要我给这个卡了我很久, 我没用printf等的函数,但未找到位置把它屏蔽
[cc] c:/program files (x86)/gnu tools arm embedded/4.7 2014q2/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/lib/armv6-m\librdimon.a(rdimon-syscalls.o): In function `_sbrk':
       [cc] syscalls.c:(.text._sbrk+0x30): undefined reference to `end'

使用特权

评论回复
9
kiwis66| | 2022-8-6 13:57 | 只看该作者
可以看看野火,或者原子的视频讲解

使用特权

评论回复
10
littlelida| | 2022-8-7 13:21 | 只看该作者
好像是坐标文件的样子,这是干什么用的

使用特权

评论回复
11
nbn13579|  楼主 | 2022-8-8 16:44 | 只看该作者
kiwis66 发表于 2022-8-6 13:57
可以看看野火,或者原子的视频讲解

好的, 我看看去了解一下

使用特权

评论回复
12
Stahan| | 2022-9-9 20:33 | 只看该作者
看看数据手册

使用特权

评论回复
13
sparrow054| | 2022-9-13 20:36 | 只看该作者
楼主怎么样,解决了么,
搞不懂这两个文件格式是什么

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

13

帖子

0

粉丝