Alea iacta est

I’ve decided, Low Layer Driver it is. So, I am in the middle of porting my libraries to LL. Just finished checking the LCD4 library, and decided to make a code size comparison between the APIs (HAL and LL).

The application is a “Hello World” type, testing the functionality of the library, with the main function looking like in the following screen capture:

The resulted code size:
8016 (text) + 1088 (data)

The equivalent written using LL driver looks like this:

The resulted code size:
2852 (text) + 12 (data).

Quite a dramatic improvement, right? I’m using the CubeMX to generate code for a Makefile project but this functionality is broken right now, so I recommend to wait ’till ST solves the problem.  Or proceed if you know how to fix it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.