| A new complex embedded system was consisted of hardware environment, embedded operating system and application software. As a hardware platform of operating system and application, hardware environment has character of diversity with different functions. In the preliminary phase of system development, the main mission of system development has included driver test, bootloader, message transmission and target control. BSE (Board support environment) was able to operate on the target board independently, which could initialize system and control hardware . BSE had given a good environment for the development of operating system and application, which could shorten the development cycle.According to the requirement of BSE functions, the overall structure of BSE is established. The overall system was divided into tree main modules: system boot module, device driver module and command console module. The system boot module initialized the hardware and software of target board to boot itself firstly. It not only completed the hardware initialization tasks of general bootlaoder, but also completed some software initialization tasks, such as cache initialization, stack initialization, except handles and so on. Different CPU architecture has different realization of system boot module.A standard device operation interface was provided by the device driver module, which given hardware control and test function of BSE. This interface realized a mechanism that could translate the standard system call to the device driver. The BSE system and application software could use it to call the device driver.Some control and debug commands were realized to users by the command console module, which established the relationship between the command characters and the command function. This commands was involved in some control operation which was needed in the preliminary phase of embedded system development. The BSE system could help the embedded system development to independent with Debugger and Simulator. The entire BSE system had scalability and portability. |