-
Notifications
You must be signed in to change notification settings - Fork 5
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
Hangs on first calibration screen --processing-- #4
Comments
Hi |
Hello... first of all, thank you for the work you are doing and for taking the trouble to help us...
|
1- Ok, assuming it's a guenuine STMF103CxT6 it should have 128 kB (but claiming it has only 64 kB) 2- Ok that behaviour shows it is not a CH32 style motherboard If you can, try flashing the code using a stlinkv2 + openOCD or something similar, it should work |
I am using UART, I don't have SWD programmer. I have tried programming several times and there is no difference. I've also tried disabling WatchDog (WDG_SW) with the "Flash Loader Demonstrator", but doing so only gives me a blank screen at boot. It's weird... I can get into DFU, and everything seems ok until it gets to calibration... then it hangs with the message "-processing-" |
Could you try the attached binary ? |
If it fails at the first calibration step (i.e. AC or DC) and not a the end, it's not the flash |
Ok so in "normal" mode the ADC is working |
Ok... The only read i get is: And then it hangs immediately |
If you are willing to help me, i can try to find out what's going wrong by providing test firmwares, will probably take a few steps |
No problem. For sure i will help you... in the real you are helping me :D |
Does this work ?, it will go to calibration at start |
Now as you say goes to calibration at start, but hangs at "-processing-" again. Terminal output is similar: |
Next : This is the expected output My guess is you will only have Starting ADC... |
New output: keeps hanging on -processing- |
Another one to test, i'm not expecting it to work but i fixed a bug, mayb.... A couple of questions :
|
Ok...sorry for the late response...I was out all day...
Hope this can help you Setuping up DSO... |
That one may work |
I think we've taken a step backwards... Setuping up DSO... With the previous firmware we got to GainRange=1... but with this one we are again stuck at GainRange=0 I programmed it several times, even doing a full wipe and reinstalling the bootloader just in case... but there were no differences... except for the "sanity check" part. On the first boot after full wipe, in that "section" the message is different |
Would it be possible for you to get a st linkv 2 clone and upload that way ? ( a clone is ~ 2$ or so) I tried with DSO based on CH32/STM32/GD32 with all the versions i provided, they all work fine. If you happen to have a bluepill board, you can put the blackmagic software on it temporarily to flash the DSO |
Hi, Hanging at DC Calibration Flashed with:
|
@mean00 Can you upload the elf of this, so I can test it. |
Please find cal6 attached, should be similar to cal5 |
|
The main diff between FNIRSI and non FNIRSI :
So if the fw can detect the AC/DC/GND switch position, you have the correct fw for that board |
Serial logs:
gdb :
I'm no familiar with gdb, so if I have done anything in the wrong way, please tell me |
No, it's good :) If you are ok with it, I'll create a few test programs to narrow down why the ADC is not working as expected |
Could you try running the code i.e. it should reset then start |
It look like there is no crash, the program just start and hang:
But, i think the is more logs ?
Hanging at GainRange=2 but before was GainRange=0 |
This one tries to reset the ADC more in depth |
Still nothing:
PS: I see that you are french, if you want we can have a visio call to make more advanced debugging |
I'm building a new version that uses a different calibration method. Ready in ~ 15mn |
Ok interesting, I have made some debugging:
The last reponsive line seams to be 249 in dso_calibrate.cpp |
That one is not using DMA to calibrate |
Ahhh, we are going forward:
|
ok, that's normal |
is it stuck in |
Nop, but not far:
|
ok, it is stuck writing in the flash, smells of stack smashing Thanks! |
Trying to reformat the flash before writing, it may help |
and if you connect the probe to the signal generator you see squares ? |
Nope, still nothing |
Try long press on V/DIV |
Hanging like for calibration:
|
interesting
There was issues like that with the GD32. They were bugs that didnt cause problem on the STM32 but didnt work with the GD32. |
The MCU is a STM32F103C8T6, and after looking for the documentation, it look like i have only 64k of flash, can this be related ? |
Normally they have all 128 kB, even if "officially" some have 64 kB |
And please check the quartz is a 8Mhz one, that 's probably the case |
My imitation dso150 stays at setting input to DC, no button responds; |
If the buttons are not working it is a hint you may have the wrong FW |
Same for AC/DC selection |
Use ST-LINK Utility to re-download bootloader_2.2.bin and lnDSO_JYETECH_2.2.bin, same as yesterday, get some serial port output: Does not respond to any keystrokes after that |
Has there been any progress on this? I'm having the same issues :( |
What DSO are you using ? |
It's the STM32F103 (STM32F103CBT6). I managed to get it working again on the Jyetech 113-15001-120 firmware with the patch and activation code and all previous versions after posting here but lnDSO150 still looks appealing 😄 Fair assumption. If there's anything I can share to help, let me know. |
The whole procedure has apparently gone well, but when I start the device for the first time, it asks me to place the probe to ground, then to put it in DC mode and when I click ok it indicates --processing-- and it hangs... Any suggestion?
The text was updated successfully, but these errors were encountered: