Search found 19 matches

by rmdMoba
Wed Nov 29, 2017 10:07 am
Forum: Libary request
Topic: ili9225
Replies: 11
Views: 783

Re: ili9225

The changes are in the src/TFT_22_ILI9225.h and src/TFT_22_ILI9225.cpp files. The speedup can be done mainly bei an efficient use oft the window function (with auto incrementing/decrementing pixel addresses) of the controller. But it is very inefficient if you use this function when drawing a single...
by rmdMoba
Wed Nov 29, 2017 9:14 am
Forum: Libary request
Topic: ili9225
Replies: 11
Views: 783

Re: ili9225

Hi, I forked the original library from post #1 and created a branch 'stm32F1' to do my changes. This now works with STM32F1 ( tested on blue pill and maple mini). I did some improvements to speed the lib up, but this is not complete so far, optimizing of drawing X-bitmaps and GFX fonts is still miss...
by rmdMoba
Sat Nov 25, 2017 5:15 pm
Forum: Libary request
Topic: ili9225
Replies: 11
Views: 783

Re: ili9225

Hi, currently I'm working on this library too. The most easiest way to get it running seems to define ARDUINO_STM32_FEATHER in the header file if STM32F1 is defined. #ifdef __STM32F1__ #define ARDUINO_STM32_FEATHER #define PROGMEM #endif Additionaly I had to uncomment #define SPI_HAS_TRANSACTION in ...
by rmdMoba
Sat Jun 03, 2017 10:07 am
Forum: Problems with libraries
Topic: EEPROM fails after writing 255 times
Replies: 11
Views: 795

Re: EEPROM fails after writing 255 times

I am using the stm32duino bootloader, so I guess that would start at address 0x08000000? I never used that bootloader, but afaik the code starts directly after the bootloader. When I try to write to continous number of pages above page 100 in a bigger sketch, I fail writing to some pages. I don't r...
by rmdMoba
Fri Jun 02, 2017 8:37 pm
Forum: Problems with libraries
Topic: EEPROM fails after writing 255 times
Replies: 11
Views: 795

Re: EEPROM fails after writing 255 times

Is the main program really scattered all over the memory pages? I don't think so. When I use the integrated serial bootloader, it tells me which adresses it writes to. And this is a contiguous block from the beginning of the flash. Wrote address 0x08000100 (0.82%) Wrote address 0x08000200 (1.63%) W...
by rmdMoba
Fri Jun 02, 2017 4:28 pm
Forum: Problems with libraries
Topic: EEPROM fails after writing 255 times
Replies: 11
Views: 795

Re: EEPROM fails after writing 255 times

If you have a page size of 0x400, that means 1kbyte or 256 32bit-words. Each 32bit-word emulates ONE EEPROM-Cell and contains a 16bit address and 16 bit data. One word is reserved for management purposes, so you can store 255 values.
Regards, Franz
by rmdMoba
Fri May 26, 2017 12:26 pm
Forum: LibMaple
Topic: [Libmaple] pinMode() disables timer even if no PWM mode involved
Replies: 35
Views: 2196

Re: pinMode() disables timer even if no PWM mode involved

edogaldo wrote:A question as I'm not that expert with timers: can't we have any valid combination (also in a possible future variant) in which 2 pins can map to the same couple {timer, channel}?
No, that's not possible.
by rmdMoba
Sat May 20, 2017 2:39 pm
Forum: LibMaple
Topic: [Libmaple] pinMode() disables timer even if no PWM mode involved
Replies: 35
Views: 2196

Re: pinMode() disables timer even if no PWM mode involved

After several tests I did not find a reason why pwm doesn't work again after SPI has been active. The only solution I found is to remap the SPI pins ( or execute a hardware reset ). It seems that SPI blocks the AF on this pin if it once has been activated. Even setting all SPI registers back to '0' ...
by rmdMoba
Fri May 19, 2017 9:42 pm
Forum: LibMaple
Topic: [Libmaple] pinMode() disables timer even if no PWM mode involved
Replies: 35
Views: 2196

Re: pinMode() disables timer even if no PWM mode involved

Did you check if the end() method for the SPI port disables the SPI peripheral? It seems to do so ... void SPIClass::end(void) { if (!spi_is_enabled(_currentSetting->spi_d)) { return; } // Follows RM0008's sequence for disabling a SPI in master/slave // full duplex mode. while (spi_is_rx_nonempty(_...
by rmdMoba
Fri May 19, 2017 9:36 pm
Forum: LibMaple
Topic: [Libmaple] pinMode() disables timer even if no PWM mode involved
Replies: 35
Views: 2196

Re: pinMode() disables timer even if no PWM mode involved

victor_pv wrote: or you were using the normal ones, then if you switch to the alternate ones for SPI1 then PWM works again?
That's it