Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

? Customize the BSP

? Customize the BSP

1. Detach from the target device and close Device Emulator.

2. In Visual Studio, open the init.c source code file that you can find in the %_PLATFORMROOT%DeviceEmulatorCloneSrcOalOallib folder, as illustrated in Figure 5-12.

3. Search for the OAL function OEMGetExtensionDRAM and add the following line of code to print a debug message in the Output window of Visual Studio during system startup.

BOOL OEMGetExtensionDRAM(LPDWORD lpMemStart, LPDWORD lpMemLen) {
 ...
 OALMSG(OAL_FUNC, L"++OEMGetExtensionDRAMrn"));
 // Test message to confirm that our modifications are part of run-time image.
 OALMSG(1,(TEXT("This modification is part of the run-time image.rn")));
 ...
}

4. Rebuild the run-time image to includes the changes, and then attach to the device again in order to download and start the new run-time image in Device Emulator. Verify that Windows Embedded CE prints the debug message in the Output window.


Figure 5-12 DeviceEmulatorClone BSP customization

Оглавление книги

Оглавление статьи/книги

Генерация: 1.177. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз