Hi
Kinetis V1.4.7 was released with
ETH_INTERFACE disabled (see release notes) so it is correct that it needed to be enabled to use Ethernet and for the simukator to work with the NIC.
Note however that this is not (really) a mistake because
config.h can be configured in many different ways and will often be changed many times a day as different parts and applications are worked on. Therefore always check that the project setup is as you would like it to be - the simulator helps to do this quickly.
UARTs:
- if you set up a UART to be mapped to a COM port that exists on your PC it will communicate via that physical interface.
- What is often used is a COM to COM loop back device so that a PC application, like a terminal emulator , can be connected to the UART. See this thread for details:
http://www.utasker.com/forum/index.php?topic=673.0-
UARTx.txt is created (if enabled) to save all transmitted data into so that it can be analysed (if required) after simulator use. It in not an input to the simulator but instead just a log file.
- The UART tests in the menu allow the simulator to inject a simple test reception to the UART in question (it just sends a fixed string like "Hello, world". It is usefuly for checking the basic reception - for example by putting a breakpoint into the UART rx interrupt to see whether it is hit when the test is executed and then to check the application level reception to see that it arrives there correctly.
- It is also possible to write a simulator script file that includes data to be injected into the UART(s) (this is started using the "Port sim" menu) and is especially useful if you are developing protocols and you want to inject test messages/sequences to test/develop the application layer handling.
Eg.
500 UART1 "TEST_RX_1"
+1000 UART1 "Next test"
This would inject the string TEST_RX_1 to UART 1's input after 500ms and then inject teh second string 1000ms later.
0x00 0x02 0x03 etc. can be used instead of strings to inject binary data.
Regards
Mark