Nice! Well I wouldn't call jumpy +-3°C! Most stations just filter it and ignore small changes, so they will always show 360 as long the real temp is, for example, in a 15°C margin from the nominal temp.
I prefer to see the real temp!
The new mosfets arrived yesterday. Yay! I can play again!
My T245 shows amazing stability with 3mS delay. Below that it gets random +20ºC jumps.
I repeat again: Some tip profiles are waaay wrong.
Specially the DFLT. 3Kp 25Ki 0Kd! That makes the tip go crazy. When I set 45/5/20 the story changes a lot.(Edit: Much better with 35/10/15)
I'm currently redoing the method for targeting different boards.
Also merging I2C support.
I think is way easier now. Will update soon!
Edit:
This is the simplest approach I foun
We can't just use defines for everything, as the non-code related stuff can't be changed easily. And I hate when I see a new project and have to mess with the code to make it work!
It's not nice that you have to spend an hour to build something! So I decided to make it the simplest possible way. Copy,paste, few clicks and make.
The project config files are diferent for each MCU, otherwise you will have to mess with all the include paths, linker script and preprocessor defines.
As those files aren't code related, they will rarely need to be updated, so no worries about the manteinance.
In short, these are the files that each hardware template needs:
- CubeMX .ioc file: Hardware initialization. For configuring peripherals, GPIO, etc.
- .cproject, .project: Project configuration files.
- board.h: Specific board hardware configuration (this is the important file).
- stm32fxxx_it.c. IRQ interrupts routines, this file is generic, but is different for each family, and can't be mixed without causing errors. So we have 2 versions of the file, for F0(stm32f0xx_it.c) and F1(stm32f1xx_it.c) families.
- startup_stm32xxxxxxx.s. This is the startup file very specific for each MCU. Automatically generated when creating the project but won't be regenerated if deleted. So we must save it. Can't be mixed with others.
So, for same MCU and different board, only CubeMX (.ioc) and board.h files need to be changed.
And for new, different MCU, a new empty project has to be done setting the mcu parameters.
Then, copy the startup file, .cproject and .project files. And the board profile would be pertty much done.
So, now it's the time to try these KSGERS! We have a pretty stable fw with most issues solved! Any volunteers?
-