Monday, August 22, 2011

Platform Builder on Windows 7 (64-bit) "Tools Install Dir in registry is missing" etc.

Resolve "Tools Install Dir in registry is missing" and Remote Tools issues on Windows 7 (64-bit) system after Platform Builder is installed by exporting [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder] from an 32-bit system, changing "Program files" entries to "Program Files (x86)" or create REG file with content listed below and import into the registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00]
"Language"="USA"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Debug]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Directories]
"Install Dir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"
"OS Install Dir"="C:\\WINCE600\\"
"Tools Install Dir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\cepb\\IdeVS\\"
"IDE Install Dir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\External Tools]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\External Tools\CE &Update Check]
"ToolCmd"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\cepb\\SustainedEngineering\\CEUpdateCheck.exe"
"ToolDir"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\cepb\\SustainedEngineering\\"
"ToolOpt"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\General]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Registration]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Registration\DigitalProductID]
@=hex:a4,00,00,00,03,00,00,00,38,34,33,30,32,2d,30,30,36,2d,30,30,32,31,30,39,\
  32,2d,36,30,39,33,37,00,78,00,00,00,38,31,34,2d,30,30,33,30,37,00,00,00,00,\
  00,00,00,0c,30,c5,69,6e,fc,2f,24,7d,df,8f,3e,89,14,02,00,00,00,00,00,57,0b,\
  cb,4a,0f,78,37,87,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,38,36,34,30,33,00,00,00,00,00,00,00,00,00,00,00,8b,8c,42,cc,\
  f6,07,00,00,33,0f,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,ac,23,e8,48

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Registration\ProductID]
@="84302-006-0021092-60937"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\SDKRoller]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\SDKRoller\LangRollers]
"{C865CF92-25A7-4B67-AA7F-80B5B7554929}"=""
"{C7A1C31C-41ED-434C-9EAD-526B420FAC75}"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Setup]
"Locale"=dword:00000409
"Version"="6.00.2027"
"CETK"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\CEPB\\WCETK"
"SP1_ENU"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"
"SP1"="C:\\Program Files (x86)\\Microsoft Platform Builder\\6.00\\"
"FP1_ENU"="C:\\WINCE600\\"
"FP1"="C:\\WINCE600\\"
"FP2_ENU"="C:\\WINCE600\\"
"FP2"="C:\\WINCE600\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Platform Builder\6.00\Tools]
@=""
"MenuName#0"="Remote File Viewer"
"PathName#0"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cefilevw.exe"
"MenuName#1"="Remote Heap Walker"
"PathName#1"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\ceheapwk.exe"
"MenuName#3"="Remote Registry Editor"
"PathName#3"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\ceregedt.exe"
"MenuName#4"="Remote Spy"
"PathName#4"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cespy.exe"
"MenuName#5"="Remote System Information"
"PathName#5"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cesysinfo.exe"
"MenuName#6"="Remote Zoomin"
"PathName#6"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cezoom.exe"
"MenuName#7"="Remote Kernel Tracker"
"PathName#7"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\kerneltracker.exe"
"MenuName#8"="Remote Performance Monitor"
"PathName#8"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\ceperfmon.exe"
"MenuName#9"="Remote Call Profiler"
"PathName#9"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\msic.exe"
"MenuName#2"="Remote Process Viewer"
"PathName#2"="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\Windows CE Tools\\Platman\\bin\\wce600\\cepview.exe"

 

Tuesday, August 02, 2011

SYSGEN_BTH_UART_ONLY (winceos.bat bug fix)

RE: "Bluetooth Protocol Stack with Transport Driver Support" catalog items

For our device, the interface to our built in Bluetooth radio is a UART (COM port) so
the only Bluetooth transport we need in our OS Design is the "Bluetooth Stack with Integrated UART Driver". (SYSGEN_BTH_UART_ONLY)

However, when choosing just that (instead of choosing the "Universal Loadable Driver") my OS image ended up not having the REG or BIB file entries I expected for "bthuart.dll", there was no transport at all.

Looking into the issue I found the reason why.

C:\WINCE600\PUBLIC\CEBASE\OAK\MISC\winceos.bat
is missing the BTD_DRIVERS and CE_MODULES entries for :bth_uart_only and :bth_csr_only
(like the other similar transports have)

When finished editing this file it should look like this:

:bth_uart_only
set BTD_COMPONENTS=%BTD_COMPONENTS% uart
set BTD_DRIVERS=bthuart
set CE_MODULES=%CE_MODULES% %BTD_DRIVERS%
goto endbluetooth
:bth_csr_only
set BTD_COMPONENTS=%BTD_COMPONENTS% csr
set BTD_DRIVERS=bthcsr
set CE_MODULES=%CE_MODULES% %BTD_DRIVERS%
goto endbluetooth

You must do a clean sysgen of your OS Design to pick up the change.