Hy-Tiny STM32F103 board ever get discussed here?

Any other STM32 based boards
User avatar
RogerClark
Posts: 6890
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by RogerClark » Fri Jun 24, 2016 7:41 am

I just hooked up the board via STLink, and as I guessed, the top 64k of flash is being written as a file system.

It looks like its the complete file system and not just that an uploaded binary file is written at the 64k point.
i.e 0x80010000 contains data like "<MSDOS5.0"

The firmware is not read protected, so I have read it out, but I cant see any strings in the binary. But they could be chinese strings, in which case viewing them in ASCII will be meaningless.

Anyway. Now that I've read the binary, I'll probably just flash with the bootloader, as it seems pointless messing around with the mass storage device.

TomaTLAB
Posts: 20
Joined: Thu Oct 29, 2015 8:17 am
Location: Moscow, Russia

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by TomaTLAB » Fri Jun 24, 2016 11:39 am

stevech wrote:Wow. I didn't look at their software downloads until you mentioned the IAR EWARM crack.
I just downloaded and do see a very old EWARM version and a crack file for it.
How dare they! No ethics in China businesses...
Yeh... It's China... About a year ago I received an Altera Cyclone dev board and CD with craked Modelsim and Qartus.

User avatar
leavesw
Posts: 20
Joined: Fri Jun 24, 2016 2:25 am

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by leavesw » Sat Jun 25, 2016 3:32 am

TomaTLAB wrote:
stevech wrote:Wow. I didn't look at their software downloads until you mentioned the IAR EWARM crack.
I just downloaded and do see a very old EWARM version and a crack file for it.
How dare they! No ethics in China businesses...
Yeh... It's China... About a year ago I received an Altera Cyclone dev board and CD with craked Modelsim and Qartus.
(Totally off the topic) It is not hard to get Cadence with TSMC device model libraries in China - even some university distributes it and hosts mirrors of software hacking site @.@

kblnz
Posts: 4
Joined: Fri Sep 02, 2016 9:50 am

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by kblnz » Sat Sep 03, 2016 1:14 am

OK, just had three of these arrive.
Out of the bag, Windows appears to recognise these as USB storage and requests to format the drive -didn't do that.
STLink reveal that the full 128kb contain data (no idea what, the ASCII viewer don't seem to recognise the character set).
I performed a full chip erase, then used STLink to flash generic_boot_20Ppa1.bin (has LED on PA1 and pull-up transistor on D+).
It seems that the reset hardware performs as expected (LED flashed 6xfast then slow when I press the RST btn, perform STLink reset, or connect USB). But it never shows up in the device manager, and flashing the blink sketch with arduino IDE (generic STMF103T8 128 k FLASH, STM32duino bootloader) fails with the message below.

Code: Select all

maple_loader v0.1
Resetting to bootloader via DTR pulse
Reset via USB Serial Failed! Did you select the right serial port?
Searching for DFU device [1EAF:0003]...
Assuming the board is in perpetual bootloader mode and continuing to attempt dfu programming...
dfu-util - (C) 2007-2008 by OpenMoko Inc.
Couldn't find the DFU device: [1EAF:0003]
The Win drivers (all done on Win 10 anniversary update) seem to work, because Roger's great instructions in the wiki work beautifully for a 'blue-pill' lookalike I've tried
My conclusion is that the reset hardware seems to work, so I can't understand why the bootloader shouldn't make it visible in the device manager. It's a shame because this looks like a really useful design (small footprint plus low-profile LCD connector).

Did anyone succeed?

User avatar
RogerClark
Posts: 6890
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by RogerClark » Sat Sep 03, 2016 2:11 am

I'm sure it works with the bootloader

But I can't remember if it needed a special version.

Can you post a link to the schematic

kblnz
Posts: 4
Joined: Fri Sep 02, 2016 9:50 am

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by kblnz » Sat Sep 03, 2016 3:41 am

Here's the link to the schematic: http://www.haoyuelectronics.com/Attachm ... 3T_SCH.pdf
LED colours are wrong (User/PA1 is blue; Power is red).
Would be great if we could sort it out!!

User avatar
RogerClark
Posts: 6890
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by RogerClark » Sat Sep 03, 2016 6:17 am

Ah OK

None of the existing bootloader versions will work, because it uses PA0 to reset via a PNP transistor, a bit like the Maple mini does (well the Maple mini uses two NPN transistors)

I'll need to do a custom version of the bootloader for this board

MagSem
Posts: 7
Joined: Fri Dec 11, 2015 2:27 pm

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by MagSem » Sat Sep 03, 2016 6:25 am

No, all OK.

I am using generic_boot20_pa1.bin with PA0 to GND connection.
I have 25 this boards and 10 working now with generic_boot20_pa1.bin .

Regards

kblnz
Posts: 4
Joined: Fri Sep 02, 2016 9:50 am

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by kblnz » Sat Sep 03, 2016 7:01 am

Do you keep PA0 to GND permanently?

kblnz
Posts: 4
Joined: Fri Sep 02, 2016 9:50 am

Re: Hy-Tiny STM32F103 board ever get discussed here?

Post by kblnz » Sat Sep 03, 2016 7:20 am

@MagSem, @Roger
1) flashed generic_boot20_pa1.bin with STlink
2) connect PA0 to GND
3) connect USB -> 'MapleDFU' appears as 'libusb-win32 device' in W10 Device Manager
4) flash blink example (PA1) with STMduino32bootloader -> WORKS!!!
5) Now shows up a MapleSerial COM port

Even the SerialMonitor works !

Many thanks to both of you!

Post Reply