Giter Club home page Giter Club logo

Comments (15)

msdgd avatar msdgd commented on August 17, 2024

If I send you my st32.bin file via e-mail, would you mind if you patch it and send it?

from airbreak.

msdgd avatar msdgd commented on August 17, 2024

It gives the same error when restoring/flashing the stm32.bin file, but the device returns to normal. restarts are interrupted.

`flash_new stm32.bin
Unable to match requested speed 2000 kHz, using 1800 kHz
Unable to match requested speed 2000 kHz, using 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800021c msp: 0x2000f000
Tickling watchdog...
device id = 0x10076413
flash size = 1024 kbytes
Resetting device...
Unable to match requested speed 2000 kHz, using 1800 kHz
Unable to match requested speed 2000 kHz, using 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800021c msp: 0x2000f000
Overwriting flash memory...
device id = 0x10076413
flash size = 1024 kbytes
Verifying that flash was written properly...
Unable to match requested speed 2000 kHz, using 1800 kHz
Unable to match requested speed 2000 kHz, using 1800 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800021c msp: 0x2000f000
Resetting watchdog bit...
Unable to match requested speed 2000 kHz, using 1800 kHz
Unable to match requested speed 2000 kHz, using 1800 kHz
Writing magic numbers back into RCC memory...
Booting device...
tcl/airsense.cfg:63: Error: invalid command name "postboot"
in procedure 'flash_new'
at file "tcl/airsense.cfg", line 63

`

from airbreak.

msdgd avatar msdgd commented on August 17, 2024

It is normal?

`─(kali㉿kali)-[/media/kali/Lexar]
└─$ sha256sum stm32.bin
533b91127aa22e05b933db203ad56c449dc12a8c3fd62f57bd88c472a8061775 stm32.bin

┌──(kali㉿kali)-[/media/kali/Lexar]
└─$ sha256sum stm32-unlocked.bin
3ef08b46768c9a3bb46805c61c41464023f7b18f8deee102946bf4c7ceaa1255 stm32-unlocked.bin
`

from airbreak.

msdgd avatar msdgd commented on August 17, 2024

or Can you send me the ready stm32-unlocked.bin file to I make flash

from airbreak.

msdgd avatar msdgd commented on August 17, 2024

or there is no problem in the patching part, is there a problem in the flashing part? because it gives postboot error

[root@fedora scripts]# ./patch-airsense stm32.bin stm32-unlocked.bin stm32.bin: Tamam patching 000000f0 patching 00017500 patching 0001a540 patching 0001b860 Including breath.bin patching 000bb734 Including graph.bin patching 000fd000 patching 000f9c88 patching 00004fa8 patching 00004fc4 patching 00007eb0 patching 00007ee8 patching 00007ecc patching 000084a8 patching 00008590 patching 00066470 patching 000050d0 patching 0000817c patching 00008198 patching 00004f9c patching 00004fb8 patching 00007ec0 patching 00007f14 patching 00007ef8 patching 00007f30 patching 00004fd4 patching 00007f68 patching 0000802c patching 00008048 patching 00008064 patching 000080b8 patching 0000809c patching 000080d4 patching 000080f0 patching 00008128 patching 00008144 patching 00008160 patching 00017588 fatal: bir git deposu (veya üst dizinlerinden birisi) değil: .git patching 00017764 3ef08b46768c9a3bb46805c61c41464023f7b18f8deee102946bf4c7ceaa1255 stm32-unlocked.bin

from airbreak.

jasonminsookim avatar jasonminsookim commented on August 17, 2024

Hey I have had the same exact problem as you. I've used the pull request from dblunk88 with SX567-0306. I'll keep trying to debug this.

from airbreak.

jasonminsookim avatar jasonminsookim commented on August 17, 2024

@msdgd I think I finally solved it! Here are the steps that I took to get it working.

  1. Instead of cloning this git repo, clone the pull request from @dblunk88
git clone https://github.com/dblunk88/airbreak
  1. I also had to comment out the path_code function in the path-airsense script
# patch_code() {
# 	#if you want to add the extra breath mode
# 	BUILD_FLAGS=$(( BUILD_FLAGS | (1 << 0) ))
# 	if [ -r breath.bin ] && [ $version = "401" ] ; then
# 		echo "Including breath.bin"
# 		cat breath.bin | patch 0xbb734 || die "binary patch failed"
# 	elif [ -r breath.bin ] && [ $version = "306" ] ; then
#                 echo "Including breath.bin"
#                 cat breath.bin | patch 0xbb4d4 || die "binary patch failed"
# 	else
# 		die "breath.bin not found, did you run make?"
# 	fi 

# 	if [ -r graph.bin ]; then
# 		echo "Including graph.bin"
# 		cat graph.bin | patch 0xfd000 || die "graph patch failed"
# 		printf '\x01\xd0\x0f\x08' | patch 0xf9c88 || die "graph fixup failed"
# 	fi
# }
  1. Follow the instructions on https://github.com/osresearch/airbreak/blob/master/docs/firmware.md

from airbreak.

msdgd avatar msdgd commented on August 17, 2024

20210926_020708
I followed your instructions, done. Some text in the last menu was broken. I also commented the last part, it was fixed. thanks a lot @jasonminsookim 🙏

from airbreak.

msdgd avatar msdgd commented on August 17, 2024

I would love to share but they said it would be a problem due to the serial number and differentiation of the device

from airbreak.

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.