python打包exe

方案1 pyinstaller

安装方式: pip install pyinstaller

用法: pyinstaller -F -i exe.ico hello.py

问题:1,杀毒软件会杀掉生成的exe,原因不明

  2,需要自行编译win平台的bootloader

方案2 Nuitka

安装:1,python -m pip install nuitk

          2,需要安装C++编译器,推荐mingw

用法:python -m nuitka –mingw64 –standalone –onefile .\getLicenseOfTasking.py

How to use Lauterbach

        Among the third-party independent debuggers, both Lauterbach and iSystem (i.e. Blue Box) are very famous, and their design concepts are different, Lauterbach mainly writes scripts to complete all the functions and can customize the interface through scripts, which is difficult for beginners to start, while iSystem is the opposite, most of the functions can be found in the graphical interface. Most of the functions can be found in the graphical interface, which is not as flexible as Lauterbach, but can be used by beginners very quickly.

        Lauterbach is very useful in embedded development and debugging. The advantages are strong performance, many functions, can always be extended according to their needs, and there is a powerful scripting system called PRACTICE, which can be extended by many functions. As for the disadvantage, it is too expensive. Depending on the features, it ranges from about a thousand to several thousand dollars. It is very uneconomical for individual users to buy. Of course, the price is too expensive is not its disadvantage, is my disadvantage.

        Due to my work, I mainly use Lauterbach, and I would like to summarize here to record some features of Lauterbach.

1,PRACTICE Script

A, Basic Function:

One basis PRACTICE script as below:

The SYStem command corresponds to CPU-System Setting in the menu bar, Data.Load is used to load elf, and all commands can be found in the installation file directory with the corresponding instructions.

B, Breakpoint

There is a advanced breakpoint. You can set a data breakpoint that can be triggered for the sixth time when the data value is written to 3.

C, Menu

Menu of Trace32 can be changed throught PRACTICE script. 

For example, in order to facilitate debugging, we want to implement the following function.

When trace32 is on, we can load the breakpoints saved during the last debugging and don’t want to set them again at this time. We can add the command as below: 

D, On Event

When we debugging system, sometime we often meet this issue: CPU is reset but we don’t known when it reset. In this case, we can use “on event” to capture when it is reset.