Getting Started with Unity, Keil uVision, and Texas Instruments LaunchPad TM4C123G

352 views
Skip to first unread message

theluke...@gmail.com

unread,
Mar 17, 2014, 3:56:55 PM3/17/14
to throwth...@googlegroups.com
Hi

I'm doing a course "Embedded Systems - Shape the World" through Edx.org We are using the TM4C123 board and Keil uVision 4.73 IDE, and all the code is in written in C.
We don't do any TDD but it is my preferred way of writing code.

I have Unity compiling in uVision however I don't know how to get the tests to run.
I have been follow this article how to set it up http://www.feabhas.com/sites/feabhas/files/Unity.pdf
However it seems a bit old and out of date.

Is there a way to run the test automatically, say after a build inside uVision?

Any advice would be greatly appreciated.

Warm Regards
Luke

Rob...@titanproducts.com

unread,
Jun 5, 2015, 4:53:27 AM6/5/15
to throwth...@googlegroups.com, theluke...@gmail.com
Hi Luke,

I also did the course and Valvano appears to be using a test platform to evaluate the labs, I have not looked into it but it may help or hinder your attempts. I've just joined here so I can't offer anymore info than that. I would also like to be able to do TDD in Keil as it is the platform i use daily in work.

In the same boat.
Robert 

Mark Vander Voord

unread,
Jun 18, 2015, 2:58:11 PM6/18/15
to throwth...@googlegroups.com, theluke...@gmail.com
Hey guys.

I don't really know Keil's uVision system at all. I've had a lot of success with integrating Unity into my workflow using IAR's Embedded Workbench and other tools, though. So starting with that caveat, I'll try to help out. 

It appears from looking at the manual that Keil supports pre-build and post-build steps. That's perfect!. What we really want to do is get a fully-working makefile (or rakefile if you prefer) to run your tests. Once it works, we will trigger it in our pre-build step so that all our tests are run before we do a release build. (If that becomes a pain, often IDE's have "external tools" or a way of triggering a command line task through a keyboard shortcut. Those can also be used).

Here's some help on how to put your system together:


Here's some help on getting Unity working with make:


Finally, if Keil supports a method to trigger events based on the currently selected file, it's really helpful to trigger small single-test builds based on the current file. 

If I can help with any of this, feel free to fire questions my way. I'll do my best to keep up.

Mark

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To post to this group, send email to throwth...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/93d23200-aff5-4502-a34a-47b68b26130e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages