Skip to content
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

XK3011PT A32AA019 is this familiar or similar? #62

Open
saikumaru opened this issue Feb 16, 2024 · 97 comments
Open

XK3011PT A32AA019 is this familiar or similar? #62

saikumaru opened this issue Feb 16, 2024 · 97 comments

Comments

@saikumaru
Copy link

Hello!

I would like to use this board through serial control. But haven't been able to identify the IC to start experimenting.

This is what the big chip name reads
XT3011PT
A32AA019

Would appreciate any direction. Thank you!!

Pictures of the board attached
IMG_20240216_102145~2
IMG_20240216_102116
IMG_20240216_101134

@AILIFE4798
Copy link

before posting an issue you should remove all the connectors and rf module blocking the pcb
and use the master board not the slave
but no there seems to be no information about this chip
it could been rebranded chip but the pin number is also wrong
they have really cutten corners on this board theres not much on it
if you are desprate ypu can try to read the chip id anyways with swd programmer and search for that if its an rebranded chip you will be able to find it
if it do not have a programming headder its an asic and not reprogramable
now the mm32spin05 board is supported you should just buy one of those

@saikumaru
Copy link
Author

saikumaru commented Feb 16, 2024

Sorry here is a cleaner picture.
IMG_20240216_140542

Am assuming it's the master board because it has a RF receiver on it? Or else the other board too has the same IC on it

now the mm32spin05 board is supported you should just buy one of those

Are you suggesting to buy one of the hoverboard that's built using this IC? Unfortunately I can't look at what IC it is before purchasing, and am unable to return this back.

I got mine on www.hoverpro.in

you are desprate ypu can try to read the chip id anyways with swd programmer and search for that if its an rebranded chip you will be able to find it if it do not have a programming headder

Does the bottom right corner of the image I posted look like the SWD programming header?

The RF receiver board
IMG_20240216_142247

@RoboDurden
Copy link
Owner

RoboDurden commented Feb 16, 2024

I am also highly pesimistic about this mcu.
Could you please link the exact module you purchased so we have photos from the outside look/housing and other people will not buy this hoverboard.

The 2.2 layout has a 32 pin version of the gd32f130. If you are extremely lucky, your mcu is pin compatible:
grafik
PA14 is SWD CLK and PA13 is SWD_IO. You could test with the multimeter in beeping diode-tester mode to see if these two pins go the the 4 pin female dupont header.

P.S. i would not buy a MM32 motherboard but try to get a good old GD32F130 with 64kB and two dual-opamp 8-sot chips on board.

P.P.S. as this 4 pin header is for rf module, it will rather connect to a serial uart and not the SWD header.
Maybe @AILIFE4798 could see a chance with serial flashing, but i have never looked into that way.

@saikumaru
Copy link
Author

Thank you so much for your reply guys!

This is the exact piece I purchased.
https://hoverpro.in/product/h6-eco-military-blue-hoverboard-with-bluetooth-and-remote/

If there's a way I can identify hoverboard with GD32F130 on this website it would be great. Or if there are links to the products on Amazon, somewhere on the repo/wiki please direct me there.

@AILIFE4798
Copy link

the empity 4 pin connector may be swd but i cannot tell without enough information
the master board have a power button and 15v regulator, the rf module is on slave to spread the pins to use cheaper micro controllers
a mm32 board is $2 for a set or gd32c8 board is $1 for one piece
i developed the mm32 firmware and robo developed the gd32 firmware so you can decide which one you want
i will admit the gd 32 board have 2 opamp and may support foc in the future while your current board do not even have comparator in the chip

@saikumaru
Copy link
Author

P.P.S. as this 4 pin header is for rf module, it will rather connect to a serial uart and not the SWD header.

No. I meant there's a seperate unused 4pin header(green circled), nothing soldered. And one black with female headers soldered(red circled) which has the RF for serial.

@AILIFE4798
Copy link

need back of pcb picture to trace

@RoboDurden
Copy link
Owner

I have added a "BEWARE of these hoverboards" folder :

https://github.com/RoboDurden/Hoverboard-Firmware-Hack-Gen2.x/tree/main/BEWARE%20of%20these%20hoverboards

As we have autodetect at least for gd32 by now, it might be worth some further investigation on how to flash these custom mcu - if possible at all.

But i for sure will have not time for that.

@AILIFE4798 please post the $1 / $2 links again. But i thought the gd32 board was only the slave board ?

@RoboDurden
Copy link
Owner

@saikumaru does your hoverboard have plastic wheels or good old aluminium rims ?

