Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

In order to see your device in Visual Studio or Eclipse Toolbar, your device needs to be put into Developer Mode (Gateway). To set your device to Developer Mode, please use the following steps:

1. Download and install Brew MP SDK 7.4 (or later)
2. Connect your device to your system (assumes you have loaded drivers for your device)
3. Launch Loader (SDK Manager > Tools > Loader)
4. Connect to your device using "Brew Devices (COM/Diag) connection method and select the port where your device is connected (preferably serial if available)
5. Create a folder called fs:\mod\c_systemtaskapp
6. Copy the *.mod, *.png and *.ttf files from %BREWMP_TOOLSET%\utilities\SystemTask\c_systemtaskapp to fs:\mod\c_systemtaskapp
7. Copy *.mif file from %BREWMP_TOOLSET%\utilities\SystemTask\c_systemtaskapp to fs:\mif
8. You will need to copy a valid sig file named c_systemtaskapp.sig to fs:\sys\mod\c_systemtaskapp
9. Reset your device
10. Go to wherever apps get stored on your device and launch c_systemtaskapp
11. For Touch devices click on USB tab, for non-touch device click on "*" to get to USB tab
12. Select USB + MODEM + COM
13. Your device should now be in Developer Mode
14. Windows may prompt you for device drivers, specify the folder referenced by %BREWMP_TOOLSET%\drivers\usbdevice\Win32\WinXP\free for the driver location
15. You should see a device called "Brew Mobile Platform" listed under Connected Gateway Devices
16. Once you're in Developer Mode you will need to get install a sig to your device using one of two ways in Loader:
a. temporary sig from the Brew MP website via the TEP portal
b. Specify your GTES sig
17. To see if this worked, Launch Visual Studio and select Physical in the Target Type list and see if something like usb xxxxxx shows up in the Brew MP Target list

There are 3 other ways to turn on Developer mode:

1.) Using key sequence *#DEVMODE#
Press key sequence *#DEVMODE# on device's home screen.
This will open up Gateway UI to enable developer mode.

2.) Using GatewayTurnOn.exe, it is placed under ...\Brew MP SDK\Toolset ver XYZ\bin\deprecated\BTIL\Host\bin
a.) Connect device to USB port
b.) Open command prompt
c.) Run GatewayTurnOn.exe from command prompt.

Sample usage:
c:\>GatewayTurnOn
Automatically chooses a device, then turns on Gateway

c:\>GatewayTurnOn --gui COM23
Connects to device COM23 and runs the compositor GUI on the

Here is a sample of a user getting a list of devices, turning on
device, getting an updated list of devices, then saving the new
setting:
C:\>GatewayTurnOn.exe --list
----- Available device list -----
COM80: Qualcomm HS-USB Diagnostics 9002
COM81: Qualcomm HS-USB NMEA 9002
COM82: Qualcomm HS-USB Modem 9002
C:\>GatewayTurnOn.exe COM80
Turning on gateway for device "COM80"
C:\>GatewayTurnOn.exe --list
----- Available device list -----
BREW MP device: 351602000422780
COM80: Qualcomm HS-USB Diagnostics 9002
COM81: Qualcomm HS-USB NMEA 9002
COM82: Qualcomm HS-USB Modem 9002
C:\>GatewayTurnOn.exe --persist
Saving current compositor setting on device COM80

3.) Within from device menu setting option:

Devices exposes developer mode enable GUI from device's native menu. This GUI is nothing but c_systemtaskapp app as explained above.

NOTE: Developer Mode (Gateway) is supported on Brew MP 1.0.2 devices. (Brew MP 1.0.0 and some 1.0.1 devices don't support Developer Mode)

As I was attempting to get Developer Mode on one of our devices I had to change/edit some of these steps.
 
4. Connect to your device using "Brew Devices (COM/Diag) connection method and select the port where your device is connected (preferably serial if available)
For BREW MP devices, connecting through the Brew Devices connection method does not bring up the fs:/ system used in BMP. Instead connection through Brew MP [Com/BTIL] was required.
 
6. Copy the *.mod, *.png and *.ttf files from %BREWMP_TOOLSET%\utilities\SystemTask\c_systemtaskapp to fs:\mod\c_systemtaskapp
I had to add the *.bar file as well, otherewise when attempting to start the IUT an error message stating, "Unable to start, Please try again later" would be displayed.
 
Finally, while not really important it does make it simplier, for steps 7 and 8, simply creating a module with all of these files in it and loading it like a normal application works just as well as manually installing it to the device.
 
 

As I was attempting to get Developer Mode on one of our devices I had to change/edit some of these steps.
 
4. Connect to your device using "Brew Devices (COM/Diag) connection method and select the port where your device is connected (preferably serial if available)
For BREW MP devices, connecting through the Brew Devices connection method does not bring up the fs:/ system used in BMP. Instead connection through Brew MP [Com/BTIL] was required.
 
6. Copy the *.mod, *.png and *.ttf files from %BREWMP_TOOLSET%\utilities\SystemTask\c_systemtaskapp to fs:\mod\c_systemtaskapp
I had to add the *.bar file as well, otherewise when attempting to start the IUT an error message stating, "Unable to start, Please try again later" would be displayed.
 
Finally, while not really important it does make it simplier, for steps 7 and 8, simply creating a module with all of these files in it and loading it like a normal application works just as well as manually installing it to the device.