Search found 269 matches

by danieleff
Mon Jun 26, 2017 5:21 pm
Forum: General discussion
Topic: STM32F103 performance when using non blocking DMA
Replies: 23
Views: 270

Re: STM32F103 performance when using non blocking DMA

I see "DMA_MEM_2_MEM | DMA_CIRC_MODE" in the code. According to RM0008 13.3.3, "Memory to Memory mode may not be used at the same time as Circular mode"
by danieleff
Sun Jun 25, 2017 2:36 pm
Forum: STM32generic
Topic: [STM32GENERIC] Latest - issues
Replies: 11
Views: 234

Re: [STM32GENERIC] Latest - issues

The only thing changed lately that can affect SPI high speed is `smt32_gpio_af_F1.c` changed from
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
to
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;
by danieleff
Sun Jun 25, 2017 9:36 am
Forum: STM Nucleo boards
Topic: STM32F091 ADC resolution 10 bit instead of 12 bit
Replies: 17
Views: 152

Re: STM32F091 ADC resolution 10 bit instead of 12 bit

https://github.com/stm32duino/Arduino_Core_STM32/blob/master/cores/arduino/wiring_analog.c#L32 maybe a call analogReadResolution(12) in setup() Thats interesting. In had not realised that Frederics core defaulted to AVR resolution, I wonder what Daniel's defaults to. BTW. Am am not going to change ...
by danieleff
Sun Jun 25, 2017 9:25 am
Forum: STM Core
Topic: Using Scheduler Library
Replies: 9
Views: 120

Re: Using Scheduler Library

Scheduler already works with libmaple (and all STM32 cores) as is.

Rick's point is only for Cortex M0 chips that need different code path.
by danieleff
Sun Jun 25, 2017 6:25 am
Forum: General discussion
Topic: Should we still use optimisation level -Os (Small)
Replies: 15
Views: 189

Re: Should we still use optimisation level -Os (Small)

One more thing you can check: GNU ARM embedded 6-2017-q1
It can give you speed boost without changing to -O2
by danieleff
Sat Jun 24, 2017 5:07 am
Forum: STM core: Bugs and enhancements
Topic: Analog pins definition
Replies: 10
Views: 109

Re: Analog pins definition

RogerClark wrote:
Fri Jun 23, 2017 9:59 pm
No need to define A6 etc as no board has a pin labelled A6 on the PCB silk screen.
Arduino nano / Nucleo-32 has A6/A7 on silkscreen. Nucleo-144 has A6/A7/A8 on the paper thingie that comes with it.
by danieleff
Fri Jun 23, 2017 6:59 am
Forum: Problems with libraries
Topic: Arduino TFT libraries compatibility
Replies: 16
Views: 233

Re: Arduino TFT libraries compatibility

ChrisMicro wrote:
Fri Jun 23, 2017 5:18 am
I try this with your F746 TFT implementation but it seems not to be a derivative of the Adafruit_GFX.
Yes it is.
by danieleff
Fri Jun 23, 2017 4:37 am
Forum: STM32generic
Topic: [STM32GENERIC] Latest - issues
Replies: 11
Views: 234

Re: [STM32GENERIC] Latest - issues

There is a also a pull request for those boards, and has a fix for this. Until then, just comment it out.
by danieleff
Thu Jun 22, 2017 2:59 pm
Forum: Problems with libraries
Topic: Arduino TFT libraries compatibility
Replies: 16
Views: 233

Re: Arduino TFT libraries compatibility

Whats wrong with class GUI { public: GUI(Adafruit_GFX &gfx): gfx(gfx) {}; Adafruit_GFX &gfx; void button() { gfx.drawPixel(...); } }; //Use as: Adafruit_ILI9341 tft(); // or other display GUI(tft); Or templated class, and hope that the display class has the same `drawPixel()` etc... Otherwise create...
by danieleff
Wed Jun 21, 2017 10:00 am
Forum: STM32generic
Topic: [STM32GENERIC] F429i Discovery
Replies: 5
Views: 87

Re: [STM32GENERIC] F429i Discovery

Again, it is just the firmware examples. Download the firmware, and you get examples for everything. It is fine if you do your own project without arduino. But look at the code! #define LED3_PIN GPIO_PIN_13 #define LED3_GPIO_PORT GPIOG #define LED3_GPIO_CLK_ENABLE() __GPIOG_CLK_ENABLE() #define LED3...