Today i fear you can only get complete hoverboards with old gd32f130 as used and no longer brand new :-/

@AILIFE4798
Copy link

yeah gd32 is only slave and i have not able to get it working yet and i cannot debug gd32f130 for some reason to find whats wrong
i will post link later if it still exist

@AILIFE4798
Copy link

MM32 aliexpress: de,aliexpress,com/item/1005005959910034.html
MM32 taobao: item,taobao,com/item.htm?id=743458922569
GD32 taobao: item,taobao,com/item.htm?id=722577319258

@RoboDurden
Copy link
Owner

@saikumaru
Copy link
Author

Ok here is the other board. This has the power switch and also a Bluetooth device powered through it.
So this must be the master board? I hope it gives a better idea now

IMG_20240216_150928

@saikumaru
Copy link
Author

@saikumaru does your hoverboard have plastic wheels or good old aluminium rims ?

Today i fear you can only get complete hoverboards with old gd32f130 as used and no longer brand new :-/

Mine is plastic wheel with rubber tyres. Like the QC sticker says, this one was manufactured in November '23. So definitely new :( but new IC as well

@AILIFE4798
Copy link

yes this is the master but theres also not a whole lot on it
didnt even see self hold circuitry
i think its using asic unfortunately
not available on chinese website even
or just rebranded chip

the layout2.21 mm32 board have manufacture date of 20240113

@AILIFE4798
Copy link

to try prevent people like us flashing it the manufacture will laser off the original marking and write new one
but if the empty header is swd you can try to read the chip ID to find

@saikumaru
Copy link
Author

The 2.2 layout has a 32 pin version of the gd32f130. If you are extremely lucky, your mcu is pin compatible: grafik PA14 is SWD CLK and PA13 is SWD_IO. You could test with the multimeter in beeping diode-tester mode to see if these two pins go the the 4 pin female dupont header.

This does match! I am able to beep the pins 23, 24 as you pointed out to the two pins of the 4pin dupont header. Should I just got ahead and solder a SWD connector and follow some suggested steps?

@AILIFE4798
Copy link

you should read chip ID with pyocd
and the board is 5v so be careful

@saikumaru
Copy link
Author

you should read chip ID with pyocd and the board is 5v so be careful

Are these steps documented anywhere please, especially the 5V care? I had played with ESP32/82666/Atmegas in the past, but not something that has an SWD

@AILIFE4798
Copy link

please read wiki...

@RoboDurden
Copy link
Owner

I think the "Flash via PYocd" wiki page is still missing.

@AILIFE4798
Copy link

stlink v2 clone can all handle 5v
if you want to use esp32 you need a series resistor
150R should be enough as the current does not exeed the 20ma rated for protection diode

@saikumaru
Copy link
Author

I think the "Flash via PYocd" wiki page is still missing.

Yes, I see the link doesn't exist on wiki. Would you suggest something else please? "Flash via Keil"?

@AILIFE4798
Copy link

on my stlink it cannot detect target so i assume it wont work

your board actually is like the mm32 board using chip internal comparator for phase current i can see the circuit in your better picture
maybe you can replace it with a mm32 because mm32spin06 is abailable in 32pin
image
unfortunately they not only erased the number, but also the dimple in the chip so i cannot tell which way is up and if the pinout is correct

@AILIFE4798
Copy link

check the ground and VDD connection, the gd32f130 32pin do not have ground???

@RoboDurden
Copy link
Owner

I think the 32 pin MCU does not have the 32 pins to the side but underneath. Gnd are 9 pads underneath in the middle of the backside.

@AILIFE4798
Copy link

it is going to be very hard to solder if its the case

@RoboDurden
Copy link
Owner

I think replacing the MCU is not worth the trouble anyway. But if doing it the a little heat gun from the backside is the easiest way anyway I guess. So it does not really makes.a difference if the pins are underneath.

But here the pins are sideways, so maybe your Mm32 32 pin version fits.

Or maybe India has stepped up and can now also produce such simple MCU :-)

@AILIFE4798
Copy link

yes true the mcu cost more then $1 probably so just get a new board to replace

@saikumaru
Copy link
Author

I see the pin 32 is connected to ground of 78L05, and also is one of the pins of dupont header. But what should the 4th pin be please?

I see the 4th pin on header is connected to a sensor on the back, after a resistor. But can't trace it back to MCU anywhere. Should this be a 5V connection?

17080836273541908631215375418939

@AILIFE4798
Copy link

image
this is nrst on mm32

@RoboDurden
Copy link
Owner

