如何在AVR Studio中打开文件?

时间:2022-06-25 20:44:32

I have two ATMEGA88 (master and slave) working correctly by sending a test[] via I2C.

通过I2C发送测试[],我有两个ATMEGA88(主机和从机)正常工作。

Working enviroment: AVR Studio using C.

工作环境:使用C的AVR Studio

What I need is to allow the master be able to send a indicated file such as mydoc.txt to the slave.

我需要的是允许主设备能够将指定的文件(如mydoc.txt)发送到从设备。

Should I be using another application to build the UI? How can I connect a different IDE and make it work? Any pro? Or sample code?

我应该使用其他应用程序来构建UI吗?如何连接不同的IDE并使其工作?有亲吗?还是示例代码?

Thanks!

2 个解决方案

#1


In order to be able to send a file from one micro-controller to another, the master must be able to read the file from somewhere. If the file is small enough, you could bundle it into the the program code. The easier way to do this will be to convert the binary content into a C array.

为了能够将文件从一个微控制器发送到另一个微控制器,主机必须能够从某个地方读取文件。如果文件足够小,您可以将其捆绑到程序代码中。更简单的方法是将二进制内容转换为C数组。

If the file can't fit into the micro-controllers flash, one solution would be to use an external memory device. Another solution would be the master controller to communicate through RS-232 with a desktop PC to read the file.

如果文件不适合微控制器闪存,一种解决方案是使用外部存储设备。另一种解决方案是主控制器通过RS-232与台式PC进行通信以读取文件。

AVR Studio is only used for programming and debugging. The actual action happens inside the microcontrollers.

AVR Studio仅用于编程和调试。实际操作发生在微控制器内部。

#2


Yes, thanks kgiannakakis According to my search, HyperTerminal probably will be the easy way to solve this question. Labview might be another approach to achieve this project.

是的,谢谢kgiannakakis根据我的搜索,HyperTerminal可能是解决这个问题的简单方法。 Labview可能是实现这个项目的另一种方法。

#1


In order to be able to send a file from one micro-controller to another, the master must be able to read the file from somewhere. If the file is small enough, you could bundle it into the the program code. The easier way to do this will be to convert the binary content into a C array.

为了能够将文件从一个微控制器发送到另一个微控制器,主机必须能够从某个地方读取文件。如果文件足够小,您可以将其捆绑到程序代码中。更简单的方法是将二进制内容转换为C数组。

If the file can't fit into the micro-controllers flash, one solution would be to use an external memory device. Another solution would be the master controller to communicate through RS-232 with a desktop PC to read the file.

如果文件不适合微控制器闪存,一种解决方案是使用外部存储设备。另一种解决方案是主控制器通过RS-232与台式PC进行通信以读取文件。

AVR Studio is only used for programming and debugging. The actual action happens inside the microcontrollers.

AVR Studio仅用于编程和调试。实际操作发生在微控制器内部。

#2


Yes, thanks kgiannakakis According to my search, HyperTerminal probably will be the easy way to solve this question. Labview might be another approach to achieve this project.

是的,谢谢kgiannakakis根据我的搜索,HyperTerminal可能是解决这个问题的简单方法。 Labview可能是实现这个项目的另一种方法。