An error occurred: FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND.
Later I found out that it was due to insufficient MCU memory. After some investigation, I discovered that my KEIL was not cracked, which prevented compilation of programs larger than 2K.
After cracking KEIL 2 again, loading its compiler C51.EXE into Xinhua Long’s IDE resolved the issue.
The program was compiled, but I found that the debugger could not connect.
An alert appeared: The serial adapter must be re-programmed in order to function.
This means that the serial adapter must be reprogrammed to adapt to the IDE’s functions.
Since the debugger could read the serial number, it should not be damaged.
After inquiring about how to reset the debugger, Xinhua Long provided the following suggestions:
For the common issues frequently asked by EC5 customers,
1. First, let the user confirm the version of the IDE, which needs to be IDEV3.8 or above (the version number can be found in the help section).
2. In the IDE, go to Options -> connect options and select USB (if the option is not selectable, reset the EC5) and the corresponding JTAG (for F3XX and earlier) or C2 port (for F3XX and later).
3. Confirm whether the chip is encrypted; if the chip is encrypted, select Tools -> Erase code space in the IDE environment. If the erasure is successful, EC5 will automatically connect, and the chip model will be recognized at the bottom of the IDE interface under Target:. This way, EC5 and the board can work normally.
4. USB and JTAG cables should not have extension cables; using extension cables will affect EC5’s connection.
5. The reset software for EC5 is located in the installation directory of the IDE: C:\SiLabs\MCU\Utilities\USB Reset \USB Debug Adapter Firmware Reset. Operation: If there is no serial number in the box, click “refresh list” until a serial number appears. If repeatedly clicking does not yield a serial number, re-plug the EC5 USB cable or restart the computer. Once a serial number appears after clicking “refresh list”, click “update firmware” to prompt a successful update. EC5 can then be used normally. Otherwise, EC5 has an issue and needs repair.
6. If EC5 can update successfully but still cannot connect to the board, the problem is likely hardware-related. First, confirm that the circuit is connected correctly, which can be referenced against our development board’s schematic. Then confirm that pins 4, 5, 6, and 7 of JTAG are high (JTAG mode), and RST is high; confirm that pins 4 and 7 of JTAG are high (C2 mode). If any of these are low, check for cold solder joints; if there are no cold solder joints, the chip needs to be replaced.
7. If debugging with KEIL, ensure the latest KEIL drivers are used.
In conclusion, the answers found on Baidu were quite misleading. One can only understand the issue after trying it out oneself.