I wrote some code with python ,and now I want to know is it possible burning my code into pyboard??
PS : My target is people can use my lib but they can't see my code. like I can import pyb lib and use it ,but I can't see the pyb'source.
Burning program into pyboard.
Re: Burning program into pyboard.
Hellp @316meng,
on Pyboard you can use frozen bytecode.
Instructions provided by @pythoncoder are here: http://forum.micropython.org/viewtopic.php?f=6&t=1776
It requires rebuilding micropython for PyBoard, which is easiest done in a Linux environment.
Best Regards
on Pyboard you can use frozen bytecode.
Instructions provided by @pythoncoder are here: http://forum.micropython.org/viewtopic.php?f=6&t=1776
It requires rebuilding micropython for PyBoard, which is easiest done in a Linux environment.
Best Regards
Re: Burning program into pyboard.
Based on the fact that everyone can inspect the open-source code for the pyb online, the OP should rethink the request or describe the real intent behind his question.
Asking for closed-source possibilities in open-source project does not always yield satisfying answers.
Besides using frozen bytecode you can also use frozen modules. There people might not see the code as you cannot see the code of the pyb module
Asking for closed-source possibilities in open-source project does not always yield satisfying answers.
Besides using frozen bytecode you can also use frozen modules. There people might not see the code as you cannot see the code of the pyb module
Re: Burning program into pyboard.
Of course it's always trivial to disassemble any python code. And not that much harder with code written in other languages. So the whole code-hugging thing is moot.
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: Burning program into pyboard.
STM32F boards with Flash memory have the facility to protect the flash contents against reading them out with a debugger or similar. It doesn't work with MicroPython and I'm sceptical that it could be made to work.