Program C Ansi Programming Embedded Systems in C and C++ phần 3

Tham khảo tài liệu 'program c ansi programming embedded systems in c and c++ phần 3', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Simulators and Other Tools Of course many other debugging tools are available to you including simulators logic analyzers and oscilloscopes. A simulator is a completely host-based program that simulates the functionality and instruction set of the target processor. The human interface is usually the same as or similar to that of the remote debugger. In fact it might be possible to use one debugger frontend for the simulator backend as well as shown in Figure 4-2. Although simulators have many disadvantages they are quite valuable in the earlier stages of a project when there is not yet any actual hardware for the programmers to experiment with. Figure 4-2. The ideal situation a common debugger frontend - b a-32 b b 5 9-0i Inc 99 Simula tor Running on the Host Debugging Tip 2 If you ever encounter a situation in which the target processor is behaving differently from how you think it should from reading the data book try running the same software in a simulator. If your program works fine there then you know it s a hardware problem of some sort. But if the simulator exhibits the same weirdness as the actual chip you ll know you ve been misinterpreting the processor documentation all along. By far the biggest disadvantage of a simulator is that it only simulates the processor. And embedded systems frequently contain one or more other important peripherals. Interaction with these devices can sometimes be imitated with simulator scripts or other workarounds but such workarounds are often more trouble to create than the simulation is valuable. So you probably won t do too much with the simulator once you have the actual embedded hardware available to you. Once you have access to your target hardware-and especially during the hardware debugging-logic analyzers and oscilloscopes can be indispensable debugging tools. They are most useful for debugging the interactions between the processor and other chips on the board. Because they can only view signals that lie .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.