Search found 859 matches

by Pito
Sun Apr 30, 2017 11:05 am
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 10
Views: 93

Re: [STM32GENERIC] SPI DMA

21Mb / 8977.136uS / 3127.777uS The theoretical DMA transfer time for an 8192 bytes large buffer at 21MHz SPI speed is 3120.762uS :) Hmm, I want as a test, to replace the receive in SdFat's SdSPiDriver.h with dmaTransfer uint8_t receive(uint8_t* buf, size_t n) { SPI.dmaTransfer( buf, buf, n); // for...
by Pito
Sun Apr 30, 2017 12:26 am
Forum: Generic bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 11
Views: 89

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

There is a binary for bootloader with 12MHz Xtal - try it
#elif defined TARGET_STBEE
https://github.com/rogerclarkmelbourne/ ... 1/binaries
by Pito
Sun Apr 30, 2017 12:06 am
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 10
Views: 93

Re: [STM32GENERIC] SPI DMA

This is a F407 measurement (168MHz, BlackZE) for record - SPI1 freq vs. rdwr speed (Sammy EVO 8GB, CL10), SdFatEX, buff size 512b: SPI no DMA rdwr speed.JPG Double-checked the SPI clocks with LA. PS: I think this in SPI.cpp if (settings.clock > apb_freq / 2) { spiHandle.Init.BaudRatePrescaler = SPI_...
by Pito
Sat Apr 29, 2017 5:43 pm
Forum: Projects
Topic: free logic analizer
Replies: 18
Views: 553

Re: free logic analizer

Updated my above link - the "nanoseconds" measurement on Maple Mini works too. 1 usec is 1041.660 nanosecs long 1 usec is 1041.660 nanosecs long 1 usec is 1041.660 nanosecs long And of course you may go to 128MHz with Maple Mini :) The resolution of your time[] will be 7.8125ns then.. The ...
by Pito
Sat Apr 29, 2017 5:39 pm
Forum: Code snipplets
Topic: How many CPU clocks long.. CpuGetTicks().. and nanosecs
Replies: 7
Views: 150

Re: How many CPU clocks long.. CpuGetTicks()

Updated such it works on Maple Mini and BP as well..
by Pito
Sat Apr 29, 2017 3:52 pm
Forum: Generic STM32F103
Topic: blue pill && 3 hardware 9bits UART @ 26300bps
Replies: 1
Views: 46

Re: blue pill && 3 hardware 9bits UART @ 26300bps

Yes, sure. The USART_CR1 control register has got in bit 12 a M, if M=1 you go 9bit. RefManual RM0008, page 826.
Must be set manually..
Maybe

Code: Select all

Serial1.begin(26300);
(USART1->regs).bas->CR1 |=  USART_CR1_M_9N1 ;

Try..
by Pito
Sat Apr 29, 2017 12:25 pm
Forum: Projects
Topic: free logic analizer
Replies: 18
Views: 553

Re: free logic analizer

Vincenzo, nice project! Some ideas: 1. you can use the DWT register (32bit counter) which increments in 13.88ns period on the Maple Mini - that could be your resolution then. It works on F407 but it is implemented on F103 as well, double check. UPDATE: It works on Maple Mini too.. Here is the code: ...
by Pito
Sat Apr 29, 2017 10:43 am
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SDIO
Replies: 1
Views: 47

[STM32GENERIC] SDIO

The latest Errata for F407 (Nov2016) indicates: SDIO clock divider BYPASS mode may not work properly Description In high speed communication mode, when SDIO_CK is equal to 48 MHz (PLL48_output = 48 MHz), the BYPASS bit is equal to ‘1’ and the NEGEDGE bit is equal to ‘0’ (respectively bit 10 and bit ...
by Pito
Sat Apr 29, 2017 9:32 am
Forum: Generic bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 11
Views: 89

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

Where in the stm32duino environment did you a change to reflect the 12MHz Xtal?
by Pito
Sat Apr 29, 2017 5:50 am
Forum: Generic bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 11
Views: 89

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

Do you have got the d+ usb switch (via 1k5 to Vcc) on your board?

Go to advanced search