atmel

Is Bonding required for BLE <-> Android, iOS device communication?

邮差的信 提交于 2020-07-09 06:56:26
问题 We have a BLE device and android/ios app for communication with the device. The requirement is to have an android/ios app connect to the device without any pairing request. No security is required on the device. Hereafter a few questions around this: Q1. Is it possible at all to have an android/ios app connect to a BLE device without a pairing request? Q2. Does the bonding required for the BLE communication? Q3. What is the downside of having the device with no bonding? Is it going to drop

Atmel Studio 7.0 and its installer throw error: “Cannot find one or more components. Please reinstall the application.”

眉间皱痕 提交于 2020-06-27 10:30:12
问题 When I try to run Atmel Studio 7.0 it throws an error " Cannot find one or more components. Please reinstall the application ". This error also appears multiple times when I install Atmel Studio. How can I fix it? What I tried to do to fix this problem: I tried both offline installer and online installer. Tried to install Atmel Studio in different directories. One of these directories is on disk C(system disk, SSD), another one is on disk D(HDD). I think that this error may happen because of

Atmel studio注意事项

微笑、不失礼 提交于 2020-02-24 13:40:17
注意事项整理如下: 1) MCU必须的头文件 Atmel Studio 6 (以下简称AS6)中统一用 #include <avr/io.h> 。这点很重要,AS6把atmel 所有的单片机头文件全都集成在一起了,以后不必再去分具体的每种芯片的头文件了 2) 汇编嵌入 在AS6 中,你可以直接使用 asm("xxx") 格式.或者用小写的 sei(); 这个其实是很爽的, 最常用的就是中断控制,使用比较方便。 3) 延时函数 在AS6中,只需要加载一个头文件 #include <util/delay.h> ,就可以使用两个标准的延时函数,分别是 _delay_ms(double __ms) 和 _delay_us(double __us),虽然参数为double型, 但可赋整型值。 注意在调用前在 delay.h 前面 定义 #define F_CPU 8000000UL(这里以8000000UL为例,实际系统频率为准),如下图, 这样延时10ms 的函数写为_delay_ms(10),经过试用,只要晶振填写准确,这两个延时函数很准确。 但是不建议修改头文件,而是在项目属性里面去定义这个宏!但是不建议修改头文件,而是在项目属性里面去定义这个宏!但是不建议修改头文件,而是在项目属性里面去定义这个宏! 4) 中断函数 在AS6中,需加载头文件 #include <avr

Atmel Studio 6使用

隐身守侯 提交于 2020-02-24 05:03:04
https://www.jb51.net/softs/556230.html Atmel Studio6也叫Avr Studio 6 ,是一款由Atmel公司开发的免费、集成化开发环境(IDE),可用来开发和调试基于Atmel ARM Cortex-M和AtmelAVR微控制器(MCU)的应用,Atmel Studio6提供了一个无缝、易用的环境,包含C/C++编译器、汇编器和模拟器,供用户编写、构建和调试采用C/C++或汇编代码编写的应用,还能与系统内的调试器和编程器无缝连接,进一步简化了代码开发,需要此款工具的朋友们可以前来下载使用。 Atmel Studio 6.2现已推出,新版增加了先进的调试功能(例如数据和中断跟踪),提高了RTOS集成,能够更好地调试已优化的代码,通过引入Atmel Gallery和Atmel Spaces两个模块,进一步简化了内嵌式MCU设计,减少了开发时间和成本。 Atmel Studio6使用教程 这里以GCC编译C语言编译一个8位的AVR为例,AVR Studio 6已经集成了AVR Toolchain,是最新版本3.4.0,不需要再安装WinAVR,也不需要再安装AVR toolchain。编译一个AVR时,需要做以下几件事,以AT90CAN128为例: 假设在新建项目时已经选择好了芯片AT90CAN128和工具,例如:JTEGMKII 1

Built in function clock() not working in atmel studio 7.0

↘锁芯ラ 提交于 2020-01-15 10:23:28
问题 I am working on a stopwatch project and I need to read the time that has passed while the program is running and build my time base from that. I've included the time.h library and even put the .h file in my project directory but for some reason once I use clock() function my code doesn't build correctly on this or any of my atmel 7 projects. I included a simple coded that I believe should compile, as well as the errors I get when I try and build. I suspect the problem has something to do with

Built in function clock() not working in atmel studio 7.0

孤街醉人 提交于 2020-01-15 10:23:05
问题 I am working on a stopwatch project and I need to read the time that has passed while the program is running and build my time base from that. I've included the time.h library and even put the .h file in my project directory but for some reason once I use clock() function my code doesn't build correctly on this or any of my atmel 7 projects. I included a simple coded that I believe should compile, as well as the errors I get when I try and build. I suspect the problem has something to do with

How to store constants in ROM (Atmel)

我只是一个虾纸丫 提交于 2019-12-25 18:36:43
问题 Good Day, I am writing firmware for an ATMega645A using AtmelStudio 7. I am starting a localization project and need to display messages on a 16x2 character display in 3 different languages. The existing (English messages) are stored in SRAM, but I will end up overflowing this data memory space if I have to triple the number of messages. SO, I am trying to store the messages in ROM where space is a-plenty. Problem is, Atmel app notes are either (a) wrong or (b) incomplete because I have tried

Converting binary to int [duplicate]

橙三吉。 提交于 2019-12-25 16:53:14
问题 This question already has an answer here : Convert binary two's complement data into integer in objective-c (1 answer) Closed 5 years ago . I apologize beforehand if this is a beginner's question; I'm new to C programming. I am working on an embedded design project that requires my ATmega128 reads in a 4-byte data from a sensor. The data contains two 14-bit measurements that I need to process. There is one part I'm not completely sure about because I haven't done a lot of C programming yet.

Bootloader for Cortex M4 - Jump to loaded Application

跟風遠走 提交于 2019-12-24 16:37:32
问题 I am using a Atmel SAM4E-16e on Atmel SAM4E-EK Board. I have written a bootloader for this configuration. The bootloader receives the .bin-File via UART and writes it into Flash. This works without problems, i made a hex-dump and it was exactly what i expected: Bootloader at 0x400000 (Flash Start Address of AT SAM4E) My Application at 0x420000 0x800000 is Flash End Address This is the C-Code: int main(void){ // Init and downloading the .bin to Flash binary_exc((void*) 0x420000); } int binary

impossible constraint in asm while compilation

此生再无相见时 提交于 2019-12-24 06:34:13
问题 In my Atmel ASF project, I am trying to build following inline asm code. However I am getting impossible constraint while compilation. Compiler points to this line __asm__ __volatile__ , am I missing anything? #define OUTPORT PORTD #define OUTBIT 3 // PD.3 uint8_t rport ,rbits; uint8_t *buf = message; asm volatile( "in __tmp_reg__, __SREG__ \n\t" // 1 Save SREG for later "cli \n\t" // 1 Clear interrupts "in %[rport], %[port] \n\t" // 1 Move PORTB adress to rport : //Outputs [rport] "=&r"