infineon4engi@twitter infineon4engineers infineon@linkedin infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 7 of 7

Thread: Test Driven Development on XMC4500 and DAVE?

  1. #1
    Beginner Beginner Petru S is on a distinguished road
    Join Date
    May 2015
    Posts
    23
    Points
    86.875

    Test Driven Development on XMC4500 and DAVE?

    Hello everyone,

    My projects are getting a little bit more complex and I would like to add TDD to the mix. So I have some questions, maybe somebody could point me in the right direction.
    Is there any way to do TDD using DAVE on XMC microcontroller?
    Do you have any hints from where I could start researching?
    Is there a HOT on how to do this?
    Any suggestions are deeply appreciated!
    Thank you!

    Best regards,
    Petru S

  2. #2
    Travis will become famous soon enough
    Join Date
    Feb 2013
    Location
    Singapore
    Posts
    749
    Points
    4580
    What is the Test Driven Development about?

  3. #3
    Beginner Beginner Petru S is on a distinguished road
    Join Date
    May 2015
    Posts
    23
    Points
    86.875
    Hello Travis,

    Thank you for your reply. In a nutshell I want to be able to write tests for my code, run those test make sure they work, add some more code, re-run the first tests and make sure they also pass.
    I'm not really clear how I should approach this problem. I found a book written by James W. Grenning called "Test-Driven development for Embedded C", I'm thinking about buying this and see what answers can it give me.
    I have two projects in development now, one based around Web server and one based on the BLDC motor control, in both of them I could use some testing.
    Thank you!

    Best regards,
    Petru S

  4. #4
    Beginner Beginner apereira has a spectacular aura about
    Join Date
    May 2013
    Posts
    77
    Points
    352.109375
    Hello Petru,

    I'm not sure if this suits you but in http://www.infineon.com/matlab you can find a library for Simulink that allows you to configure some Infineon XMC blocks.

    In Simulink you can do model-based design for your motor control project, including simulation of your project and code generation directly from Simulink, that can then be compiled and debugged using DAVE.

  5. #5
    Beginner Beginner Petru S is on a distinguished road
    Join Date
    May 2015
    Posts
    23
    Points
    86.875
    Hello Adriano,

    Thank you for your reply, I will give a try to Simulink, I've downloaded and installed but haven't got the chance to work with it.
    For the moment I think I'm pretty close to what I want to achieve with BLDC motor control (using Dave 3 Apps). Is there any getting start guide to Simulink, motor control and Dave?
    Thank you!

    Best regards,
    Petru S

    PS: Thank you for the tutorial on Microelectronics Students Group, got me started really fast with web server SSI! Do you know if it's possible to include SSI in .htm files?

  6. #6
    Beginner Beginner apereira has a spectacular aura about
    Join Date
    May 2013
    Posts
    77
    Points
    352.109375
    Hello Petru,

    If you want to work with Simulink first you would have to switch from DAVE3 to DAVE4 and adapt your project. Right now there are no examples in the package related specifically to motor control but you can find some examples with the ADC, CCU4 and CCU8.

    About the webserver: you are welcome! I'm not sure of it, but I don't think so.

  7. #7
    New Member New Member obetz is on a distinguished road
    Join Date
    Oct 2013
    Location
    Munich
    Posts
    67
    Points
    190
    Grenning's method and the suggested frameworks don't depend on the IDE / DAVE / Eclipse.

    You might also consider testIDEA from http://isystem.com/ to run tests without instrumentation code.

    Oliver

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.