Author Topic: CFW for KSGER/Quicko STM32 Soldering Stations  (Read 901669 times)

0 Members and 12 Guests are viewing this topic.

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3075 on: July 09, 2022, 08:04:36 pm »
Does this one have the same issue as well? Can't test the F072 anymore.
« Last Edit: July 12, 2022, 05:55:19 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: TheInvisible

Offline ricktendoTopic starter

  • Regular Contributor
  • *
  • Posts: 115
  • Country: hn
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3076 on: July 10, 2022, 04:08:36 am »
Btw, because you have a battery installed you can enable the "HAS_BATTERY" option in the config.h to have the option to remember the last used tip temperature.
What are the chances of adding HAS_BATTERY toggle in Iron settings?
 

Offline TheInvisible

  • Newbie
  • Posts: 8
  • Country: de
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3077 on: July 10, 2022, 06:38:32 am »
Does this one have the same issue as well?

Well, not the same... but a blank screen and no visible function.
 

Offline TheInvisible

  • Newbie
  • Posts: 8
  • Country: de
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3078 on: July 10, 2022, 08:58:20 am »
I've tested some older builds. The latest .bin which works on my Quicko STM32F072 ist the one from Jun 2 2022.
 

Offline M-Reimer

  • Contributor
  • Posts: 25
  • Country: de
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3079 on: July 10, 2022, 11:35:19 am »
I've received my station some days ago and to my surprise it has a STM32 inside.

There is no guarantee, but I've ordered this one: https://de.aliexpress.com/item/4000055007842.html in the variant without any handle (I don't like that "screw on" handle and ordered another handle separately). Mine came with a "real" STM32 MCU.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3080 on: July 10, 2022, 12:23:35 pm »
Is it working for everyone with F103 mcus? Ksger, Quicko, etc?

Edit: Mein bad! It seems I miss clicked the wrong folder und uploaded den Quicko F103 build.
Please re-download the zip file and try again!
« Last Edit: July 10, 2022, 12:39:24 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline bozo

  • Contributor
  • Posts: 32
  • Country: hr
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3081 on: July 10, 2022, 12:37:06 pm »
It works ok.
 

Offline ygi

  • Regular Contributor
  • *
  • Posts: 202
  • Country: be
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3082 on: July 10, 2022, 12:55:43 pm »
Works great for my Ksger 1.5 with F103.

BTW, assuming HAS_BATTERY is set, is the selected tip also saved in backup registers or still written in flash? I remember KocsisV mentioning he could do that when you were discussing flash wear and now I'm wondering if the idea's been scrapped or implemented (or just on the todo list).
 

Offline KocsisV

  • Contributor
  • Posts: 31
  • Country: hu
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3083 on: July 10, 2022, 01:00:24 pm »
is the selected tip also saved in backup registers

Yes, the selected tip, last temperature and profile is saved to the backup registers. You have to enable the "remember x" options in the System settings (by default its disabled): https://github.com/KocsisV/stm32_soldering_iron_controller/blob/updateProjectStructure/Readme_files/Operation.md#system, scroll down to the "Remember last profile/tip/temp" description.
 
The following users thanked this post: ygi

Offline ygi

  • Regular Contributor
  • *
  • Posts: 202
  • Country: be
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3084 on: July 10, 2022, 01:20:32 pm »
Nice, thanks :-+
 

Offline TheInvisible

  • Newbie
  • Posts: 8
  • Country: de
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3085 on: July 10, 2022, 01:38:56 pm »
Edit: Mein bad! It seems I miss clicked the wrong folder und uploaded den Quicko F103 build.
Please re-download the zip file and try again!

Ok, now there's the "HARD FAULT SYSTEM HALTET..." message again.
 

Offline KocsisV

  • Contributor
  • Posts: 31
  • Country: hu
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3086 on: July 10, 2022, 05:13:49 pm »
Can you set up the development environment and debug the code by placing a breakpoint to the fault handler and providing a stack trace?
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3087 on: July 10, 2022, 06:59:18 pm »
Pretty sure it's related to the tip number and settings partition increase, will make some tests later...

Edit: Try this
« Last Edit: July 10, 2022, 08:04:45 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline TheInvisible

  • Newbie
  • Posts: 8
  • Country: de
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3088 on: July 10, 2022, 09:51:42 pm »
Sorry, but i get the error message again.
« Last Edit: July 10, 2022, 10:28:17 pm by TheInvisible »
 

Offline TheInvisible

  • Newbie
  • Posts: 8
  • Country: de
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3089 on: July 10, 2022, 10:27:52 pm »
Can you set up the development environment and debug the code by placing a breakpoint to the fault handler and providing a stack trace?

Ok, i've setup the build environment and i'm be able to compile the code without errors[1]. For debuging, compiler optimization needs be turned on, but ist too late now... I'll take a look at it tomorrow.

[1] in "addon_switch_off_reminder_settings_screen.c" "#include "addon_SWITCH_OFF_REMINDER_settings_screen.h"" should be "#include "addon_switch_off_reminder_settings_screen.h"" otherwise the compiler didn't find that header file on my linux machine...
 

