-
Notifications
You must be signed in to change notification settings - Fork 2
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
stm32f4 stm32f7 wont boot #5
Comments
Thank you for your feedback! If you could share a simple code example that makes an stm board crash everytime, it will help me to investigate a little bit inside my library, just to be sure. |
Simple the melody with tone example unmodified will do it. (But not the
melody serial that works fine) but its any line that starts with the word
"melody" followed by the song name "bach blah" delete all those and it
boots fine. Also replacing the char with a string version works fine. In
the header i belive melody is listed a couple times like melody::melody
char and.melody::melody string (thats from memory but basic words are
correct) its any calls to the melody::melody char that bring it down....at
least thats what i think the melody with tone example uses and the melody
with serial uses melody string function? Which is why it works. Grain of
salt im.new to a lot of this lol. If i was unclear i can goto pc and copy
and paiste one of the offending lines. That would probly make more sense
then me. Give me.just a quick min ;)
…On Sat, 9 Apr 2022, 21:02 Claude Bouchard, ***@***.***> wrote:
Thank you for your feedback! If you could share a simple code example that
makes an stm board crash everytime, it will help me to investigate a little
bit inside my library, just to be sure.
I didn't test my library on a lot of platforms...
—
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAWMPYJ7NSHZMBISF6WKZTVEISB7ANCNFSM5S77BBOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
this is one of the lines (any that declaire a song)
Melody scaleLouder("c>>> d>> e>f g< a<< b<<< c*<<<<", 240);
and asecond one just in case
Melody mozartNachtmusik("g<<r-d- | g<< r-d-(g<dg<b)-d<*r | c*<<r-a-c*<<r-a-
|(c*<af#<a)-d<r | (gr)- g. (bag | (gag)/3:1 f#)- f#. (ac*f# | ag)- g. (bag
| (gag)/3:1 f#)- f#. (ac*f#)- | ((grgr)-- (gf#ef#)--)>> ((grgr)--
(baga)--)> | (brbr)-- (d*c*bc*)-- d*< r | ((de)+ | (d-c.)-c (c-b_.)- b_ |
(( b-a.)- a (gf#ef# | (grarbr)>)- r )_)> ", 140);
kinda surprised its able to stop the stms from booting so quickly. Im
interested in what exactly is the problem but afraid I dont currently have
the skills to figure it out.
…On Sat, Apr 9, 2022 at 9:26 PM benjamin maddocks ***@***.***> wrote:
Simple the melody with tone example unmodified will do it. (But not the
melody serial that works fine) but its any line that starts with the word
"melody" followed by the song name "bach blah" delete all those and it
boots fine. Also replacing the char with a string version works fine. In
the header i belive melody is listed a couple times like melody::melody
char and.melody::melody string (thats from memory but basic words are
correct) its any calls to the melody::melody char that bring it down....at
least thats what i think the melody with tone example uses and the melody
with serial uses melody string function? Which is why it works. Grain of
salt im.new to a lot of this lol. If i was unclear i can goto pc and copy
and paiste one of the offending lines. That would probly make more sense
then me. Give me.just a quick min ;)
On Sat, 9 Apr 2022, 21:02 Claude Bouchard, ***@***.***>
wrote:
> Thank you for your feedback! If you could share a simple code example
> that makes an stm board crash everytime, it will help me to investigate a
> little bit inside my library, just to be sure.
> I didn't test my library on a lot of platforms...
>
> —
> Reply to this email directly, view it on GitHub
> <#5 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADAWMPYJ7NSHZMBISF6WKZTVEISB7ANCNFSM5S77BBOA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Hello! First, there is a new version since june (v1.2.0) maybe it will fix issues with string/*char. Also, maybe it is a memory issue, because really long melody is too much to put in memory. |
For sum reason (and im new to coding so please forgive me if i use incorrect names/words) on my stm3f4/7 boards f413 f401 f411 f767 etc If I load the example Melody with tone then my stm boards will not boot, they all make it as far as dmesg showing new fs usb device and thats where they die, and I have to force a boot into bootloader to reprogram them. The Melody from serial works great on all of them. After deleting things till the stm's would boot I realized it was the call Melody char that breaks the boards but melody string works great! Ive tried this on arduino version 1.8.9 to 1.8.19 and on 2 x86_64 pc's and 2 arm64 pc's and with 2 different versions of the stm32-arduino package, and of course setting different pins. I dont think your lib is to fault my assumption is this has brought to light some poorly written stm32 implementation of sum arduino lib, I assume based of the example name the tone lib is used wonder if stm's is hurting? Anyone else have this issue? Again thank you for your work amazing lib!
The text was updated successfully, but these errors were encountered: