GithubHelp home page GithubHelp logo

stm8-ida's Introduction

STM8-IDA

STM8 IDA processor module for STMicroelectronics' STM8 series of microcontrollers. Known working on IDA 7.6 and the IDA 7.6 SDK.

Installation & Building Instructions

Linux

  1. Get the IDA SDK from https://www.hex-rays.com/products/ida/support/download/
  2. Move this directory to $SDKDIR/modules/ (yes, move, symlinks won’t work)
  3. Run make
  4. Run sudo make install
  5. The processor type STMicroelectronics STM8" should now show up in IDA.

Visual Studio Building Instructions

  1. Place this repo in a folder in idasdk/module/

    Example file path of stm8.hpp:

    D:\idasdk72\module\STM8-IDA\stm8.hpp

  2. Open Visual Studio solution file or use the Visual Studio project creation instructions

  3. Ctrl+B to build

  4. You may see a linker warning:

    warning LNK4197: export 'LPH' specified multiple times; using first specification

    Don't worry about it.

  5. Copy the output file /x64/Debug/stm8.dll to your IDA proc directory

  6. Copy the STM8 config file stm8.cfg to your IDA cfg directory

  7. Start IDA :)

  8. The processor type is "STMicroelectronics STM8"

Visual Studio 2019 Project Creation Instructions

For IDA 7.2 SDK

Even though ida32 is used to work on 32-bit files, it is also an x64 application. Therefore, ida32 plugins must be built for the x64 platform.

  1. Open Visual Studio

  2. In the 2019 version, you may have to click "Continue without code ->"

  3. File > New > Project From Existing Code...

  4. What type of project would you like to create: Visual C++

    Press Next

  5. Project file location: the folder containing this repo

    Project name: STM8-IDA or whatever you like

    Press Finish

  6. Once the project is initialized, go to Project > Properties or hit Alt+F7

  7. Open the Configuration Manager

  8. Active solution platform: select "x64"

  9. Press Close

  10. General > Configuration Type

    Set to Dynamic Library (.dll)

  11. C/C++ > General > Additional Include Directories

    Enter the SDK's include folder eg. C:\idasdk\include;

    Or use a relative path such as ../../include

  12. Linker > Command Line > Additional options

    Write: /EXPORT:LPH

  13. C/C++ > Preprocessor > Preprocessor Definitions

    Add to beginning: NT;

  14. Linker > Input > Additional Dependencies

    Add to beginning: \lib\x64_win_vc_32\ida.lib;

    Or use a relative path such as ..\..\lib\x64_win_vc_32\ida.lib;

Known issues

  1. Autocomments spam the output window with a warning:

    Exception in IDP Hook function: SWIG director type mismatch in output value of type 'int' in method 'ev_get_autocmt'
    TypeError: SWIG director type mismatch in output value of type 'int' in method 'ev_get_autocmt'
    

    I don't know how to fix this.

  2. No stack variable tracing :(

stm8-ida's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.