A tool for Miniware MDP-P906 Power Supply - Page 1
Forum section: electronics / testgear

author: leommxj
author_rank: Newbie
timestamp: November 22, 2023, 06:11:11 pm
content: Hi, all.I bought one MDP-P906 about one year ago, it works well and really portable.But there seems no official way to control it through software/script on computer, only the M01 display module or hardcoded in txt file (which is quite useless to me). So, I did some reverse engineering and coding work for themThe protocol is trivial. Now I can control it through PC and a nrf24 adapter.If anyone interesting, go seehttps://github.com/leommxj/mdp_commander

author: Crazypaqer
author_rank: Newbie
timestamp: December 29, 2023, 01:46:20 pm
content: Hello, can you by any chance download full firmware from unit through swd over prog connector? I have same unit with fried cpu, so i replaced cpu, but official firmware does not contain bootloader, and all my miniware products have different versions and not compatible.

author: leommxj
author_rank: Newbie
timestamp: January 03, 2024, 03:28:45 pm
content: Quote from: Crazypaqer on December 29, 2023, 01:46:20 pmHi Crazypaqer, is there any way i can attach this unit without disassembly? I have read about TS100 have SWDIO/SWCLK on the usb port, tried with p906, didn't get lucky.

author: Crazypaqer
author_rank: Newbie
timestamp: January 03, 2024, 06:44:03 pm
content: Hello,Yes you can access swd through prog connector. But you need a cable which comes with MDP-M01 screen and make a custom cabe from mini usb to swd connector of your debugger / programmer.

author: Crazypaqer
author_rank: Newbie
timestamp: January 03, 2024, 06:54:30 pm
content: My cable setup is in attachment. Target MCU is GD32F303VCT6.

author: leommxj
author_rank: Newbie
timestamp: January 04, 2024, 05:20:57 am
content: I think I'm doing the same thing with a usb to pin adapter and connect D+/D- to SWDIO/SWDCLK to my h7tool which work as a debugger.the type-c port and 2.5mm D+/D- are shorted so it should work on both ports.Maybe something went wrong when I was doing it. I'll try again when I have time.

author: Crazypaqer
author_rank: Newbie
timestamp: January 04, 2024, 04:40:26 pm
content: It may require to go in dfu mode first, try plugging cable with button pressed.

author: leommxj
author_rank: Newbie
timestamp: January 04, 2024, 05:35:09 pm
content: Quote from: Crazypaqer on December 29, 2023, 01:46:20 pmAfter some trying, I manage to attach the unit with 3.3v supply directly to the 2.5mm port, in "USB MODE". Anyway, here is the flash dump from 0x08000000 to 0x08040000, i believe the bootloader you want are before 0x08008000, good luck.20240105_010828_read_0x08000000_256kB.7z(74.98 kB - downloaded 69 times.)

author: Crazypaqer
author_rank: Newbie
timestamp: January 04, 2024, 06:14:16 pm
content: Thanks a lot!!!

author: Crazypaqer
author_rank: Newbie
timestamp: January 24, 2024, 10:05:55 am
content: It seems that miniware changed firmware protection for this unit. Can you also provide device id from your unit, it should be at address 0x1FFFF7E8 , 0x1FFFF7EC, 0x1FFFF7F0 as 3 32bit registers. They somehow correlate to data recorded just before end of bootloader .

author: leommxj
author_rank: Newbie
timestamp: February 23, 2024, 03:44:16 pm
content: Code:pyocd> read32 0x1FFFF7E81ffff7e8: 05d0ff30 |...0|pyocd> read32 0x1FFFF7EC1ffff7ec: 35374742 |57GB|pyocd> read32 0x1FFFF7F01ffff7f0: 57218610 |W!..|