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. 

 

 

当我们在开发过程中使用模拟器设备时,可能会遇到“start debugging error by emulator device open”的错误。这个错误通常发生在我们尝试在模拟器设备上进行调试时。 首先,我们需要检查几个可能的原因。首先,确保您的模拟器设备已经正确安装并且可以正常工作。您可以尝试重新启动模拟器设备,以确保没有任何临时问题。另外,确保您的开发环境与模拟器设备的版本兼容。如果您的开发环境版本过低或过高,可能会导致无法正常调试。 其次,检查您的调试设置是否正确。您可以打开您的开发环境中的调试设置并确保已正确配置模拟器设备作为调试目标。一些开发环境也允许您选择将调试目标设置为实际的物理设备,这取决于您的需求。 另外,确保您的开发环境与模拟器设备之间建立了正确的连接。这可能需要您在开发环境中配置一些网络设置,以便能够与模拟器设备进行通信。 最后,如果以上解决方法都没有成功,请考虑尝试使用其他的开发环境或调试工具。有时,不同的工具可能会有不同的兼容性和性能。在尝试其他解决方案之前,您还可以尝试重新安装您的开发环境,以确保它没有任何损坏或错误。 总结来说,当我们遇到“start debugging error by emulator device open”错误时,我们应该首先检查设备和开发环境之间的兼容性,确保正确配置调试设置并建立正确的连接。如果问题仍然存在,可以尝试使用其他的开发环境或调试工具。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值