tci6614 evm NAND flash只有128M 而在arm 系统上使用df -h 命令时,显示可以使用的空间只有50M 而dsp程序使用各种模块后编译完成的.OUT文件特别大最小十几M 大的有几十M甚至快过百兆了,请问 NANd flash 不够用怎么办
另外 如何在ARM 上操作 6614 的外设像gpio spi I2C UART 等 我在MCSDK包中没有找到具体的资料
希望能够有人尽快回答 比较着急这些问题 最近 这些东西都需要使用
非常感谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
tci6614 evm NAND flash只有128M 而在arm 系统上使用df -h 命令时,显示可以使用的空间只有50M 而dsp程序使用各种模块后编译完成的.OUT文件特别大最小十几M 大的有几十M甚至快过百兆了,请问 NANd flash 不够用怎么办
另外 如何在ARM 上操作 6614 的外设像gpio spi I2C UART 等 我在MCSDK包中没有找到具体的资料
希望能够有人尽快回答 比较着急这些问题 最近 这些东西都需要使用
非常感谢
1. 你可以把.out文件压缩一下,放到文件系统中,再写到NAND flash中。
2. I2C, GPIO, UART都是基本的外设,网上有很多资料可以参靠。Linux kernel的源码的文档应该都有将如何使用。
Documentation/devicetree/gpio/gpio-keystone.txt
Documentation/devicetree/bindings/i2c/davinci.txt
Documentation/devicetree/bindings/spi/spi-davinci.txt
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#include <asm/arch-davinci/i2c.h>
int i2c_fd; // I2C file descriptor
if ((i2c_fd = open("/dev/i2c/0",O_RDWR)) < 0)
{
// ERROR HANDLING; you can check errno to see what went wrong
}
// Example of I2C write for Philips I2C protocol
UInt8 output[uNBytes+1]; // store REG Address + uNBytes of data
output[0] = (UInt8) uIndex; // register address
if (ioctl(i2c_fd,I2C_SLAVE,uHwAddress) < 0)
{
// ERROR HANDLING; you can check errno to see what went wrong
}
do
{
ret = write(i2c_fd, output, uNBytes+1);
} while (ret != (uNBytes+1) && retry-- > 0);
if (retry == -1)
{
fprintf(stderr,"I2C write error\n"); fflush(stderr);
return 0;
}
你好,我还是不太明白, 第一是说自己重新制作文件系统吗 将.OUT文件 放到文件系统中,然后更新文件系统 是吗
关于第二点 MCSDK中 源码目录是空的 我一直不知道源码 在哪里 你说的目录是源码目录吧 能告诉我源码在哪里下载吗
非常感谢您的回答
.OUT文件必须放到文件系统的固定目录才能 使用,才能通过arm load dsp程序, 文件 文件系统等等本身也就是在NANDflash 所以 这么压缩是没有 用的吧 相当于在此基础上又多了压缩文件
1.需要你自己重新做文件系统将文件加入进去,mcsdk下有文档记录了使用的工具。
2. kernel 源码你可以从下面的连接获取
git://arago-project.org/git/projects/linux-tci6614.git