Changes between Version 4 and Version 5 of Getting-Started/Symbian
- Timestamp:
- May 6, 2009 9:41:26 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting-Started/Symbian
v4 v5 39 39 Connect the USB cable to the phone, and on the phone, select '''PC Suite''': 40 40 41 [[Image( phone_usb.JPG)]]41 [[Image(DevelopingSymbianAppWithCarbide:phone_usb.JPG)]] 42 42 43 43 If this is the first time you connect your phone to the PC, then it may take some time for Windows to install the USB drivers for the phone. Wait for it to complete and the Nokia PC Suite and PC Sync icons on the task bar tray become green: 44 44 45 [[Image( pc_suite.JPG)]]45 [[Image(DevelopingSymbianAppWithCarbide:pc_suite.JPG)]] 46 46 47 47 Leave PC Suite running with the device connected using the USB cable throughout this tutorial session. … … 64 64 Run Carbide C++. When it asks the workspace location, enter a directory where you would want to put Carbide specific settings for PJSIP (or just accept the default value): 65 65 66 [[Image( carbide-workspace.JPG)]]66 [[Image(DevelopingSymbianAppWithCarbide:carbide-workspace.JPG)]] 67 67 68 68 You will now be presented with Carbide Welcome page. … … 73 73 Select '''File''' --> '''Import''' from the menu: 74 74 75 [[Image( file_import.JPG)]]75 [[Image(DevelopingSymbianAppWithCarbide:file_import.JPG)]] 76 76 77 77 This dialog below will pop up. Select '''Symbian OS''' --> '''Symbian OS Bld.inf file''' from the list, then press '''Next''' button: 78 78 79 [[Image( import.JPG)]]79 [[Image(DevelopingSymbianAppWithCarbide:import.JPG)]] 80 80 81 81 On the next dialog, click '''Browse..''' button to select '''bld.inf''' file from PJSIP's {{{build.symbian}}} directory, then press '''Next''' button: 82 82 83 [[Image( import_bld.JPG)]]83 [[Image(DevelopingSymbianAppWithCarbide:import_bld.JPG)]] 84 84 85 85 Then on the SDK selection dialog, select the build configurations that you want to support. For this tutorial, select WINSCW and GCCE from S60 3rd Edition MR SDK, and press '''Next''' button ('''do not select ARMV5 unless you have the commercial ARMV5 compiler'''): 86 86 87 [[Image( import_sdk.JPG)]]87 [[Image(DevelopingSymbianAppWithCarbide:import_sdk.JPG)]] 88 88 89 89 You will then presented with MMP selection dialog. Leave the default selection (normally it should select all MMPs) and press '''Next''': 90 90 91 [[Image( import_mmp.JPG)]]91 [[Image(DevelopingSymbianAppWithCarbide:import_mmp.JPG)]] 92 92 93 93 The project now is ready to be imported, press the '''Finish''' button: 94 94 95 [[Image( import_finished.JPG)]]95 [[Image(DevelopingSymbianAppWithCarbide:import_finished.JPG)]] 96 96 97 97 Carbide is now exporting the MMP files into the workspace and this progress window will be displayed: 98 98 99 [[Image( import_creating.JPG)]]99 [[Image(DevelopingSymbianAppWithCarbide:import_creating.JPG)]] 100 100 101 101 Wait for the process to complete. … … 103 103 Once it completes, you will see the PJSIP project tree on the bottom left part of the Carbide main window: 104 104 105 [[Image( carbide_main.JPG)]]105 [[Image(DevelopingSymbianAppWithCarbide:carbide_main.JPG)]] 106 106 107 107 On the '''Problems''' pane (bottom center of the main window) you can see there is one ''Warning'' about duplicate path, but we can ignore this for now. … … 121 121 Select '''Phone Debug (GCCE) [S60_3rd_MR]''' from the menu: 122 122 123 [[Image( build_config.JPG)]]123 [[Image(DevelopingSymbianAppWithCarbide:build_config.JPG)]] 124 124 125 125 === Build the Project === … … 127 127 Then right click ''Bld.inf'' or ''pjproject'' item from ''Symbian Project Navigator'' pane from the bottom left part of the main window, and select '''Build Target Only''': 128 128 129 [[Image( build.JPG)]]129 [[Image(DevelopingSymbianAppWithCarbide:build.JPG)]] 130 130 131 131 Wait for the build process to complete. You may take a peek on what Carbide is doing by clicking on ''Console'' pane/tab in the bottom part of main window. … … 133 133 Once it completes, watch out for any errors in the ''Problems'' pane (at the bottom center). There shouldn't be any errors, although there may be few warnings which I think can be ignored, for now: 134 134 135 [[Image( build_problems.JPG)]]135 [[Image(DevelopingSymbianAppWithCarbide:build_problems.JPG)]] 136 136 137 137 We are now ready to build the .sis/.sisx file to be deployed to the phone. … … 152 152 Assign the .pkg file to be used by the project by selecting Project Properties: 153 153 154 [[Image( project_properties_menu.JPG)]]154 [[Image(DevelopingSymbianAppWithCarbide:project_properties_menu.JPG)]] 155 155 156 156 Then Project Properties dialog will appear. On this dialog: … … 164 164 The dialog window now should look like this: 165 165 166 [[Image( project_properties.JPG)]]166 [[Image(DevelopingSymbianAppWithCarbide:project_properties.JPG)]] 167 167 168 168 Press ''OK'' button to save the project configuration. … … 170 170 Now right click '''bld.inf''' (or '''pjproject''') and click '''Refresh''': 171 171 172 [[Image( project_refresh.JPG)]]172 [[Image(DevelopingSymbianAppWithCarbide:project_refresh.JPG)]] 173 173 174 174 Wait for few seconds (30 seconds on my computer) for Carbide to do its job, once it's done, you will see the .pkg file in the ''Project Navigator'' pane: 175 175 176 [[Image( project_pkg.JPG)]]176 [[Image(DevelopingSymbianAppWithCarbide:project_pkg.JPG)]] 177 177 178 178 Note: … … 201 201 Right click '''bld.inf''' or '''pjproject''' from the ''Symbian Project Navigator'' pane, and select '''Build Target Only''': 202 202 203 [[Image( build.JPG)]]203 [[Image(DevelopingSymbianAppWithCarbide:build.JPG)]] 204 204 205 205 The build process will start. You can take a peek on the '''Console''' tab to see what's being done. Once the build process completes, you should see something like this on the '''Console''' tab: … … 235 235 Install TRK support on the phone. The TRK application can be found in '''{{{C:\Program Files\Nokia\Carbide.c++ v1.2\plugins\com.nokia.carbide.trk.support_1.2.0.29\trk\s60}}}''' directory. For my phone, the one that works is '''{{{s60_3_0_app_trk_2_7.sisx}}}'''. Right click this .sisx file and select '''Install with Nokia Application Installer''': 236 236 237 [[Image( trk_path.JPG)]]237 [[Image(DevelopingSymbianAppWithCarbide:trk_path.JPG)]] 238 238 239 239 When asked if we want to install, click '''Yes''': 240 240 241 [[Image( trk_install.JPG)]]241 [[Image(DevelopingSymbianAppWithCarbide:trk_install.JPG)]] 242 242 243 243 On the PC, this window should be displayed. 244 244 245 [[Image( trk_wait.JPG)]]245 [[Image(DevelopingSymbianAppWithCarbide:trk_wait.JPG)]] 246 246 247 247 Leave it this way, the installation will start on the phone now. Your phone should display something like this: 248 248 249 [[Image( trk_p_install.JPG)]]249 [[Image(DevelopingSymbianAppWithCarbide:trk_p_install.JPG)]] 250 250 251 251 Click Yes. … … 253 253 Now the phone will display '''Details''' information: 254 254 255 [[Image( trk_p_details.JPG)]]255 [[Image(DevelopingSymbianAppWithCarbide:trk_p_details.JPG)]] 256 256 257 257 Click Continue. … … 259 259 Your phone may now display the target memory location: 260 260 261 [[Image( trk_p_mem.JPG)]]261 [[Image(DevelopingSymbianAppWithCarbide:trk_p_mem.JPG)]] 262 262 263 263 Select the memory and press '''Select''' menu. … … 265 265 Now the phone will display license agreement: 266 266 267 [[Image( trk_p_lic.JPG)]]267 [[Image(DevelopingSymbianAppWithCarbide:trk_p_lic.JPG)]] 268 268 269 269 Click '''OK''' (if you agree, of course). The phone should display installation progress window for couple of seconds now: 270 270 271 [[Image( trk_p_progress.JPG)]]271 [[Image(DevelopingSymbianAppWithCarbide:trk_p_progress.JPG)]] 272 272 273 273 Once it's done, '''Installation Complete''' window will appear briefly: 274 274 275 [[Image( trk_p_complete.JPG)]]275 [[Image(DevelopingSymbianAppWithCarbide:trk_p_complete.JPG)]] 276 276 277 277 TRK is now installed on the phone. Next step is to run it. … … 284 284 1. The TRK window will appear. We can ignore the error message for now: 285 285 286 [[Image( trk_r_welcome.JPG)]]286 [[Image(DevelopingSymbianAppWithCarbide:trk_r_welcome.JPG)]] 287 287 288 288 1. Select '''Options''' --> '''Settings''' menu. 289 289 1. Change the '''Connection''' to USB, and leave all settings unchanged: 290 290 291 [[Image( trk_p_usb.JPG)]]291 [[Image(DevelopingSymbianAppWithCarbide:trk_p_usb.JPG)]] 292 292 293 293 1. Click '''Back''' to get back to TRK main window. … … 295 295 1. TRK main window should display '''Status: Connected''' now: 296 296 297 [[Image( trk_p_connected.JPG)]]297 [[Image(DevelopingSymbianAppWithCarbide:trk_p_connected.JPG)]] 298 298 299 299 Leave TRK running on the phone for the duration of this tutorial. … … 304 304 Find out which COM port is the phone connection mapped to, in Device Manager: 305 305 306 [[Image( dev_mgr_com.JPG)]]306 [[Image(DevelopingSymbianAppWithCarbide:dev_mgr_com.JPG)]] 307 307 308 308 In this case, the COM port is COM3. Note this COM port number, as we will need to specify it in Carbide. … … 317 317 Select '''Run''' --> '''Debug...''' from the main menu: 318 318 319 [[Image( run_debug.JPG)]]319 [[Image(DevelopingSymbianAppWithCarbide:run_debug.JPG)]] 320 320 321 321 '''Debug''' dialog will appear like below: 322 322 323 [[Image( debug.JPG)]]323 [[Image(DevelopingSymbianAppWithCarbide:debug.JPG)]] 324 324 325 325 ==== Create a new Debug configuration for on-device debugging ==== … … 334 334 You should see something similar to the image below. 335 335 336 [[Image( debug_main.JPG)]]336 [[Image(DevelopingSymbianAppWithCarbide:debug_main.JPG)]] 337 337 338 338 Now click on '''Apply''' button. The configuration name on the left tree now will get updated. … … 342 342 Now select '''Connection''' tab. Choose the '''Serial Port''' to the COM port where your phone connection is mapped to, which you have found out from the step above (look at the Device Manager). In my case, it was COM3: 343 343 344 [[Image( debug_connection.JPG)]]344 [[Image(DevelopingSymbianAppWithCarbide:debug_connection.JPG)]] 345 345 346 346 The ''Baud Rate'' setting should match the setting on the TRK application running on the phone. Since we have not changed this setting, just accept the default value (115200). … … 352 352 Now select the '''Installation''' tab. Browse the .sisx file from PJSIP's {{{build.symbian}}} directory: 353 353 354 [[Image( debug_installation.JPG)]]354 [[Image(DevelopingSymbianAppWithCarbide:debug_installation.JPG)]] 355 355 356 356 Now click '''Apply''' button … … 365 365 Carbide now may rebuild the project (you may take a peek on what it's doing by looking at '''Console''' tab). Once it's done, Carbide will switch to ''Debug Perspective'' and the SIS file will be downloaded to the phone and this window will appear briefly: 366 366 367 [[Image( debug_download.JPG)]]367 [[Image(DevelopingSymbianAppWithCarbide:debug_download.JPG)]] 368 368 369 369 When this window dissappear, you should see the application runs on the phone: 370 370 371 [[Image( symbian_ua.JPG)]]371 [[Image(DevelopingSymbianAppWithCarbide:symbian_ua.JPG)]] 372 372 373 373 You may make calls, receive calls, do presence stuffs, etc. Full debugging should also be possible; you may set breakpoints, step into functions, etc. … … 406 406 I had experienced this few times. The file seems to be downloaded to the phone fine (the download progress bar shows progress), but once debugging starts Carbide displays "Carbide Alert": "Load Failed", "TRKProtocolPlugin: Failed to download the specified file to target" (as shown in the picture below). 407 407 408 [[Image( trk_fail.JPG)]]408 [[Image(DevelopingSymbianAppWithCarbide:trk_fail.JPG)]] 409 409 410 410 I'm not sure what's causing this, but closing TRK on the phone, then reconnecting the USB cable and restarting TRK seems to have fixed this. … … 412 412 === TRKProtocolPlugin: Failed to continue thread === 413 413 414 [[Image( trk_fail2.JPG)]]414 [[Image(DevelopingSymbianAppWithCarbide:trk_fail2.JPG)]] 415 415 416 416 The solution is similar to above. … … 430 430 Like this dialog: 431 431 432 [[Image( trk_not_running.JPG)]]432 [[Image(DevelopingSymbianAppWithCarbide:trk_not_running.JPG)]] 433 433 434 434 If you see TRK is running on the phone, it means that your phone is hung now. Restart the phone by disconnecting the USB cable, taking of the battery, put it back on, start the phone, connect the USB cable, and re-run TRK again. … … 457 457 458 458 459