Memory reading from processes. Use case:
- Embedded C program
- PC
- RS422 connection
- Debug cycle:
- compile ELF
- produce log
- analyze results
Emolog helps by providing:
- embeddable C implementation of embedded side of protocol
- minimal functions to implement to integrate to your control loop:
- examples for TI TIVA, STM32F3 and PC
- PC side ELF DWARF analyzer and logger:
- emotool.py --vars variables.csv --elf output.elf --serial hwgrep://0403:6010 --runtime 1.0
- produces CSV output easy to analyze
- variables.csv is a simple format specifying rate (relative to clock)
Steps to install Emolog on a windows machine (tested on Windows 8)
- Install python 3.5.x 64 bits for all users, folder should be c:\python35, add to path, (install debug symbols - not required)
- install Git Extensions from github (it also installs git)
- Install Visual studio build tools (required by cython) http://landinghub.visualstudio.com/visual-cpp-build-tools
- install TI Code Composer. use default folder: c:\ti (optional: for EVB) choose C2000 all (include gcc) choose arm all (include gcc) choose all debuggers except blackhawk choose gui composer (but not EVE)
- Install virtualenv globally (requires administrator privildges) pip install virtualenv # or use your package manager
- git clone https://github.com/alon/emolog.git
- cd emolog_pc; // NB: You should create a virtualenv; The following will install packages globally!
- create virtual environment virtualenv venv venv\scripts\activate
- Install cython (setup.py depends on it, but also lists it as a dependency) pip install cython
- Install package for development including all requirements: pip install -e .
- open command prompt at the emolog\emolog folder
- Install FTDI drivers
- connect FTDI FT2232H device
- turn off "Serial Enumerator" at device-manager->com ports->com X->Properties->Advanced settings
- run emotool.bat
After any change to a pyx file you need to rebuild the cython extensions: (venv)> python setup.py build_ext --inplace