-
Notifications
You must be signed in to change notification settings - Fork 973
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
New version 1.8.0 and Hardware Timer on MK4duo FW printer 3D #841
Comments
Hi @MagoKimbra |
so is 1.8 officially out? :) Nice. |
…eded Simplify usage timebase interrupt usage: see stm32duino#841
…eded Simplify timebase interrupt usage: see stm32duino#841
no more need to use setMode() when only update interrupt required. Simplify timebase interrupt usage: see stm32duino#841
Happy New year to all. Nevertheless, thanks to the new implementation of HardwareTimer #806 |
no more need to use setMode() when only update interrupt required. Simplify timebase interrupt usage: see #841
@MagoKimbra |
Sorry, but I've been out ... Thanks so much for the answers. The problem is not the solution that is always found, only that by releasing a firmware that relies on arduino IDE and the library, if the library changes something that normally was another thing by default, users who compile find that it does not work nothing, and it is difficult to understand why. |
@MagoKimbra |
Are you sure its fixed? Just compiled some code on the 1.8.0 downloaded an hour ago using Arduino 1.8.10, target = STM32-NUCLEOF429ZI...and NOTHING works, Serial hangs up, no values on GPIO pins...its unusable. Even the example blinky won't run. Reverted the untouched code to 1.7.0 and it runs exactly as expected and always has done. There is a serious problem in 1.8.0 |
@philbowles
Well, before telling this, ask you if your config is correct. You can open a topic on the forum then we can discuss about this. |
"Do you really think the 1.8.0 core released since 2 month is unusable ?" Obviously "Yes", or I wouldn't have made the post. Maybe no-one has used it with a 429ZI? Just because it works on other boards, assuming it works for everything is not a good place to start from when I have cited a serious problem. I'm not doing this for fun, or imagining it, I'm doing it because my 429ZI is unusable with 1.8.0. and I'd appreciate it if you would take the matter seriously as I have been programming for 45 years and have a reputation for usually knowing what I'm talking about... I will try to be more precise. I'm using ArduinoIDE 1.8.10 - I select Nucleo-144 then F429ZI and leave all the settings as default. I'm running on Windows 10. I can't think of any information that could help. What other "config" do you need? I then take code that has been running fine on 1.7.0. for a long time. Serial.print hangs. I remove all serial prints and run the code again. It fails to recognise any GPIO pin change. I wire the pin to 5V, digitalRead returns zero. I GND the pin, it reads zero. I wiggle the wire. I use a new wire. I wet my finger and hold the end of the wire: No signal is received from the pin, period. I revert the untouched code to 1.7.0 - it works perfectly, as it always has done. I then re-up to 1.8.0 to provide a sample sketch for an issue report. I select the blinky. It hangs. LED goes on, then nothing. I add a Serial.begin(115200) and a serial.print in the loop just to see if it really is hanging. The serial monitor (set at 115200) prints a single garbage character then hangs. This is pretty much my definition of "unsuable". I revert again to 1.7.0, everything works perfectly again. So in answer again to your question "Do you think 1.8.0 ...is unusable...." then true answer is, "No, I KNOW it is on my 429ZI" I would be grateful for any further suggestions, till then I will stick with 1.7.0, which works. |
"Note that we do not support PIO environnement only in Arduino IDE env." Note that I told you the first time I was using ArduinoIDE 1.8.10. |
You really think it is only an "assuming" ? Nucleo F429ZI works fine, blink, Ethernet, Serial, RTC,....
Don't know nor can't guess why your one does not work. Did you test with an other board? |
@philbowles |
Hi, sorry for my bad english.
I need your help.
I am the programmer of MK4duo firmware for 3D printers.
I am using a Rumba32 with STM32F4.
Using version 1.7.0 of STM32core.
I use the TIM2 timer for the movement of the motors.
I use Hardware timer and everything works perfectly.
Yesterday I updated to version 1.8.0 and now when I try to move the motors everything freezes, the card freezes and no longer responds, it must be turned off and on again.
This is the routine I use to initialize the timer, and the routines for reading the count and write the new count:
I'm trying in every way to understand where the problem may be, but I really don't understand it.
I kindly ask you to give me a hand, even just to make me understand where the differences are between 1.7.0 and 1.8.0.
The rest works everything, analog reading, pwm pin.
Use Hardware Timer only for Motors.
Thank's.
EDIT: Ok I understand where the problem is.
By default the timer is in TIMER_DISABLED, so it does not perform the callback.
You have to set the mode with setMode in TIMER_OUTPUT_COMPARE, but there is no command to set the entire timer only the channel.
I solved it by putting setMode (1, TIMER_OUTPUT_COMPARE), but wouldn't it be more logical to create a command for the whole timer if you don't use the channels?
The text was updated successfully, but these errors were encountered: