How to debugging on BMP deviceHow to debugging on BMP device
Pre-Condition
1. You should make sure that your device 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 following tools show on the tools bar
of Visual Studio :
Enable the developer mode
There are many methods can enable developer mode, I’ll introduce three of them.
Enable by the device’s native UI
For this method, I’ll take free 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 (make sure 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 com port;
5. Use command: GatewayTurnOn.exe --gui COMX (the COMX should replace with the properly port in your PC) to start the UI setting page on device.
6. Select any item which has “Gateway” option.
The following figure shows the command I have used:
Enable by System Task application
The System 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 the c_systemtaskapp director on device;
3. Reboot your device.
4. Launch c_systemtaskapp
5. For touch devices select the USB tab on the device screen,for non-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, you should install the Brew MP SDK driver, please following steps:
1. Connect you device your device to pc.
2. Windows will prompts for device drivers ,specify the folder referenced by:“%BREWMP_TOOLSET/drivers/usbdevice/Win32/WinXP/free%”;
3. Install it.
If your Connect is enabled and the driver is working properly, you can use
Windows’ Device Manager to check it. A device with Connect enabled is
shown in the image below as a Brew Mobile Platform device.
Debugging on device
After you finish the operations described on above , 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.