yes,but your code still run and disable it imidiately if you did not put delay trust me i tried when i bricked my layout2.21

NRST will prevent the code from starting so swd does not get disabled by user init code.

@AILIFE4798
Copy link

when nrst is low swd also cannot connect
when it is high the code start running

the way to solve it is using serial method, but not use serial insted still use swd, when in bootloader the swd is always enabled, but we do not know if the mystery chip have a boot0 pin
im pretty sure every micro controller have nrst and is in same plece so it is always worth a try

@AILIFE4798
Copy link

but when swd header does not include nrst most of the time mean its not needed
if they wrote code that disable swd and reactivate after reset like the layout2.8/2.8.1 they include that pin

@RoboDurden
Copy link
Owner

RoboDurden commented Feb 17, 2024

Maybe the esp32 as flash device is the the best way to ensure NRST functionality ?

And then I would try all possible softwares to connect/flash

@saikumaru , Did you test the autoflash.bat in the readytoflash/ folder ?
Simply try to upload some binary ..

@AILIFE4798
Copy link

idk i short the nrst manually and use stlink v2

@AILIFE4798
Copy link

stlink utilities hate non st or st clone so do not use it
get idcode error mean the wire connected correctly but swd disabled by code
if you use keil it will say internal command error

@RoboDurden
Copy link
Owner

Is there a terminal software that can talk with the swd protocol ?
So that we first see that the MCU is answering at all.
All these flash utilities do a lot in one step and then simply stop with some meaningless error.
Is the swdclk generated by the stlink dongle or the MCU ?

@AILIFE4798
Copy link

pyocd is that terminal
the gdb server is exactly what you want

@AILIFE4798
Copy link

swclk is generated by swd probe

@RoboDurden
Copy link
Owner

Well then @saikumaru should test step by step if the MCU is responding at all. Including playing with the NRST pin. And testing every possible pin?

@AILIFE4798
Copy link

better use oscilscope but half duplex communication always hard to check

@AILIFE4798
Copy link

you never know who sent it

@saikumaru
Copy link
Author

Did you test the autoflash.bat in the readytoflash/ folder ? Simply try to upload some binary ..

No I haven't tested this yet because I couldn't even detect the target chip.

Should I now try ESP as a programmer please, feel free to suggest me next steps

@AILIFE4798
Copy link

i think you should try to use nrst
either manually with stlink or esp or modify stlink

@saikumaru
Copy link
Author

I think modifying STlink is better for me. Would you like to suggest me any doc/article for me please ? I googled but dont seem to get if it's just a mid to STlink v2 programmer or any more wiring on board

@AILIFE4798
Copy link

in bottom of readme

@AILIFE4798
Copy link

i will copy to wiki some day

@RoboDurden
Copy link
Owner

But @saikumaru has a different stm MCU on his stlink clone.
With an oscilloscope he might be able to detect the pin of the MCU that changes it's state when trying to flash with swd protocol. Then this pin would be needed to connect to the output header of the st link dongle.

@AILIFE4798
Copy link

first time seeing stm32f101
the genuine ones have stm32f103 but its very hard to get those
the cheapest ones have apm32f103 which is 1:1 clone so pinout is same

@AILIFE4798
Copy link

your board is manufactured by this company
www.jsxiechang.com/js.html
and yes they laserd off the original marking and printed new one
so not helpful unfortunately

@AILIFE4798
Copy link

I know the model number of the mcu now I think
I'll tell you tomorrow
It's even more obserd then lks32 so I don't you can get it to work

@saikumaru
Copy link
Author

I know the model number of the mcu now I think I'll tell you tomorrow It's even more obserd then lks32 so I don't you can get it to work

Wonderful, that will be very helpful to make decision.

@saikumaru
Copy link
Author

first time seeing stm32f101 the genuine ones have stm32f103 but its very hard to get those the cheapest ones have apm32f103 which is 1:1 clone so pinout is same

This one is at least 6-7yrs old, must have been a genuine purchase. Unfortunately I never had chance to play with STM stuff

@AILIFE4798
Copy link

it may be STC32f12k54

@AILIFE4798
Copy link

but pinout wise mm32 is closer

@reed-dan
Copy link

it may be STC32f12k54

@AILIFE4798 Stc32f12k54 is lqfp48 but this chip is lqfp32

@AILIFE4798
Copy link

there is lqfp32 version, but pinout not mstch

@RoboDurden RoboDurden changed the title A32AA019 is this familiar or similar? XK3011PT A32AA019 is this familiar or similar? Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants