Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
User avatar
ahull
Posts: 1732
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by ahull » Fri Mar 11, 2016 11:13 pm

There are a number of similar boards around, mainly with the following spec. LCD controller chip SSD1289/ILI9341, touch panel control chip XPT2046.. that would be my starting guess. This one looks similar... but then again.. a lot of them look similar.
- Andy Hull -

localcrack
Posts: 2
Joined: Fri Mar 11, 2016 8:28 am

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by localcrack » Sat Mar 12, 2016 2:26 pm

I have tried following code from waveshare but unable to get success

http://www.waveshare.com/wiki/File:3.2i ... -C-Code.7z

They provides code with both method by using Normal IO and with FSMC.
I do not know the FSMC more so I unable to configure it
In Normal IO method my board layout uses different pin configuration then code provided. I try to change pin config but unable to get success.
my stm32 board uses PortD amd PortE pins for LCD Data

stanleyseow
Posts: 53
Joined: Sun Sep 27, 2015 3:26 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by stanleyseow » Thu May 05, 2016 5:57 pm

Can you share your method of testing or ways to try to get this working ??

I've a similar display but still have not gotten it to work yet ...

http://www.stm32duino.com/viewtopic.php ... 9320#p6769
Stanley
9W2SVT / N5SVT

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

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by RogerClark » Sat May 07, 2016 11:27 pm

This board has been added to the Wiki

http://wiki.stm32duino.com/index.php?ti ... 2F103V_-EK


Edit.

The top 20 posters to this forum have been added as editors to the wiki, just do a password reset request with your login and you should get sent an email with instructions on how to reset / assign a password

JBecker
Posts: 3
Joined: Fri May 20, 2016 8:04 am

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by JBecker » Fri May 20, 2016 8:36 am

SOLVED:

Hope its is not OT:
- I am also using the Board described here and have started to work with it (have first loaded the STM32duino bootloader as described)
- have set the board type in Arduino as 'Platine: "Generic STM32F103V series"' and as 'Variant: "STM32F103VE"'
- then done a small sketch which prints "Hello Worldx" on all five UARTS (x is the number of the serial port)
- in the code Serial1.begin to Serial3.begin is printed in red, Serial4.begin and Serial5.begin in black (unknown???).
- Compiling shows no errors
- the first three Uarts print 'HelloWorldx' as expected, Uart4TX and Uart5TX print 'Hello World1'
(- I have additionally done Serial.begin(9600) and Serial.Println("Hello World") and the USB prints "Hello World" as expected)

Any idea how to use the whole five UARTS?

Regards, Jörg.

PS: I have added STM32 Support like described by RogerClark somewhere under 'Installation on Windows.

PPS: seems I am stupid! After restarting everything and compiling and downloading everything works. I think I might have forgotten to set the variant correctly in the previous attempt? Sorry for the mess ...

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

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by RogerClark » Fri May 20, 2016 2:20 pm

I think you got it working, but just in case...

The first 3 UARTS are USARTS the last 2 are UART (No Synchronous transmission)

I remember having to change some code to make the last 2 serial channels work because they are subtly different

I thought I had tested it... However there are so many board variants I could have easily missed something

JBecker
Posts: 3
Joined: Fri May 20, 2016 8:04 am

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by JBecker » Fri May 20, 2016 3:31 pm

Thanks for the reply :-)
Everything is working for me now.

There is just one little thing and that is that the Serial4 and Serial5 keywords in the code (Arduino editor) are black and not red. Is this something that can be solved with some settings in the board files easily?

BR, Jörg.

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

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by RogerClark » Fri May 20, 2016 3:35 pm

Re: Keyword colour coding

Ummm

As Serial is a built in function (not a library), I don't know of a way to make them get color coded correctly.

Its probably something that would need to be posted as an issue with the Arduino IDE

(though someone may correct me) ;-)

User avatar
Rick Kimball
Posts: 1078
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by Rick Kimball » Fri May 20, 2016 3:59 pm

Probably in here:

https://github.com/arduino/Arduino/blob ... ywords.txt

[Edit]
Not just probably. Actually. I changed the file and recompiled the arduino java IDE and it worked.

Code: Select all

$ git diff
diff --git a/build/shared/lib/keywords.txt b/build/shared/lib/keywords.txt
index a89b7a1..ecb7768 100644
--- a/build/shared/lib/keywords.txt
+++ b/build/shared/lib/keywords.txt
@@ -180,6 +180,8 @@ Serial      KEYWORD1        Serial  DATA_TYPE
 Serial1        KEYWORD1        Serial  DATA_TYPE
 Serial2        KEYWORD1        Serial  DATA_TYPE
 Serial3        KEYWORD1        Serial  DATA_TYPE
+Serial4        KEYWORD1        Serial  DATA_TYPE
+Serial5        KEYWORD1        Serial  DATA_TYPE
 SerialUSB      KEYWORD1        Serial  DATA_TYPE
 begin  KEYWORD2        Serial_Begin
 end    KEYWORD2        Serial_End
$ 
change.png
change.png (44.82 KiB) Viewed 663 times
-rick

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

Re: Review: CZ mini STM32F103VET6 (infos, documents, BL…)

Post by RogerClark » Fri May 20, 2016 4:42 pm

Thanks Rick

Did your fork the IDE on github or are you making local changes? (Actually, Can you easily send them a PR ?)

Post Reply