How to use *.a file or compile *.a file to firmware

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
weili_an
Posts: 3
Joined: Mon Sep 06, 2021 8:00 am

How to use *.a file or compile *.a file to firmware

Post by weili_an » Wed Sep 22, 2021 4:29 am

micropython only support UTF code,I need to support chinese,so I need to add a font chip. But font chip only provide a *.a file and a *.h file,How should I use the two file?

stijn
Posts: 735
Joined: Thu Apr 24, 2014 9:13 am

Re: How to use *.a file or compile *.a file to firmware

Post by stijn » Wed Sep 22, 2021 6:43 am

You'll have to add the static library (the .a file) to the linker command in the Makefile. And change whatever C code needed to call the functions/variables in the .h file. But hard to give more information because I have no idea what a 'font chip' means or what's in the .h file :)

weili_an
Posts: 3
Joined: Mon Sep 06, 2021 8:00 am

Re: How to use *.a file or compile *.a file to firmware

Post by weili_an » Thu Sep 23, 2021 1:03 pm

I think I find example,I will try!

weili_an
Posts: 3
Joined: Mon Sep 06, 2021 8:00 am

Re: How to use *.a file or compile *.a file to firmware

Post by weili_an » Sun Sep 26, 2021 5:26 am

font chip is a flash chip that has many chinese character

Post Reply