I have installed SiC8051F_uVision, but the EFM8BB50 series microcontroller is not listed in Silicon Labs' database. How can I compile EFM8BB50 with Keil? If I have all the header files for this microcontroller, can I create a database for it and compile it myself?
You may want to post your question here,
https://community.silabs.com/s/topic/0TO1M000000qHW3WAM/8bit-microcontroller-mcu?language=en_US
In the meantime, since I've never heard of the "SiC8051_uVision" variant (my install is much older), can you please post from your uVision menu Help -> About uVision?
You are right, this device is not in our device database. There are three ways to use new 8051 based devices in uVision:
Thank you very much. I successfully created the EFM8BB50 data using this method. I modified the CPU, XRAM, and IROM according to the datasheet. However, I didn't modify MON and SIM because the DLL files couldn't be edited. I'm not sure if these two files will have any impact, but currently, the compilation was successful and the HEX file was generated successfully. The EFM8BB50 header file comes from Simplicity Studio V5 software.
Good that you managed to define the device to a point where you can build your project.
MON and SIM specify the DLLs that display the peripheral dialogs for the simulator and target debugger. You can't extend these DLLs, and you will most likely miss some peripheral dialogs that are specific to your device.
You don't need the Keil Simulator to work. You can buy a $30 USD debugger from Mouser or wherever and debug on the real hardware including breakpoints and memory watches. SILabs provides the Windows application. I use a different part but I compile in uVision then load the .OMF into the SiLabs debugger application which is hooked up to my target hardware using their USB 10-pin debugger.
Although I compiled the HEX file using Keil, it seems useless because Keil cannot write the program via USB debug adapter. Other Silicon Labs software also fails to write the HEX file to the microcontroller. Currently, it appears that only Simplicity Studio V5 can compile and flash the program
This DLL file might be crucial, as it could affect whether I can write the program to the microcontroller. Although I compiled the HEX file using Keil, it seems useless because Keil cannot write the program via USB debug adapter. Other Silicon Labs software also fails to write the HEX file to the microcontroller. Currently, it appears that only Simplicity Studio V5 can compile and flash the program