-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add feature to do not invoke devices bootloader. #193
Conversation
Would it be possible to automatically detect this? Which adapters require this? |
Would be possible, could try to check the USB devices name..
My own CC2652 stick. Used for dev stuff, zigbee coordinator or thread
border router..
Problem is that the CC2652's bootloader seems to don't have this magic
start byte..
Will try to programm some custom name or something like this into the USB
chip.. and trying to detect it then.
Thanks so far :)
Will come back to u ✌🏻
Koen Kanters <notifications@github.com> schrieb am Sa., 27. Juni 2020,
13:21:
… Would it be possible to automatically detect this? Which adapters require
this?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#193 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANHZHR2K4IQ6JGROYFYFC53RYXI4JANCNFSM4OJMPOPA>
.
|
hey @Koenkk , detection will work! my idea is now, to build generic "device-callbacks" .. so if a given "filter" matches (just a function), a set of given callbacks (maybe before-open, after-open, before-close, after-close, ...) will be called. what do you think? :) |
@slaesh what I'm also wondering, could there be an alternative for the magic CC2531 byte for the CC2652? Could you perhaps ask this to TI? (https://e2e.ti.com/) |
that "magic byte" seems to be the EOF cmd.. so BL thinks that the upload process is done and starts the "newly" flashed APP.. could work on the CC2652 too, will test that.. anyway! i need another workaround.. cause the "normal" state of the RTS causes a permanent RESET on my board.. any idea how i could do that? :) first way using the config.. would love to see your great work running with my cool stick ;D |
Please let me know. Regarding setting DTR to false, involving @omerk here as I think this is also needed for the zzh-p (as I needed to unplug the DTR to make it survive the reset). Is that right? |
So I feel there is a bit of a confusion here (or I might well be missing something): There is no "magic byte" to enter the BSL on CC1352/CC2652, you trigger it by pulling the BSL trigger pin (default: This requires a bit more thought and experimentation before I lock down the zzh-p design... Sidenote: Why |
thats the point @omerk ! thanks for your resume! =) putting DTR to false and RTS to true, and then putting them both to false.. try it out, should do the trick ;) this will reset the device on startup, but wont hold it in bootloader-mode or even worse, in reset-state. |
My apologies, should have read the actual PR and not just the last few comments. At least we are all talking about the same thing though :-) |
Would it be problematic if |
depends on the timings i guess.. could lead to problems. |
seems like it's working.. got a problem like once every 50 starts.. the 100% solution would be to make it configurable (BL_EN: high or low, RTS: reset or BL_EN, ...) what do you think @Koenkk @omerk ? |
i see those options:
option 1 will be done in several hours including tests and so on.. its easy! |
I will test if it's possible to set |
I guess the launchpad isn't wired like this. but sure, test it! :) |
#196 works just fine! closing this.. thanks! |
Option for devices with automatic "reset to bootloader".
Otherwise it will be held in RESET mode if the serial port is opened.
The "skipBootloader" is not working in this case.
during writing this comment, i guess it would be better and more explicit to move my code into this function ;)
TODO: