-
Notifications
You must be signed in to change notification settings - Fork 266
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 default config keeps restarting #1980
Comments
@ThePiGrepper Thanks a lot. |
indeed. that should fix it. 👍
inside the systick IRQ handler actually make it stop rebooting, instead reaching level 3. |
hm, apparently it doesnt fix it after all. I cherry-picked the commit from master and it manages to reach prompt fine, however it doesnt handle <return> correctly. |
Hm, It's odd. But I think It's another problem. It's a pity I have not stm32f4 today, only stm32f7 . I checked on it and all work correctly. Can you investigate the trouble more deeply? Rollback to the next after " third-party: Porting new version of linenoise" and cherry-pick diff from #1979 |
Ok, I will. it's weird that it only happens with the stm32f4, and not with the f7 though. btw, do you have an idea of why this happened?
|
@ThePiGrepper Let's try to separate issues (terminal and clock) About linenoise trouble. Did you revert commits until the new version of linenoise and cherry-pick diff from #1979? Did the problem reproduce? |
the clock 'issue' I dont know if I would even consider an issue. I'm just curious about how something like those three lines can change the behavior of the breakage. Probably @alexkalmuk knows, because he removed those lines.
and it behaves just the same as it does in master after patching. it mishandles <return>, it just treats it as a regular '\n' character instead of actually signaling the shell to start executing the command line. |
@ThePiGrepper Hi! I do not have the cable to see the serial output on F4 right now, sorry. As far as I understand, removing
leads to F4 rebooting? When? After UPD. If these 3 lines really help, could you please set a breakpoint inside this |
That's the weirdest part, I did add a printk() inside the if statement and it actually doesnt enter at all. I just did the test again(you can do it on top of master as well, you only need to add those 4 lines back to src/drivers/clock/cortexm_systick.c with the printk() line inside the if() and change LINENOISE_MAX_LINE back to 4096), and it indeed changes the behavior of the bug. |
@ThePiGrepper Please try to modify your conf/mods.config with
and check console input |
It's not that. all input is detected normally. the issue happens when I send <return> and instead of treating it like the line delimiter, it just treats it as a regular character, echoing it (going to nextline). |
@ThePiGrepper I want to localize the problem
with
and reproduced behaviour which you described in the issue The difference between diag and ttySx is that ttySx-s use interrupts but diag-s not. I'm trying to solve the problem, and if you checked ttyS0 on your board you would help me very much. The information whether it is the same problem or not will be very useful for me :) |
oops, sorry, I forgot to say that I did test what you asked, and there's no difference. sorry for the confusion. |
Oh, sorry. I undertood now. Thanks a lot! |
@ThePiGrepper Look at #1990 please. |
this solved the issue. :-) |
@ThePiGrepper Thanks |
Using arm/stm32f4-discovery default configuration, immediately after exec'ing tish and showing the prompt, it show the following error and restarts.
After bisecting the tree, the bug started at:
8474757 : third-party: Porting new version of linenoise
Obs:
There are two different observable behaviors:
The one explained previously happens after 8474757, and before 4d092c5: drivers: Refactor cortexm systick.
It changes after 4d092c5, showing the following instead:
apparently, leaving 'gracefully' the shell, however leaving the system without ways of interacting with it anymore.
Just reverting 8474757 serves as a workaround, however 4d092c5 probably implies a different bug is occurring.
The text was updated successfully, but these errors were encountered: