mirror of https://github.com/rusefi/rusefi-1.git
88b8e57e10 | ||
---|---|---|
.. | ||
Actuator | ||
Feedbacks | ||
Logic_Wave | ||
MicrocodeCh1 | ||
MicrocodeCh2 | ||
Registers | ||
Simulator | ||
Stimulus | ||
sample_code | ||
.gitignore | ||
AutoLoad.xml | ||
labels.xml | ||
project.xml | ||
readme.md |
readme.md
Source code here is different from but is heavily inspired by MC33816 example as conveniently comes with MC33816 Dev Studio.
Workflow:
PT2001 Studio: Compiling/Generating C/header Files
- Open "PT2001 Developer Studio", and open project
firmware/hw_layer/mc33816/rusefi/project.xml
. - Press the "Build" button at the right/center of the window to assemble the microcode.
- Use
Tools
->Generate PT2001 Load Data Code
to generate C/header files used by rusEFI to program the PT2001 over SPI at boot (seemc33816/rusefi/sample_code/
).
PSC Simulator: Simulating microcode/config changes
- Follow "PT2001 Studio" steps to build the project first.
- Open "PSC Simulator", add the project if not added yet (
Project
->Add Existing
), and open it from the tree view. - Press
Compile All
in the toolbar. - In the top bar, push
Run
, and type in the desired simulation length.4 ms
(with a space) is a good starting point for the existing stimulus. - Press OK on the
Auto Load
dialog box that comes up (all boxes checked). - Wait for the simulation to run. There's an indication in the bottom left corner of the main window about simulation progress.
- Inspect the simulation results!
Just in case we have a backup of tools at https://github.com/rusefi/rusefi_external_utils/tree/master/NXP-GDI