I am new to C and the AVR programming world, and therefore I am currently reading this book about the topic.
The author makes reference to ATMEL libraries which deals with memory manipulation, time (sleep) functions and so on. See below an example:
#include <avr/io.h>
My question is, where can I find the documentation for this and other ATMEL libraries? Are they already built-in in the compiler or the development kit? How can I see the corresponding .c file for it?
After installing Atmel Studio you can find the headers here:
<Program Files>\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include
Documentation is available on the Atmel web-site.
The file is located in the following folder if you installed avr-libc through homebrew on a Mac:
/usr/local/Cellar/avr-libc/[version]/avr/include/avr/io.h
I recommend to use BASCOM AVR IDE, instead of C language as it has good support, google it and download and use it.
Related
First of all, I'm new for this and I need a little help!
I have a LEGO Mindstorms EV3 robot, I downloaded (LEGO Mindstorms EV3 Home Edition) to control the EV3. Unfortunately, I couldn't find the source code for the EV3 in the mentioned software. So, please if anybody could tell me the name of the software that enables you to program EV3! I would be most appreciated!
I also downloaded (Bricxcc) software but it was an old version. I couldn't find a newer version which contains EV3.
Can I use C language to program EV3 ? Or to add some features to the sensors?
Note: I ended with leJOS software to program the code with java it is much easier and there are a lot of resources for the EV3 brick in java. Wish you all the best!
You can find the EV3 source code here: https://github.com/mindboards/ev3sources
The generated documentation from this source code is available here and here.
Bricxcc has some experimental support for EV3 but it is not being actively developed (since Oct. 2013). You can find the latest test version here. Searching the web for "bricxcc ev3" will come up with some tutorials (for example, the one at http://www.robotnav.com looks good).
ROBOTC is a good alternative, although it is not free.
There is also ev3dev. There is a C library for ev3dev here or you can write your own.
The EV3 runs on Linux w/ glibc, so you only need to upload your C programs. For C++ you need to copy over the C++ standard library. Programming like that is a bit inconvenient, as you have to mess directly with the device files.
The c4ev3 bundle streamlines this. It's built around an Eclipse Plugin that includes a GCC Toolchain, an API and an integrated Uploader and File browser usable right out of Eclipse.
C and C++ Hello World template projects are included.
API and Uploader are also usable separately from Eclipse, so you can use it however you like.
Check it out :-)
Disclosure: I wrote part of the software.
Hi i am new in embedded field, please tell me whether OpenCv files are compatible with the Embest AT91SAM9G45, ARM9 board.
I have not tried this but I don't see why not. Judging from the Atmel page on your chip there is a development studio. It doesn't explicitly say but I think it supports C++ and if so you can compile OpenCV using Cmake and that particular compiler.
I'm trying to learn Cuda and its very interesting but I'm having problems creating code without a bit of help from an IDE. I know Java/Python but I'm unfamiliar with C/C++ so I have been using eclipse and Xcode to help me with commands and finding things(via code code completion). I can't seem to get these options for CUDA?
I have seen examples and can build them find(nvcc is working) but without the IDE to help catch some of my mistakes I'm a bit lost editing the code in just a text editor. I found a toolkit plugin for eclipse but although it seems to install I think its for a older build of eclipse because most of the options in the instructions do not match my version(Indigo). Nvidia has a plugin for Visual studio only on their site(I'd rather not install windows on my mac to use Cuda).
I'm sorry if this sounds bad but I'm curious to how people are developing cuda on Mac's. I don't care what IDE I use as long as it helps me see the options and warn me if I have syntax issues,etc..(I'm not the best programmer but switching IDE's for me has just been a matter of finding out where things are so I'm really fine with any solution as long as it helps me as I'm learning).
Nsight Eclipse Edition is available as a part of the CUDA Toolkit 5.0 (no additional download required).
Qt Creator!
You can read Qt Creator + CUDA + Linux for inspiration on how to setup the build environment on Mac OS X.
You could think about using JCuda:
http://www.jcuda.de/
There is XCode plug-in for CUDA development. I found it there. There is the main discussion on nvidia.com
Visual Studio Code + this extension:
https://github.com/gangliao/VS-Code-Cuda.
For me, Visual Studio Code is my favorite IDE for every language I found out there
Hi guys I have an ANSI C university course.
I am looking for a compiler that will easily create
makefiles and .o files and binaries that would work on both windows and ubuntu.
all code i write must be multiplatform.
(Im a C#/C++ programmer, didn't touch C for over 10 years)
no need for any external library support except ones that are part of the spec.
I assume its C99 though might be C90
nice Dev Env GUI preferably same for both windows and ubuntu is needed as well
how to make sure I don't use none-standard libraries?
I think gcc is your best option. On Windows the best port is probably MinGW.
You edited your question to request an IDE too. Try Code::Blocks.
I will recommend Eclipse as the IDE. It has some issues on Windows, but it is great on Linux.
GCC/MinGW as compiler doesn't need much discussing.
I am currently using Netbeans with Cygwin on windows 7, and i'm looking to write a simple 2D game in C.
Most of the tutorials i've managed to find use the graphics.h supplied with Turbo C, does Cygwin have an alternative to this? Any info about how to get another header file installed, or links to tutorials would be greatly appreciated.
Cheers
SDL is a good library to use for basic game graphics. Note that Cygwin is not needed (unless you really need POSIX emulation) - Mingw will usually suffice.