none
Platform builder deployment and debugging RRS feed

  • Question

  • I have a device running on WinEC7 with the design environment setup. At this point, i am trying to perform real time application debugging (line by line) on the device and want to know how to set this up. I have read about CoreCon and managed to create a smart device project and connect to my device, but this does not do me any good since my application code is a platform builder subproject. How can i deploy and debug my application directly onto my device? 

    (Note, i am not trying to debug the OS. Only the application.)

    Thanks,

    Friday, January 9, 2015 7:47 PM

Answers

  • KITL has to set up during the build process 

    KITL will not only feed the debug messages but also help the PB to have control over the code execution 

    Also you need to enable the kernel debugger

    For configuring it refer this :

    http://embedded101.com/Blogs/SamuelPhung/entryid/257/Compact-7-Getting-Started-Part-8-Debug-and-Remote-Tools

    In you BSP also you have to set kitl configuration ... as polling or interrupt and enable/disable, normally done using the command interface of boot loader.

    The kernel debugger can be used to debug the native application or the subproject.

    For details refer :

    Application debugging using kernel debugger :

    http://msdn.microsoft.com/en-us/library/jj200409.aspx

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    • Proposed as answer by Misbah Khan Thursday, January 15, 2015 3:58 PM
    • Marked as answer by Javia1492 Monday, February 9, 2015 5:36 PM
    Saturday, January 10, 2015 7:54 PM

All replies

  • If your application is a subproject then, then you need to download the os (Complete project) and use kitl

    Otherwise create a seperate project for application and build using SDK

    Debugging can be possiable using CoreCon and Active Sync

    --- Misbah 


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    • Proposed as answer by Misbah Khan Thursday, January 15, 2015 3:58 PM
    Friday, January 9, 2015 8:15 PM
  • How do i use kitl? I have been reading up on it but there seems to be no clear guide on how to setup this process. 

    Does kitl allow me to do line by line application debugging? Or is this going to feed debug messages through the serial/ethernet port? Because, ideally, i would like to set break points while debugging.



    I have already done corecon, but corecon application debugging only works on VS2008 smart device projects and i have a platform builder subproject.

    Friday, January 9, 2015 8:40 PM
  • KITL has to set up during the build process 

    KITL will not only feed the debug messages but also help the PB to have control over the code execution 

    Also you need to enable the kernel debugger

    For configuring it refer this :

    http://embedded101.com/Blogs/SamuelPhung/entryid/257/Compact-7-Getting-Started-Part-8-Debug-and-Remote-Tools

    In you BSP also you have to set kitl configuration ... as polling or interrupt and enable/disable, normally done using the command interface of boot loader.

    The kernel debugger can be used to debug the native application or the subproject.

    For details refer :

    Application debugging using kernel debugger :

    http://msdn.microsoft.com/en-us/library/jj200409.aspx

    --- Misbah


    Senior Design Engineer T.E.S Electroni Solutions (Bangalore-India) www.tes-dst.com email-misbah.khan@tes-dst.com

    • Proposed as answer by Misbah Khan Thursday, January 15, 2015 3:58 PM
    • Marked as answer by Javia1492 Monday, February 9, 2015 5:36 PM
    Saturday, January 10, 2015 7:54 PM
  • like Misbah said, you can do step by step debugging via the 'corecon' method. You need to create a smart device application and 'port'/migrate your platform builder subproject into your new application.

    If you really need to use the platform builder subproject, cause it is using functionality not present in your SDK, then you need to install Platform Builder etc to (re)create your OS and follow the links Misbah referred to. But to be able to recreate the OS you need the BSP (and preferably the OSDesign) for your platform...



    Good Luck,

    Erwin Zwart, eMVP
    Check out my blog: http://guruce.com/blog
    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    Monday, January 12, 2015 11:34 AM
  • I will try to do the Kitl + kernel debugging and see how it goes.

    If i am unable to perform the kitl method, i have already performed a connection to my device via smart device project. The only part that i do not know how to do is "port" or migrate my subproject application to the smart device project. 

    Just to clarify, my "subproject application" is actually 7 different subprojects communicating with each other via a DLL, so hopefully this is still possible to port to a smart device project? And if so, how do i port it?

    Thanks,

    Monday, January 12, 2015 1:56 PM