How to debugging on BMP deviceHow to debugging on BMP device

本文介绍了如何在BrewMP平台上进行应用开发,包括确保设备支持BrewMP 1.0.2或更高版本SDK,安装Visual Studio插件,启用开发者模式的不同方法,安装USB驱动,以及如何使用Visual Studio进行调试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

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. 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值