How to use KITL to debug i.mx53

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use KITL to debug i.mx53

2,501 Views
oobin
Contributor I

Dear all,

I am not familiar with KITL.

Does anyone can tell me how to debug wince kernel by using KITL.

- How to compile ?

- How to connect to platform ?

- How to debug ?

My BSP is IMX53_WCE700_1105_BSP_SOURCE.

Can WCE7 support KITL ?

HB

Labels (1)
Tags (2)
0 Kudos
5 Replies

1,282 Views
oobin
Contributor I

Dear Seetharam, shiva,

Thx to your big support.

I can ENABLE KITL in i.mx53 now.

0 Kudos

1,282 Views
Shiva_manda
Contributor I

HI,

I am using KITL to debug kernel code device drivers on I.MX28 processor.

KITl support on any BSP.

Settings:

1) Go to "Project Properties->Build Options”. Check the following options:-

   a. Enable Kernel Debugger

   b. Enable KITL

2) Select “BSP DEBUG” build option.

3) Rebuild the OS design; use "Build ->Build Solution" command to run build process.

Once the build is completed, the resulting OS image can be found at "...\WINCE600\ OSDesigns \

<Design Name> \ RelDir\ TX25CEvXXX_ARMV4I_Debug\ NK.BIN".

4)  The download service, kernel transport and debugger settings must be properly configured in

Order to establish Platform Builder remote connection with TX25.

  1. Use "Target->Connectivity Options" menu command to open "Target Device Connectivity

           Options" dialog.

  1. Select "Ethernet" for "Download" service.
  2. Select "Ethernet" for "Transport" in order to enable KITL.
  3. Select "KdStub" for "Debugger" in order to enable kernel debugger.
  4. Open "Ethernet Download Settings" dialog for "Download" service to locate TX25 device and
  5. Associate remote connection settings with an unique TX25 device name.
  6. Leave "Ethernet Download Settings" dialog open.
  7. Connect the TX25 board to the development PC using cross-over Ethernet cable, or pass-through
  8. Cable in order to connect via hub or Ethernet switch.
  9. Connect the TX25 board to the development PC using serial cable.
  10. Open your favorite terminal program and configure serial connection as 115200/8/N/1.
  11. 10. Power on TX25.
  12. 11. From the RedBoot command prompt run ceconnect command to establish a connection
  13. With the Platform Builder IDE. Note 255.255.255.255 shall not be replaced with the actual
  14. IP address.
  15. RedBoot> ceconnect -v -h 255.255.255.255
  16. Sending BOOTME request [1] to 255.255.255.255

Waiting for connection, enter ^C to abort

Sending BOOTME request [2] to 255.255.255.255

Waiting for connection, enter ^C to abort

Sending BOOTME request [3] to 255.255.255.255

Waiting for connection, enter ^C to abort

...

  1. At this point TX25 device name and IP address will appear in the "Active devices" list of the "Ethernet Download Settings" dialog.
  2. Select the desired device in the "Active devices" list and click "OK". The Kernel Service Map shall be configured as shown below:
  3. Proceed to the "Core Service Settings" tab and configure service settings
  4. Click "Apply" and then close the "Connectivity Options" dialog.

 

Downloading and starting Platform Builder IDE

 

1)     In Platform Builder IDE, use "Target->Attach Device" command to initialize connection to the device.

 

Regards,

Shiva

0 Kudos

1,282 Views
seetha
Contributor III

1) No modification of the driver is required to have KITL in your image. 

2)To download the image I have attached snap shots. Please go through them.

3) Downloading NK.bin through ethernet. See attachments.

4) Connectivity options also see snap shots.

5)you can use uboot, after that you need to boot eboot.nb0 then only you can download the image to your SD card.

If you follow the procedure mentioned in my attachment you can skip booting through uboot.

Regards,

Seetharam

0 Kudos

1,282 Views
oobin
Contributor I

Dear Seetharam,

1) Do we need to modify any driver to enable KITL ?

2) download the image to your platform ==> How to achieve that ?

I have no idea about this process.

Download nk.nb0 to platform by using PB ? (where to execute this command ?)

Can I use USB ? (Like activesync)

How to set connectivity option ?

Actually, I didn't use KITL before.

Could you please give me a detail description how to achieve it ?

By the way, now I am using uboot to boot winec7 in MMC or SD Card.

Uboot is no matter to enable KITL ?

Thx ~

0 Kudos

1,282 Views
seetha
Contributor III

Hi oobin, 

WinCE 7.0 supports KITL. Just go to Project properties->Build options and set Enable KITL as "YES" and set Enable Debugger as "YES". Now you can build the image and usual "Build current BSP and Subprojects" is enough. Once it is done, download the image to your platform. During downloading see to it that in your connectivity options KdStub debugger is selected. That's it. You can see the device getting connected with your PB and you can see the dlls getting loaded.

Regards,

Seetharam

0 Kudos