Kambodia91 / Hoverboard-firmware-hack-FOC-MASTER-SLAVE

GNU General Public License v3.0
15 stars 2 forks source link

Help with processors #3

Closed G4burieru closed 10 months ago

G4burieru commented 11 months ago

Variant

None

Control type

None

Control mode

None

Description

Hello, i'm a complete noob with firmware hack. I bought a motherboard YST-DXT-J20 V5.7, it has a mainboard and 2 side boards (not split boards), but the processor in the mainboard is a MM32, do you know if i can just buy a STM32F103RCT6 processor and switch with the MM32?

Kambodia91 commented 11 months ago

Hello, the STM32 processor that I used in my project has different sizes and different pin connections. First of all, I would check what specific MM32 model is in the board, if I find an STM32 model with the same pin out. I would check which pin is responsible for what, where the input, output and control are, etc. And whether there is a programming connector. As for hacking, it would be a simple matter if there was already an STM32 on the board.

G4burieru commented 11 months ago

Thanks for the response, there is something more that i have to worry when switching processors beside the pinout?

Kambodia91 commented 11 months ago

All that remains is to map the pins on the board to match the outputs in the program, or modify them slightly because from what I noticed there are different connection configurations. What processor is there originally?

G4burieru commented 11 months ago

Originally the processor was a MM32SPIN 0280DSP

Kambodia91 commented 11 months ago

Can you take a photo of what it looks like? if you have one motherboard and two side boards, this MM32 processor should support 2 wheels, and it should be larger than 48pin

G4burieru commented 11 months ago

IMG_20231214_124917.jpg

IMG_20231214_124813.jpg

it looks like this

Kambodia91 commented 11 months ago

Hey! I did some searching on the Internet and found a datasheet of this processor, or rather its family. Now you need to compare the pins with stm32f103rct6 with 64pin MM32: Screenshot_2023-12-14-17-55-09-04_3aea4af51f236e4932235fdada7d1643 STM32: Screenshot_2023-12-14-18-02-18-41_3aea4af51f236e4932235fdada7d1643

They do not look identical, but it may not matter that much because the pins that are different may not be used, now you need to check on the board whether they are used for something.

G4burieru commented 11 months ago

i have looked the datasheets and the only pins that differ are the PD pins, on STM32 they are for Voltage but in the MM32 they are I/O pins, wouldn't that be a problem?

Kambodia91 commented 11 months ago

Personally, I would leave these pins raised and not soldered, I looked into the Eferu software and the PD pins are not involved in the program, so there is a chance that it will work

G4burieru commented 11 months ago

one more question, on your project, the original processor had the PD pins instead the Vss's, Vdd's and Vbat similar to my case?

Kambodia91 commented 11 months ago

Yes. It was the same for me. I soldered them. I checked where the pins go. and lead to the programmer connector. 3.3V and GND

Kambodia91 commented 11 months ago

I found from the datashiet that the PD pins in this place are responsible for UART1 communication in MM32.

G4burieru commented 11 months ago

I didn't understand very well, did you solder the VDD, VSS and VBAT pins where the PD ones were?

Kambodia91 commented 11 months ago

in my project, the output from the original MM32 PD3 and PD2 are connected to the chip programming connector. VBAT is not used.

PD2 and PD3 as VCC, VDD uses STM32 as power supply for programming/debugging

Kambodia91 commented 11 months ago

look what I have PD2 and PD3 connected to: IMG20221201034617

solder the programming connector red - 3.3V yellow - SWDIO yellow - SWCLK black - GND IMG20230102184358

You need to check what these paths are connected to.