From: http://blog.csdn.net/gooogleman/archive/2009/03/18/4001784.aspx
8.3 USB serial kitl
1. To enable wince image with USB serial kitl, you must do the following:
> X: \ wince500 \ platform \ smdk2440a \ smdk2440a. BAT file must have the following settings:
Set bsp_nocs8900 =
Set bsp_noserial =
Set bsp_nousbfn = 1
> X: \ wince500 \ platform \ smdk2440a \ SRC \ Inc \ kitl_cfg.h file must have the following settings:
// # Define kitl_serial_uart0
// # Define kitl_serial_uart1
# Define kitl_usbserial
// # Define kitl_ethernet. Then, it is critical to modify the compilation settings. Otherwise, debugging fails. Then you can compile it. After compiling a kitl kernel, you do not need to burn it into flash. This is the greatest convenience of kitl.
Then, go to platform settings and select:
Enable ce target control support (sysgen_shell = 1)
Enable eboot space in memory (imgeboot = 1)
Enable kernel debugger (no imgnodebugger = 1)
Enable kitl (no imgnokitl = 1)
Oh, there is still a missing connection setting, which is also indispensable; otherwise, kitl will not be able to attach the device successfully.
Go to target device connectiveity options
Kernel service map:
Target device: Ce Device
Download: None
Transport: USB
Debugger: kdstub
Another important step is to execute target -- release directory modules
Click Add:
Add powerbutton. dll
Touch. dll
Note: This is a required step; otherwise, there is no way to stop at the breakpoint.
Now let's make an experiment to see if kitl actually works. Modify the powerbutton driver and add a print information to the initialization function. Check whether the data can be printed. Come on!
DWORD
Hw_initregisters (
Ppwr_context ppwr)
{
DWORD retry = 0;
V_piopregs = (volatile s3c2440a_ioport_reg *) virtualalloc (0, sizeof (s3c2440a_ioport_reg ...))
....
Retailmsg (1, (text ("caichang @ # $ kitl test @ powerbutton \ r \ n ")));
V_piopregs-> gpfcon & = ~ (0x3 <0); // set eint0 (gpf0) as eint0, and add breakpot here. Run the attach device command and stop at the breakpoint.
V_piopregs-> gpfcon & = ~ (0x3 <0 );
...
Return 0;
}
Compile the powerbutton driver and execute the attach device connection. The connection stops and the new information is displayed in the Pb print information window. It seems that the connection is successful. However, it should be noted that this breakpoint must be set before the driver is compiled. I used to set it after the attach device. It was really a big joke!
5152 TID: c3dc4002 hw_init: hw_initregisters ++ xxxxxxx @@@@@@@@@@
5152 TID: c3dc4002 hw_init: caichang @ # $ kitl test @ powerbutton
Haha, all register values can be displayed.
OK! Kitl debug driver verification is complete. Thanks to many csdn users, especially ricky_hu, sunrain_hjb, and gsymichael. These are all tips, but many people cannot get the operation documents of Samsung, so I am here to show up. Here, I would like to remind you that the device will be started once the driver is modified. Otherwise, it will not work. This is the chicken rib of kitl, however, something like a local driver runs at startup, so it is the best choice to use kitl to debug the local driver. I don't think you have to use stream-driven debugging. Because the system runs slowly after kitl and the synchronization software cannot be connected, it is more suitable to use the driver debugging assistant to control the registry.
Finally, I want to ask a few questions. If you want to know more, you can leave a message to me.
1. after the kitl kernel is compiled and run, the touch screen becomes inaccurate, but my BSP is accurate before. I think the system runs much slower after kitl, leading to slow ad adoption, therefore, correction must be performed again. -- Later, we found that it was not updated. I am also surprised that I am operating normally, but it is not ideal.
2. When I compile debug kitl, a dialog box is displayed, indicating that it cannot be started properly. Now, I can only compile the NK of release, with little print information.
3. My originally feasible zlg7290 keyboard driver was originally feasible, but now the press does not reflect. Why is it that the reading speed slows down and the keyboard value is incorrect? -- Later, we found that it was not updated. I am also surprised that I am operating normally, but it is not ideal.
Please leave a message to anyone you know. Thank you.
Note: The DLL name specified by the sources file must be the same as the load name in the bib file sink. Otherwise, the breakpoint cannot be generated. For example, Samsung's built-in touch screen driver is like this. Before I started to modify it
Touch. dll $ (_ flatreleasedir) \ s3c2440a_touch.dll NK sh
This is not the case. I changed it:
Touch. dll $ (_ flatreleasedir) \ touch. dll NK sh
That's all.
Support for kitl 2440 bsphttp: // d.download.csdn.net/down/1115341/gooogleman