Giter Site home page Giter Site logo

hex2bin error about intelhex HOT 3 CLOSED

python-intelhex avatar python-intelhex commented on August 19, 2024
hex2bin error

from intelhex.

Comments (3)

bialix avatar bialix commented on August 19, 2024

Hello, it seems there is indeed bug in python3 version. Usually you have to provide output bin filename as last parameter, after filename of input hex file. Without output filename my script tries to write binary data to stdout and that provoked error.

As workaround try to run command with output filename argument:

python3 hex2bin Blinky.hex Blinky.bin

from intelhex.

bialix avatar bialix commented on August 19, 2024

According to http://stackoverflow.com/a/908440 IntelHex on Python3 should use sys.stdout.buffer.write to write binary data to stdout.

from intelhex.

bialix avatar bialix commented on August 19, 2024

fixed in master.

from intelhex.

Related Issues (20)

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.