-
Notifications
You must be signed in to change notification settings - Fork 64
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
Test with GD32F405RTG6 and DFU mode #125
Comments
I have tried with two of them, they programmed well (I did it with the stlink v2) even the led blinked but in the C64 always black screen, I don't know if they are the two of mine that are false or that they are not totally compatible. |
I tried with DFU also but the drivers issue is different, you have to install the GD32 DFU drivers, the STM32 ones are not valid. |
Hi jgilcas
That’s s bad news indeed 😞. I heard that this GD32 does not seem to be a valid replacement for the STM32 equivalent.
That’s bad as I do not really know when this chip will be available again.
I can try my luck with the STlink V2 programmer but I think it will end with a non working KFF also for me.
Thanks for your feedback !
Rick
… On 3 May 2022, at 09:37, jgilcas ***@***.***> wrote:
I have tried with two of them, they programmed well (I did it with the stlink v2) even the led blinked but in the C64 always black screen, I don't know if they are the two of mine that are false or that they are not totally compatible.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Hi jgilcas
Thanks I will update drivers with those suitable for the GD32 and give it a try.
I will report if I can successfully program it and test.
Thanks.
Rick
… On 3 May 2022, at 09:38, jgilcas ***@***.***> wrote:
I tried with DFU also but the drivers issue is different, you have to install the GD32 DFU drivers, the STM32 ones are not valid.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
Hi jgilcas, |
Using same board i replaced GD32 with a STM32, reprogramed with stlinkv2 and are working like a charm. Unfortunately i think is not a good replacement :( |
Yes, I think that's a fact :-(. I have ordered an STM32 also and hope to
resolve it then ;-). Maybe this is just a matter of modifying the firmware and adapt it to the GD32 specs?
Could be nice to have an alternate KFF PCB / Firmware to use also the GD32 which is still available at a decent price.
…On Fri, May 6, 2022 at 12:50 PM jgilcas ***@***.***> wrote:
Using same board i replaced GD32 with a STM32, reprogramed with stlinkv2
and are working like a charm. Unfortunately i think is not a good
replacement :(
—
Reply to this email directly, view it on GitHub
<#125 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQTKN36CEECJN3W32U32UX3VIT2QTANCNFSM5UYV7LCQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Riccardo Repetto
@ AppleWorld...
|
I to have tried the GD32 and all i got also was a blank screen and a blinking led. Programmed ok on the STlink. |
Hi chuckcaley, |
Thank you for testing this. |
Any chance GD32 version will exist? |
Just to confirm the incompatibility again. I have replaced the GD32 with the STM32 and now the KFF will just work flawlessly on first boot :-) |
Yes, but STM32 chips are now expensive and hard to find. |
I sourced it from Aliexpress for 12 euro which is still acceptable if you are not producing large quantities. |
It's good, but often they supply defective parts along with working - and that's what I really beware. Especially AVR series, but STM32 too. Anyway LCSC is still better but more expensive. |
Here is the Aliexpress shop where I sourced the STM32. |
Thanks! if (!(TIM1->SR & TIM_SR_CC1IF) || TIM1->CCR1 < 160 || TIM1->CCR1 > 170) CCR1 is 0 on GD32, TIM1 SR has bit CC1IF reset and that's why it does not work. GD32 has TIM0 instead of TIM1, however real addresses in hardware are the same, same for registers. |
@Sgw32 No, I have never tried to use a GD32 and it is not really something that has my interest. However, if somebody manages to get it working I'll be happy to add a link to their port. |
After some work my colleague has found that ARR register is not set for GD32 and that's why it does not count 1 MHz clock. That was the first issue it just blinks. Now it looks like it boots and even reset is not zero, but there is still a black screen and GAME=0, EXROM=1. I hope we'll make a fix for GD32 soon, after that I'll publish PR. |
GD32 version is almost ready. Working +- correctly on C64(not C64C, there are some troubles on its motherboard). I'll make pull request within a week. |
That’s a wonderfull news!! 😜. Il have a GD32 sitting there and ready to be mounted on another KFF. |
@Sgw32 Just to avoid misunderstandings; I'm not interested in maintaining new variants of the Kung Fu Flash hardware and therefore will not accept such a pull request. |
@KimJorgensen @repetto74 here is GD32 version with a release file: You can mention it on a page if needed. Hardware is the same. |
Hi Sgw32 :-) That awesome!! :-D. I will mount another KFF with the GD32 I have in stock and give it a try. I can be the Beta tester and report how it works. |
Is there already a patched firmware available or do we need to compile it? |
Check releases |
@Sgw32 Great. I have added a link to your fork here https://github.com/KimJorgensen/KungFuFlash/releases/tag/rev.2 |
Got it! Thanks Sgw32 :-D! |
I have mounted a GD32F405RTG6 on the Kung Fu Flash PCB.
I would like to program it via USB but despite having shorted J1 and B0 / +3.3v of J4 I cannot get in DFU mode with the Dfuse software.
Is there any way to force DFU mode or is GD32 clone not compatible with DFU mode?
I would like to explore all possibilities and trials before buying an ST link V2 programmer.
Thanks
Rick
The text was updated successfully, but these errors were encountered: