Skip to content

Instantly share code, notes, and snippets.

View ahogen's full-sized avatar

Alex H ahogen

View GitHub Profile
#!/usr/env python3
"""
Alex Hogen ([email protected])
Compare Anybadge to Sheilds.io SVG badges.
"""
import os
import sys
import shutil
@ahogen
ahogen / inject_crc32_lpc_boot_block.gdb
Last active June 10, 2019 23:15
Compute a CRC32 of an ELF image and insert it into the
###############################################################################
# Date: 2019-06-06
# Author: Alexander Hogen
# [email protected]
# https://github.com/ahogen
#
# !! NOTE: This is currently just a scratchpad for my work. THIS IS NOT DONE YET!
#
# The NXP LPC(546xx) microcontroller's bootloader supports verifying the
# image by checking a CRC32 value before starting to execute it. This
@ahogen
ahogen / get-gcc-arm-none-eabi.py
Last active October 30, 2019 19:23
Download latest GNU GCC compiler from ARM's website (for Cortex-M and Cortex-R processors).
#!/usr/bin/env python3
"""Download latest GNU Toolchain from ARM's website
Author: Alex Hogen ([email protected])
MIT License
Copyright (c) 2019 Alexander Hogen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal