GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

from glasgow.arch.arm.dap import * image = [] addr = 0x0 size = 0x1000 while addr < size: try: await swd_iface.initialize() await swd_iface.ap_write(0, 0x00, 0x0b800052) # word, autoinc await swd_iface.ap_write(0, 0x04, addr) # TAR while addr < size: data = await swd_iface.ap_read(0, 0x0C) # DRW print(f"{addr=:08x} {data=:08x}") image.append(data) addr += 4 except: print("reset") # crashed or something idk?? with open("stm32h723.bin", "wb") as file: for word in image: file.write(word.to_bytes(4, "little"))

Download link

https://files.mastodon.social/media_attachments/files/114/665/224/530/239/520/original/987df344511f40d6.png

Notices where this attachment appears

  1. Embed this notice
    ✧✦Catherine✦✧ (whitequark@mastodon.social)'s status on Wednesday, 11-Jun-2025 23:34:48 JST ✧✦Catherine✦✧ ✧✦Catherine✦✧
    in reply to

    fortunately, glasgow lets you write scripts, so i wrote this quick script that lets me read memory while ignoring all errors by resetting the SWD interface whenever they happen

    In conversation about a year ago from gnusocial.jp permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.