Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
hemmerling
PostPosted: Sep 08, 2011 - 07:13 AM
Wannabe


Joined: Aug 04, 2011
Posts: 96
Location: Hannover, Germany

I will participate in a Atmel workshop next week and I will have a Atmel AVR XMEGA Xplained Kit, with ATxmega128A1 8-bit CPU.

a)
Btw, there is a AVR Studio 5 project "AT45DBX Unit Tests".

So is there any free tool to do Unit Tests ( like with JUnit for Java, NUnit for .NET, or the commercial TESSY for embedded systems targets, and some free bulky "C/C++" Unit Test tools designed for bulky operating systems like Linux/Windows ) which work with 8-bit devices ?

So the testing framework must be run on the device ( or its emulation ). Of course this might be a problem with the limited space of 8-bit devices, and even more the lack of a (standard) user interface or the option to store much data, like in a file system. So the test results must be transfered by either the serial/USB interface and/or by the debugger "channel" ( I am a rookie, but I already noticed the special debugging option of the XMEDA by the unique/new PDI interface - might this help to transfer informations for a unit test ?).

b)
So what kind of concepts of testing with a Unit Test framework are useful / should be considered for 8-bit CPUs like XMEGA ( to transfer the test results to a user interface or data storage / file system,..), and what ( free ) projects about that do you know ?

c)
Just a statement:
With 32-bit, much RAM and if there is even an operating system ( Linux...) with a filesystem running on the target, you might use standard Unit Test tools... see my link page

http://www.hemmerling.com/doku.php/en/testing.html

Sincerely
Rolf

_________________
http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
jfiresto
PostPosted: Sep 08, 2011 - 09:57 AM
Hangaround


Joined: Oct 07, 2002
Posts: 426
Location: Germany

Here is someone who is doing unit testing within the AVR simulator in
AVR assembler:

http://www.lhexapod.com/blog/2009/10/re ... tudio.html

I marvel at the author's thought and industry. In some fundamental ways it is the opposite of how I would test firmware!
 
 View user's profile Send private message  
Reply with quote Back to top
gchapman
PostPosted: Sep 08, 2011 - 05:55 PM
Raving lunatic


Joined: Jan 09, 2007
Posts: 2770
Location: Arlington, Texas, U.S.A.

uCUnit version 2 has AVR in it.
CppUTest may be an option.
The 10K (minimum) cycle limit of XMEGA's flash looks OK though may want to create "Big Bang" unit or integration tests;
development of, initial, or bulk of testing may be attempted with the simulator.
 
 View user's profile Send private message  
Reply with quote Back to top
hemmerling
PostPosted: Sep 09, 2011 - 02:54 PM
Wannabe


Joined: Aug 04, 2011
Posts: 96
Location: Hannover, Germany

Thanks alot for naming the 2 unit test framworks, which were new to me,

but indeed,

the free
AVR Software Framework( ASF )
http://asf.atmel.com/
included with the free AVR Studio5

See my posting
http://www.avrfreaks.net/index.php?name ... 739#869739

Did anybody here use a Unit Test framework for Atmel 8-bit systems at all, already ?
If so, which one ?

I would be pleased if you share your experiences with us, here in this forum ! As there are now 2 threads in this forum, I suggest

to tell about
- experiences with a non-ASF unit testing frameworks HERE,

- and about experiences with the ASF unit testing frameworks in the other thread, NOT HERE.

Sincerely
Rolf

_________________
http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits