Linux flash programming utilities for EFM8/C8051Fxxx
10/275/2018 | 06:05 AM
Question:
Are there any software flashing tools for EFM8/C8051 devices available for Linux (such as the like the flash programming utility for EFM8/C8051Fxx devices)? Are there any C2 or USB Debug Adapter (UDA) Linux driver available?
Additionally, I have attached several files to this article that I hope will help enable programming of the EFM8/C8051 devices from the Linux command line. One is a library file that you can utilize with your own wrapper functions to program the device. This is the file "libslab8051.so." The other is a header file that describes the functions contained therein that should enable you to program the C8051 using the USB Debug Adapter that you already have. This file is "SLAB8051.h." I have also attached the header file "SLAB8051Errors.h" to this article.
Unfortunately, we do not really have additional documentation or examples of the use of "libslab8051.so." The DLL that this was based on, however, is called SiUtil.DLL and while we do not have a linux version of this DLL, we do have an application note (AN117) that may have information that translates over to the functions of "libslab8051.so" and could be helpful to you. You can find this application note here: https://www.silabs.com/Support%20Documents/TechnicalDocs/an117.pdf
It seems that a `libslabhiddevice.so` file should also be included? The header files are also strange... SLAB8051Errors.h is a HTML file which would not be usable with any C compiler, and SLAB8051.h, while allegedly portable to multiple platforms includes "stdafx.h" a file that I have only run across on Windows. In addition, that SLAB8051.h file contains a lot of Windows-specific types (DWORD, BYTE, BOOL).
Can you please clarify how (or if !) this file is intended to be used?
Linux flash programming utilities for EFM8/C8051Fxxx
Question:
Are there any software flashing tools for EFM8/C8051 devices available for Linux (such as the like the flash programming utility for EFM8/C8051Fxx devices)? Are there any C2 or USB Debug Adapter (UDA) Linux driver available?
Answer:
The following are links to two discussion threads in the Silicon Labs Community which may be of use in this matter:
http://community.silabs.com/t5/Simplicity-Studio-and-Software/Flashing-Running-from-command-line/m-p/142582/highlight/true#M10052
http://community.silabs.com/t5/8-bit-MCU/Announcing-linux-C2-flash-tool/m-p/134037/highlight/true#M41338
Additionally, I have attached several files to this article that I hope will help enable programming of the EFM8/C8051 devices from the Linux command line. One is a library file that you can utilize with your own wrapper functions to program the device. This is the file "libslab8051.so." The other is a header file that describes the functions contained therein that should enable you to program the C8051 using the USB Debug Adapter that you already have. This file is "SLAB8051.h." I have also attached the header file "SLAB8051Errors.h" to this article.
Unfortunately, we do not really have additional documentation or examples of the use of "libslab8051.so." The DLL that this was based on, however, is called SiUtil.DLL and while we do not have a linux version of this DLL, we do have an application note (AN117) that may have information that translates over to the functions of "libslab8051.so" and could be helpful to you. You can find this application note here:
https://www.silabs.com/Support%20Documents/TechnicalDocs/an117.pdf
This is tantalizing close, but does not look quite right. The `.so` file says:
It seems that a `libslabhiddevice.so` file should also be included? The header files are also strange... SLAB8051Errors.h is a HTML file which would not be usable with any C compiler, and SLAB8051.h, while allegedly portable to multiple platforms includes "stdafx.h" a file that I have only run across on Windows. In addition, that SLAB8051.h file contains a lot of Windows-specific types (DWORD, BYTE, BOOL).
Can you please clarify how (or if !) this file is intended to be used?