I've added support for the XMEGA-A3BU Xplained to Andy Gock's Graphic LCD Library (see http://agock.com/software/glcd-graphic-lcd-library/).
If anyone is interested, I'll post the modified library and my test case software here.
Don
I've added support for the XMEGA-A3BU Xplained to Andy Gock's Graphic LCD Library (see http://agock.com/software/glcd-graphic-lcd-library/).
If anyone is interested, I'll post the modified library and my test case software here.
Don
Hi Don, I am interrested in your port thanks.
Johan
I'm away from my desktop until next week. I'll post the library at that time.
Don
Thanks
Johan
Just returned tonight from snowboarding in Montana.
Here it is. Documentation here: http://s.agock.com/glcd-documentation/
Don
Hi Don, my turn to have been out of office for a couple of days. Thanks for sharing.
Johan
Hello Donblake,
Thank you so much for the post! I was wondering will it work on avr studio 4? I am currently using that for my project, I want to make use of the lcd of the A3BU XPLAINED to display some numbers after calculation by the mcu. I have downloaded your avr studio 5 demo code.
Thank you!
Hi Don,
I have a huge list of error using the program you posted. Running it on studio 4. The errors are mainly undefined functions in unit_tests.h file. But it has already been included, and the c file is also in the same directory.
I have downloaded your zip file, opened up the whole glcd 0.5.2, copy and paste directly into my 'include path folder'
it still doesnt work. any advice?
I have defined the selection of symbols as follows in the glcdTest01.c file
#define GLCD_DEVICE_XPLAINED_XMEGA_A3BU
#define GLCD_CONTROLLER_ST7565R
#define GLCD_USE_SPI
#define GLCD_INIT_NHD_C12832A1Z_FSW_FBW_3V3
#define GLCD_USE_AVR_DELAY
#define __DELAY_BACKWARD_COMPATIBLE__
am i doing it correctly?
I am guessing that the way i define the symbols are wrong, I dunno how to create a makefile for this, dont really understand how the makefile works too..
anyone can help? I am on avr studio 4.
The problem now is linking all the seperate c files together. I have this main.c , glcd.c, unit_tests.c. how do i link them tgt? they each have a header file..
The problem now is linking all the seperate c files together. I have this main.c , glcd.c, unit_tests.c. how do i link them tgt? they each have a header file..
If using an IDE it should just be a case of "Add existing item..." to add the .c files to the list to be compiled and linked. The .h files will look after themselves as long as #include's have been used correctly.
I kinda tot that the AS4 is an IDE, but seems like I was wrong, so I should use Eclipse instead?
or do you have any to recommend? Thank you.
No As4 should be just fine. As I say in an IDE a multiple C file project is just a case of "Add existing item..." and adding each .c source file in turn. Each gets separately compiled (-c) then the linker joins all the resultant .o files to create a composite .elf. As long as you ensure all .c were listed then everything resolves OK - otherwise you get "undefined reference" link errors.
but as I compile with As4, the compiler says it cant find glcd.o , which glcd.c is a source file, of a few header files glcd_x.h
there is no main in glcd.c so i guess that is why it cant be converted into an object file?
but the int main is in this other c file called, test.c .
I was wondering how can I link all these together? I cant compile without including the glcd.c file, too many errors and undeclared functions, that is expected because the header files probably cant call the functions in its c file if I don add them in.
but when I have added them to the add existing source file folder, i compile, the compiler says it cant find glcd.o
I've worked whole day on this, still gotta write a report for this project. Kinda looks like I am going no where with this :(
the compiler says it cant find glcd.o , which glcd.c is a source file
there is no main in glcd.c so i guess that is why it cant be converted into an object file?
I'll see if I can turn the files above into a building (no guarantees about actually working!) AS4 project later but my current computers don't have AS4 installed (just AS6) so I need to switch back to an old one to try AS4.
I have defined the selection of symbols as follows in the glcdTest01.c file#define GLCD_DEVICE_XPLAINED_XMEGA_A3BU
#define GLCD_CONTROLLER_ST7565R
#define GLCD_USE_SPI
#define GLCD_INIT_NHD_C12832A1Z_FSW_FBW_3V3
#define GLCD_USE_AVR_DELAY
#define __DELAY_BACKWARD_COMPATIBLE__am i doing it correctly?
Add these symbol definitions to the project properties.
BTW: you'll find main defined in glcdTest01.c.
My attachment includes a project (glcdTest01.cproj) for Atmel Studio 6.0. I haven't had AVR Studio 4.0 on any of my computers in a long time.
Don
hi don, I understand that your project works for the studio 6, but I had studio 4 installed on my windows XP. I have tried defining in all source files, but to no avail. This error of " compiler cannot find glcd.o" still appears.
Will try finding alternatives, maybe install studio 6 on another com that I can get my hands to.
Thank you
Wilson
hi don, I understand that your project works for the studio 6, but I had studio 4 installed on my windows XP. I have tried defining in all source files, but to no avail. This error of " compiler cannot find glcd.o" still appears.Will try finding alternatives, maybe install studio 6 on another com that I can get my hands to.
Thank youWilson
Don