Reply
Highlighted
Posts: 2
Registered: ‎09-18-2017
Accepted Solution

EFM8 USB to UART - compile on EFM8UB10F8G-C-QFN20

Dear all,

 

We develop project, based on the USB <-> UART example from Silabs, and for the test we use

SLSTK2000A - EFM8 universal bee

 

When i compile the example i receive: Program Size: data=163.2 xdata=554 const=1085 code=11481

The project works and we added our application level logic inside without issue.

 

Our target is to use in production EFM8UB10F8G-C-QFN20 but it seems the code is too large to fite. I removed all unused modules (display control etc) and the code was above 10000 (i suppose it is in bytes).

 

Is there any chance to be able to fit into 8K flash for this examle, or we need to use 16K art.

 

If the example cannot fit, which kind of USB aplication can fit into this MCU with 8K flash and USB eriheral?

 

Regards

DImitar Belev

Posts: 344
Registered: ‎09-22-2009

Re: EFM8 USB to UART - compile on EFM8UB10F8G-C-QFN20

Did you compile the code in Keil's Debug or Release mode? Debug will be larger code for debugging purposes. The USB HID Joystick software example compiles to 6.5k in Debug and 6.2k in Release, and both of these can be used on the 8k device.

Posts: 2
Registered: ‎09-18-2017

Re: EFM8 USB to UART - compile on EFM8UB10F8G-C-QFN20

Hi Alan,

 

I compiled in release mode, the current difference is minimal, when i test the UART example:

 

Release: 11481

Debug: 11546

 

If we are far above 8K, i suppose there is no chance to fit, I just wondered if any USB application can fit into 8K, but you already mentioned the some of the HID projects.

 

Regards

Dimitar

<a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Hero</font></font> </a> jmg
Posts: 1,185
Registered: ‎04-27-2004

Re: EFM8 USB to UART - compile on EFM8UB10F8G-C-QFN20


If we are far above 8K, i suppose there is no chance to fit, I just wondered if any USB application can fit into 8K, but you already mentioned the some of the HID projects. 


You could build both the HID and your instance and carefully compare the MAP files ?

That could reveal if some extra library is suddenly included.

Posts: 344
Registered: ‎09-22-2009

Re: EFM8 USB to UART - compile on EFM8UB10F8G-C-QFN20

Did you play with the optimization settings of the compiler as well?