问题标签 [winavr]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
2123 浏览

eclipse - 在 Eclipse 下使用 arduino Ethernet.h

我想使用 Eclipse 进行 Arduino 开发,但我遇到了一些问题。

我使用 Eclipse + Eclipse AVR 插件 + WinAVR。我设法将 Arduino 核心库编译成静态库。

现在我想使用我的以太网屏蔽,但我找不到在 Eclipse 中使用以太网库的方法。

  1. arduino-022/libraries/Ethernet将文件夹从我的项目文件夹复制arduino-022/libraries/SPI到我的项目文件夹,然后我对包含的内容进行了一些更改以工作。结果是关于DDRB和的一些错误PORTB

  2. 将文件夹 Ethernet 和 SPI 添加到项目的包含路径中。结果如下。

我不知道还能做什么。有没有人尝试过这样的事情?

0 投票
1 回答
2410 浏览

avr - 在 AVR Studio 5 中构建 AVR Studio 4 项目

我有一个 AT90USB162 Minimus AVR,我想将它集成到一个项目中。我从Minimus USB下载了演示代码。这是一个将 AVR 用作 COM 端口的驱动程序。该项目是为 AVR Studio 4 编写的,不能在 AVR Studio 5 中按原样加载。

如何转换项目以用于 AVR Studio 5?

0 投票
3 回答
1332 浏览

ada - 使用 AVR-Ada 处理任务

我正在尝试使用 AVR-Ada 实现任务功能,但是当我运行 make 时,我收到以下错误消息:

那么,我该怎么做才能启用任务功能呢?

我的包只有非常简单的测试任务:(我只是想检查任务功能)

0 投票
1 回答
1447 浏览

windows - AVR WINAVR 编译器的 CMake 错误

它失败并显示以下输出:

所以,在 Linux 和 Win 7 下一切正常,但在 XP SP2、SP3 下我有这个错误。这意味着我的控制器 AVR 编译器不正确,CMake 无法使用 WINAVR 编译器提供测试程序。第一次运行这个错误也是在win7下,但是第二次运行后就消失了。我在 windows reg 中写了路径。我重写了编译器、sh 和 cmake 的路径。但是错误仍然存​​在。

0 投票
2 回答
3650 浏览

string - 在 FLASH 中留下数据数组(字体) - AVR GCC 中的 PROGMEM

啊,PROGMEM,指针,指向指针的指针,指针的地址......我的头晕了。

我有相关字体的数据数组

我在其中添加了 PROGMEM

这在另一个类似的结构中被引用;

结构定义为;

我是否正确假设这需要更改为;

当我这样做时,它抱怨说

对于 FONT_INFO 变量中的这一特定行;

然后使用函数绘制;

最后绘制字形;

我在我头上:/谁能给我一些指导?我花了几个小时尝试使用 PGM_P 和 pgm_read_byte 等都无济于事 - 我总是在屏幕上看到垃圾。

救我!

0 投票
1 回答
1498 浏览

c - Using LUFA as CDC for String Transmission

I'm trying to use my AT90USB162 (Minimus USB board) as a CDC for sending a constant string to an hyperterminal connected to a comport. So I got the demo code Demos/Device/ClassDriver/VirtualSerial and made some changes:

In makefile:

In VirtualSerial.h:

  • Removed all entries related to Joystick.h, since AT90USB162 does not have it
  • Created the header of functon SendSpecificString() (in exchange of the old CheckJoystickMovement(), which was related to the Joystick.h)

In VirtualSerial.c:

From SetupHardware(): removed call to Joystick_Init(), so the new code is (without comments).

Removed the void CheckJoystickMovement(void) and created the void SendSpecificString(void), based on the first, but without the joystick stuffs:

And finally in main(): exchanged the CheckJoystickMovement() call to the void SendSpecificString() call.

So, code builds and I burn into AT90USB162 and enable it. The comport (#6 in my case) appears and I can connect to it from hyperterminal (I'm using HypoTerminal most of the times, but same result occurs with Microsoft Hyperterminal). When I connect to the comport, the terminal does not get stuck as expected, however I expected also that the string ReportString = "data packet" would appear continuously in hyperterminal, but actually nothing appears. Then, what would have I missed?

Thank you.

0 投票
1 回答
1179 浏览

c - 使用 WinAVR 将 .h 和 .c 文件链接到 Main.c

我正在使用 WINAVR 对 Amtel ATMEGA328 芯片进行编程。

我正在尝试将库链接到我的文件,但我不确定该怎么做,以及我需要在 make 文件中编辑什么。

我有一个想要包含的 lcd_lib.h 和 lcd_lib.c 文件

在我的 main.ci 中有 #include "lcd_lib.h";

我将这些文件与我的 make filer 和 main.c 文件放在同一目录中。

0 投票
2 回答
5343 浏览

c++ - C++;日食链接器错误

所以努力让我的 Eclipse IDE 运行,这样我就可以在 Eclipse 中开发我的 arduino uno。我的 C++ 很弱,所以这可能是我的一个 nube 错误。

我有一个 Blink 程序,用于查找我从 arduino IDE 的库中编译的 arduino 库。我的代码指向头文件,我的代码发现它很好;意思是我可以点击:

并查看标题

这个:“C:/programs/arduino-1.0/hardware/arduino/cores/328p_lib/libuno_library.a”是一个有效的路径......但我收到以下错误:

0 投票
1 回答
451 浏览

c++ - 在 eclipse c/c++ 中遇到 winavr gcc 问题

我在创建 ac 项目时使用 eclipse c/c++,然后它没有在工具链列表中显示 winavr gcc,但我已经在 c 驱动器中安装了 WinAVR-20100110,并且我的 eclipse 也在同一目录中。它显示 cygwin、solarize、linux、macosx、mingw gcc

0 投票
1 回答
232 浏览

c - 使用 MCU-ATMega 1280 进行实时数据记录的多中断

我的问题是关于实时数据记录和多中断。我正在尝试通过 winAVR 对 MCU-ATMega 1280 进行编程,使其从正交编码器(20um/pitch)读取脉冲并将数据存储到闪存中(Microchip SST25VF080B,串行 SPI 协议)。编码器完成操作后(大约 2 分钟),MCU 将数据从内存中导出到屏幕。我的代码如下。

但我不知道为什么它不能正确运行。有两种错误:一种错误是某些点突然脱离趋势,另一种错误是编码器运行缓慢但突然跳值。跳跃似乎只有在转弯时才会出现。

我认为问题可能只存在于数据存储中,因为除了跳跃之外,趋势就像我预期的那样发生。我只想问我是否像在程序中那样运行两个 ISR。是否存在一个 ISR 在运行时会被另一个 ISR 干预的情况?根据 atmega 1280 数据表,似乎当一个 ISR 发生时,在前一个中断完成其例程后不允许发生其他中断。