Offline vqtrong

  • Contributor
  • Posts: 11
  • Country: vn
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3090 on: July 11, 2022, 07:27:46 am »
I've received my station some days ago and to my surprise it has a STM32 inside.

There is no guarantee, but I've ordered this one: https://de.aliexpress.com/item/4000055007842.html in the variant without any handle (I don't like that "screw on" handle and ordered another handle separately). Mine came with a "real" STM32 MCU.

That's surprising with a "real" STM32 !? a CKS under STM32 label?
 

Offline wickated

  • Frequent Contributor
  • **
  • Posts: 326
  • Country: ru
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3091 on: July 11, 2022, 09:10:03 am »
I've received my station some days ago and to my surprise it has a STM32 inside.

There is no guarantee, but I've ordered this one: https://de.aliexpress.com/item/4000055007842.html in the variant without any handle (I don't like that "screw on" handle and ordered another handle separately). Mine came with a "real" STM32 MCU.

That's surprising with a "real" STM32 !? a CKS under STM32 label?
just a very old batch from dusty warehouse.
 

Offline sevgiduvari_7

  • Contributor
  • Posts: 34
  • Country: tr
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3092 on: July 11, 2022, 09:58:48 am »
deividAlfa Delete old binaries ?
« Last Edit: July 11, 2022, 10:00:54 am by sevgiduvari_7 »
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3093 on: July 11, 2022, 11:17:07 am »
Why do you need them?

You still have the history:

ksger v1.5
ksger v2
ksger v3
quicko f072
quicko f103
« Last Edit: July 11, 2022, 11:20:14 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline KocsisV

  • Contributor
  • Posts: 31
  • Country: hu
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3094 on: July 11, 2022, 05:51:12 pm »
Ups, I missed your post sorry.
Could be done, I added it to the todo list. Its not that "nice" if its an user selectable option during runtime, as it requires hardware initialization plus different behavior during startup. Plus if someone sets it to on but do not have a battery installed it will complain on every startup.
 
The following users thanked this post: ricktendo

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3095 on: July 12, 2022, 05:55:07 am »
Is this F072 build still failing?

Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3096 on: July 17, 2022, 02:23:25 pm »
Well, as nobody is trying, I just added a link to the Jun 02 build, mentioning the issue in the Quicko F072 section of the Readme, use that for now.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: Tugo

Offline AndyC

  • Contributor
  • Posts: 47
  • Country: se
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3097 on: July 27, 2022, 01:36:55 pm »
I had some time to check out some of the newer builds, the "Switch off reminder" was a nice addition.
I updated the Swedish translation and checked so everything looked good on screen.

During this I think I found a bug: under Calibration/Settings, I can't set the Zero if the language is set to Swedish or Russian.
When pressing the button the text just flashes briefly and the "zero" is not measured or updated.
This appear to have changed somewhere between the April 5 and April 30 builds. (April 5 build = OK, April 30 = NOT)
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3098 on: July 27, 2022, 02:45:58 pm »
Thanks for reporting. The projects is almost stalled since I'm getting little to none feedback.
Testing every combination myself would take a lot of time, not realistic...
If anyone with a STM32F072 allows me to remotely debug the code, trying to find the current issue with it, would be nice!

AndyC, not a bug, it's intentional to make these people life's harder, that's my xenophobia kicking in  :D.
Confirmed here, so strange the language affects the program behaviour, shouldn't at all, it's just an array of text strings :wtf:.
Will check it!

Edit:I think I got it. It worked removing optimizations, so it had to be some undefined behavior.
The reserved char array for the zero string was 16 bytes long because I thought is as normal ASCII, forgetting special chars use 2 bytes (unicode/UTF-8), so it was overflowing and writing over other variables.

Edit2: v1.02 Released. Should be working now.
« Last Edit: July 27, 2022, 06:04:34 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: ricktendo

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6279
  • Country: es
Re: CFW for KSGER/Quicko STM32 Soldering Stations
« Reply #3099 on: July 27, 2022, 06:03:53 pm »
Perhabs someone can help here.
I want to debug the stack when a hardfault happens, so I can show the program counter in the display.
That way I could check the map file disassembly and see where it's crashing, greatly easing the debugging process, like currently happenning with Quicko STM32F072.
I can also read SCB->BFAR, thus easily checking if an invalid address was accessed.

This seems interesting:
https://community.st.com/s/question/0D50X0000BxwhEhSQI/my-stm32h743vi-application-runs-to-a-debug-instruction-in-the-startup-code

However the startup file is not happy with PROC and EXPORT lines. Perhabs a Keil-specific syntax?
Code: [Select]
HardFault_Handler\
                PROC
                EXPORT  HardFault_Handler
 
                ; Determine correct stack
 
                TST     lr, #4
                ITE     EQ
                MRSEQ   R0, MSP         ; Read MSP (Main)
                MRSNE   R0, PSP         ; Read PSP (Process)
 
                MOV     R1, R4
                MOV     R2, R5
                MOV     R3, R6
 
                EXTERN  hard_fault_handler_c
                B       hard_fault_handler_c
                ENDP ; sourcer32@gmail.com

The rest is plain easy, the custom HardFault handler is called and then you get the values.
« Last Edit: July 27, 2022, 06:05:54 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf