Review : CZ mini STM32F103VE-EK (new version 2017)

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
victor_pv
Posts: 1682
Joined: Mon Apr 27, 2015 12:12 pm

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by victor_pv » Sat Sep 02, 2017 2:58 pm

stevestrong wrote:
Fri Sep 01, 2017 3:08 pm
poiuycat wrote:
Fri Sep 01, 2017 3:03 pm
That library is designed for F4 boards, not for F1.
I think Victor tried/wanted to port it to F1, I don't know how much he did.
I don't own any F1 board which has SDIO, so I cannot develop/test SDIO for F1.
I went over the code and RM checking the differences, but that was it so far. The base address for registers needs to be changed, all registers match. DMA functions need to the changed whereever they are used since the F1 DMA is difference (no FIFO, no streams...) Bulk of the code except for the DMA parts should work exactly as it is since the peripheral itself is identifical, even the same bugs... :lol:

poiuycat
Posts: 17
Joined: Tue Aug 22, 2017 4:53 pm

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by poiuycat » Sat Sep 02, 2017 3:02 pm

because of SDIO that I am run out of pin.
I have to free out PA13,Pa14,Pa15 from SWDIO.


RCC->APB2ENR |= AFIOEN;
AFIO->MAPR = SWJ_CFG(SWJ_CFG_SW) ;

:twisted:

poiuycat
Posts: 17
Joined: Tue Aug 22, 2017 4:53 pm

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by poiuycat » Sat Sep 02, 2017 3:05 pm

victor_pv wrote:
Sat Sep 02, 2017 2:58 pm
stevestrong wrote:
Fri Sep 01, 2017 3:08 pm
poiuycat wrote:
Fri Sep 01, 2017 3:03 pm
That library is designed for F4 boards, not for F1.
I think Victor tried/wanted to port it to F1, I don't know how much he did.
I don't own any F1 board which has SDIO, so I cannot develop/test SDIO for F1.
I went over the code and RM checking the differences, but that was it so far. The base address for registers needs to be changed, all registers match. DMA functions need to the changed whereever they are used since the F1 DMA is difference (no FIFO, no streams...) Bulk of the code except for the DMA parts should work exactly as it is since the peripheral itself is identifical, even the same bugs... :lol:
ya, I did try to do so, that F1 using individual register and F4 using array !!! :evil:

zmemw16
Posts: 1450
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by zmemw16 » Sat Sep 02, 2017 3:16 pm

if i understand the various spi threads correctly; spi now has dma capability.
would it be possible to split the dma parts out as a new library or is it too tightly coupled or even as a guide on how to add it ?
stephen

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

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by RogerClark » Sat Sep 02, 2017 9:59 pm

zmemw16 wrote:
Sat Sep 02, 2017 3:16 pm
if i understand the various spi threads correctly; spi now has dma capability.
SPI has DMA functions for well over a year.

victor_pv
Posts: 1682
Joined: Mon Apr 27, 2015 12:12 pm

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by victor_pv » Sat Sep 02, 2017 10:33 pm

Roger, I think he was asking whether the DMA code using in the SPI could be extracter to a library by itself.
To answer that, the DMA code was already a functional generic library by Leaflabs, we just used that library to add use DMA with the SPI.
I have also used the DMA library for the i2s driver, there is samples of code here being used for GPIO, and Steve has used it (the F4 version) in the SDIO code.
The SDIO code from Steven is written for the F4 DMA library, which is slightly different because the DMA peripheral is different. So to get the SDIO library working in the F1, one needs to do 3 things:
1.-In the header file, change the base address for the registers, since the SDIO peripheral is the same in the F1 but with a different base address.
2.-Anywhere where speed is calculated, take in account the different speed at which the MCU runs in the F1 (72 vs 168 normally).
3.-In the read and write functions, which use DMA, change the DMA functions to use the F1 dma library (not a big deal, since the are close, just not exactly the same)

I compared the SDIO peripherals page by page between the F1 and F4 and they are exactly identical, except for the base address, so I am 100% sure that's the only change regarding registers.

zmemw16
Posts: 1450
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by zmemw16 » Sat Sep 23, 2017 4:31 pm

i swear it made sense when i typed it.
correct, it was the idea of separating the dma functionality from the spi and making it generally available.

so my boards arrived, both with the esp & nrf 8pin connectors.
anyone seen an updated schematic ?

stephen

zmemw16
Posts: 1450
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by zmemw16 » Sun Sep 24, 2017 2:57 am

currently i'm trying to find the two leds. i was about to say PE6 had gone walkies, but no both are blinking away furiously. seems to need a board reset.

i have the microchip spi demo board connected, 7 devices.
currently the spi is A5,A6 & A7 with CS signals connected PE8 to PE14

anyone seen a new schematic for this version ?

stephen

i think the outside 22 hrs out of 24 feline may have forgiven me for the dose of frontline to the back of her neck. she stuffed herself on top of the book shelves, dropped down 2ft and then another 2ft, strolled across the wobbly bed tray/stand i use as a desk.
groomed herself for a while and went to sleep on my chest. observing my screen past a rear paw/leg in my face can be an issue.
abnormal for her, exceedingly so. twice in maybe 9 months. normal is i lift her from the bookshelves, she;ll groom, maybe stay/sleep a bit, then she'll bounce off. last week she flounced off me after sliding my chest & supporting arm in her sleep.

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

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by RogerClark » Sun Sep 24, 2017 3:05 am

zmemw16 wrote:
Sun Sep 24, 2017 2:57 am
....

i think the outside 22 hrs out of 24 feline may have forgiven me for the dose of frontline to the back of her neck. she stuffed herself on top of the book shelves, dropped down 2ft and then another 2ft, strolled across the wobbly bed tray/stand i use as a desk.
groomed herself for a while and went to sleep on my chest. observing my screen past a rear paw/leg in my face can be an issue.
abnormal for her, exceedingly so. twice in maybe 9 months. normal is i lift her from the bookshelves, she;ll groom, maybe stay/sleep a bit, then she'll bounce off. last week she flounced off me after sliding my chest & supporting arm in her sleep.

We are increasingly getting Bots who post text like this, which are valid texts but not related or useful in terms of the discussion.

To prevent your posts being marked as spam, its best if you omit posting these unrelated paragraphs

zmemw16
Posts: 1450
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Review : CZ mini STM32F103VE-EK (new version 2017)

Post by zmemw16 » Sun Sep 24, 2017 8:45 pm

meow, i'll add some soelling mistokes, stn32f103 pe6 gone walkies, purr ;)
stephen

Post Reply