Other files than Python files in Secure Firmware Build - is it possible?
-
Hi!
I know this might be a bit of a silly question since PyCom states in the documentation that this isn't possible, but no other context nor workarounds are given:
It is only possible to include python files in the frozen section. Other filetypes (like .json or .cert) will not be added in the final binaries
(from the documentation)
But then, my questions are:
-
Is it possible to include files of any other type anywhere in the firmware build at all?
-
I'm thinking about getting around this using UART after the device firmware built has been completed. Does anyone have any experiences or tips to share?
-
-
I believe what you could do, is put the data you want to end up in the
.jsonor.certfile in a.pyfile, and 'self extract' into the designated fileformats as a workaround (depending on the filesize). Do note that the python file has to compile, meaning you cannot just put the json formatted data in there, and rename the file afterwards. -
@Gijs Thanks for the input, that sounds like an idea that can work.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login