How to debugging on BMP device
Pre-Condition
1. You should make sure that yourdevice support Brew MP 1.0.2 or newer SDK.
Install the Visual studio plug-in
1. Open SDK Manager.
2. Select Setup tab
3. Install Visual Studio Plugin.
After you install the plug-in, you can see the followingtools show on the tools bar of Visual Studio :
Enable the developer mode
There are many methods can enable developermode, I’ll introduce three of them.
Enable by the device’s native UI
Forthis method, I’ll take life style phone for example.
1. Launch the device.
2. Press the menu key and select “settings” item.
3. Entry the “USB to PC” item
4. In the page “USB connected” page, select “Developer mode”
5. Select the mode your desired.
Enable by the command line
1. Connect your device to PC (makesure that you have installed the Manufacturer driver properly);
2. Start->Run->input cmd,enter.
3. Entry the directory “%BREWMP_TOOLSET%\bin\deprecated\BTIL\Host\bin”;
4. Use command : GatewayTurnOn.exe –list to show the comport;
5. Use command: GatewayTurnOn.exe --gui COMX (the COMXshould replace with the properly port in your PC) to start the UI setting pageon device.
6. Select any item which has“Gateway” option.
The followingfigure shows the command I have used.
Enable by System Task application
TheSystem task application locates in the directory:
“%BREWMP_TOOLSET%\utilities\SystemTask\c_systemtaskapp”.
1. Using Loader install the c_systemtaskapp, (include *.mod *.png and*.ttf *.mif).
2. Copy a sig file to thec_systemtaskapp director on device;
3. Reboot your device.
4. Launch c_systemtaskapp
5. For touch devices select the USB tab on the device screen,fornon-touch device click * on the device keypad to access the USB tab.
6. Select USB + MODEM + COM to put the device in Developer mode.
Install USB driver
After you enable the developer mode, youshould install the Brew MP SDK driver,please following steps:
1. Connect you device your deviceto pc.
2. Windows will prompts for devicedrivers ,specify the folder referenced by:“%BREWMP_TOOLSET\drivers\usbdevice\Win32\WinXP\free%”;
3. Install it.
Ifyour Connect is enabled and the driver is working properly, you can use Windows’ Device Manager to check it. Adevice with Connect enabled is shown in the image below as a Brew MobilePlatform device.
Debugging on device
After you finish the operations described onabove , you can using Visual Studio to device you program:
1. Create a new BrewMp project.
2. Connect your device to PC.
3. Make you have select “Brew MP physical Target” and the device is selected, for me is:
4. Compiler you project.
5. F5 to debug.