ILI9341_due_STM library complie warning

Working libraries, libraries being ported and related hardware
Nont
Posts: 2
Joined: Wed Nov 23, 2016 9:48 am

ILI9341_due_STM library complie warning

Postby Nont » Wed Nov 23, 2016 10:35 am

Hello everybody,

i have old maple r3 from original leaflab

i use arduino IDE 1.6.12 and SAM 1.6.9 with lasted STM32duino try to run example on ILI9341_due_STM and got warning like code below

look like it double declare on DMA function, how could i fix it. thank in advance

Code: Select all


Build options changed, rebuilding all
In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM/ILI9341_due_gText.h:36:0,

                 from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\examples\graphicstest\graphicstest.ino:22:

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM/ILI9341_due.h:485:20: warning: extra tokens at end of #ifdef directive [enabled by default]

 #ifdef __SAM3X8E__ |  __STM32F1__

                    ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp: In member function 'uint8 SPIClass::dmaTransfer(uint8*, uint8*, uint16)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:396:2: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

  dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiRxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

  ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:397:82: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                      receiveBuf, DMA_SIZE_8BITS, (DMA_MINC_MODE | DMA_TRNS_CMPLT));// receive buffer DMA

                                                                                  ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:405:2: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

  dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

  ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:406:84: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_8BITS, (DMA_FROM_MEM | DMA_TRNS_CMPLT));// Transmit FF repeatedly

                                                                                    ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:409:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:410:101: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_8BITS, (DMA_MINC_MODE |  DMA_FROM_MEM | DMA_TRNS_CMPLT));// Transmit buffer DMA

                                                                                                     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp: In member function 'uint8 SPIClass::dmaSend(uint8*, uint16, bool)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:457:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:458:58: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_8BITS, flags);// Transmit buffer DMA

                                                          ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp: In member function 'uint8 SPIClass::dmaSend(uint16*, uint16, bool)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:486:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_16BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:487:59: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_16BITS, flags);// Transmit buffer DMA

                                                           ^

In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due.cpp:45:0:

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due.h:485:20: warning: extra tokens at end of #ifdef directive [enabled by default]

 #ifdef __SAM3X8E__ |  __STM32F1__

                    ^

In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due_gText.cpp:31:0:

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due.h:485:20: warning: extra tokens at end of #ifdef directive [enabled by default]

 #ifdef __SAM3X8E__ |  __STM32F1__

                    ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp: In function 'void ILI_spiDmaRX(uint8_t*, uint16_t)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:302:3: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

   dma_setup_transfer(DMA1, DMA_CH2, &SPI1->regs->DR, DMA_SIZE_8BITS,

   ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:303:75: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                      dst, DMA_SIZE_8BITS, (DMA_MINC_MODE | DMA_TRNS_CMPLT));

                                                                           ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp: In function 'void ILI_spiDmaTX(uint8_t*, uint16_t)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:322:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(DMA1, DMA_CH3, &SPI1->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:323:76: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        src, DMA_SIZE_8BITS, (DMA_FROM_MEM | DMA_TRNS_CMPLT));

                                                                            ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:326:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(DMA1, DMA_CH3, &SPI1->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:327:94: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        src, DMA_SIZE_8BITS, (DMA_MINC_MODE  |  DMA_FROM_MEM | DMA_TRNS_CMPLT));

                                                                                              ^


Sketch uses 40,268 bytes (37%) of program storage space. Maximum is 108,000 bytes.
Global variables use 4,800 bytes of dynamic memory.

stevestrong
Posts: 724
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: ILI9341_due_STM library complie warning

Postby stevestrong » Thu Dec 22, 2016 2:40 pm

Which sketch are you trying to compile?
This library was committed by @victorpv, but I think is not supported anymore in this repo, as it is replaced by "Adafruit_ILI9341_STM".
Alternatively, try a version from victor's repo directly.

User avatar
mrburnette
Posts: 1769
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: ILI9341_due_STM library complie warning

Postby mrburnette » Thu Dec 22, 2016 10:08 pm

Try my test sketch which uses Victor's DMA routine. The library is "bound" into the sketch directory.

https://www.hackster.io/rayburne/mesmerize-on-maple-mini-stm32f103-62169b


Code: Select all

                          OLD STM Port         non-DMA STM Port                STM DMA Port
ILI9341 Test!
Benchmark             Time (microseconds)      Time (microseconds)        Time (microseconds)
Screen fill              1,026,635                   716,291                    174,901
Text                        74,910                    46,087                     65,358
Lines                      702,724                   400,688                    692,868
Horiz/Vert Lines            84,359                    57,074                     23,342
Rectangles (outline)        54,489                    36,604                     16,625
Rectangles (filled)      2,132,392                 1,487,410                    371,832
Circles (filled)           344,984                   220,662                    181,100
Circles (outline)          306,326                   174,199                    302,904
Triangles (outline)        222,948                   127,154                    219,106
Triangles (filled)         715,597                   472,077                    243,512
Rounded rects (outline)    130,131                    78,591                     91,564
Rounded rects (filled)   2,331,405                 1,615,938                    488,708
Done!



Ray

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

Re: ILI9341_due_STM library complie warning

Postby RogerClark » Thu Dec 22, 2016 10:41 pm

There are some old examples which no longer compile (after changes to SPI / DMA - ages ago)

I'll just delete them, as git will retain their history even if I delete from the current HEAD in the master branch

User avatar
mrburnette
Posts: 1769
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: ILI9341_due_STM library complie warning

Postby mrburnette » Thu Dec 22, 2016 10:45 pm

RogerClark wrote:There are some old examples which no longer compile (after changes to SPI / DMA - ages ago)

I'll just delete them, as git will retain their history even if I delete from the current HEAD in the master branch



I have not been overly affected by changes in core and STM hacked libs; but, I put libraries into sketch folders as a general rule.

Ray

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

Re: ILI9341_due_STM library complie warning

Postby RogerClark » Thu Dec 22, 2016 10:52 pm

Ray

This isnt the first time that someone has tried to use the Due examples, only to find they don't compile or don't run.

Now that our version of the ILI9341 code is working, it just causes confusion for new users by having these old libs, which were only put into the repo as reference while Victor etc were developing our versions.

So.. I've removed the ILI9341_due_STM folder.

(Actually only a one or two of them didnt compile and that was mainly because of external dependancies, but I don't have time to individually test all of them to confirm they actually work and do what they say they do, I think its still better to remove them.

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

Re: ILI9341_due_STM library complie warning

Postby victor_pv » Sat Dec 24, 2016 12:04 am

Nont wrote:Hello everybody,

i have old maple r3 from original leaflab

i use arduino IDE 1.6.12 and SAM 1.6.9 with lasted STM32duino try to run example on ILI9341_due_STM and got warning like code below

look like it double declare on DMA function, how could i fix it. thank in advance

Code: Select all


Build options changed, rebuilding all
In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM/ILI9341_due_gText.h:36:0,

                 from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\examples\graphicstest\graphicstest.ino:22:

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM/ILI9341_due.h:485:20: warning: extra tokens at end of #ifdef directive [enabled by default]

 #ifdef __SAM3X8E__ |  __STM32F1__

                    ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp: In member function 'uint8 SPIClass::dmaTransfer(uint8*, uint8*, uint16)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:396:2: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

  dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiRxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

  ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:397:82: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                      receiveBuf, DMA_SIZE_8BITS, (DMA_MINC_MODE | DMA_TRNS_CMPLT));// receive buffer DMA

                                                                                  ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:405:2: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

  dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

  ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:406:84: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_8BITS, (DMA_FROM_MEM | DMA_TRNS_CMPLT));// Transmit FF repeatedly

                                                                                    ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:409:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:410:101: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_8BITS, (DMA_MINC_MODE |  DMA_FROM_MEM | DMA_TRNS_CMPLT));// Transmit buffer DMA

                                                                                                     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp: In member function 'uint8 SPIClass::dmaSend(uint8*, uint16, bool)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:457:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:458:58: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_8BITS, flags);// Transmit buffer DMA

                                                          ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp: In member function 'uint8 SPIClass::dmaSend(uint16*, uint16, bool)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:486:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(_currentSetting->spiDmaDev, _currentSetting->spiTxDmaChannel, &_currentSetting->spi_d->regs->DR, DMA_SIZE_16BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src\SPI.cpp:487:59: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        transmitBuf, DMA_SIZE_16BITS, flags);// Transmit buffer DMA

                                                           ^

In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due.cpp:45:0:

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due.h:485:20: warning: extra tokens at end of #ifdef directive [enabled by default]

 #ifdef __SAM3X8E__ |  __STM32F1__

                    ^

In file included from C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due_gText.cpp:31:0:

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI9341_due.h:485:20: warning: extra tokens at end of #ifdef directive [enabled by default]

 #ifdef __SAM3X8E__ |  __STM32F1__

                    ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp: In function 'void ILI_spiDmaRX(uint8_t*, uint16_t)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:302:3: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

   dma_setup_transfer(DMA1, DMA_CH2, &SPI1->regs->DR, DMA_SIZE_8BITS,

   ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:303:75: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                      dst, DMA_SIZE_8BITS, (DMA_MINC_MODE | DMA_TRNS_CMPLT));

                                                                           ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp: In function 'void ILI_spiDmaTX(uint8_t*, uint16_t)':

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:322:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(DMA1, DMA_CH3, &SPI1->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:323:76: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        src, DMA_SIZE_8BITS, (DMA_FROM_MEM | DMA_TRNS_CMPLT));

                                                                            ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:326:5: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

     dma_setup_transfer(DMA1, DMA_CH3, &SPI1->regs->DR, DMA_SIZE_8BITS,

     ^

C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\libraries\ILI9341_due_STM\ILI_SdSpiSAM3X.cpp:327:94: warning: 'void dma_setup_transfer(dma_dev*, dma_channel, volatile void*, dma_xfer_size, volatile void*, dma_xfer_size, uint32)' is deprecated (declared at C:\Program Files (x86)\Arduino\hardware\Arduino_STM32\STM32F1\system/libmaple/stm32f1/include/series/dma.h:563) [-Wdeprecated-declarations]

                        src, DMA_SIZE_8BITS, (DMA_MINC_MODE  |  DMA_FROM_MEM | DMA_TRNS_CMPLT));

                                                                                              ^


Sketch uses 40,268 bytes (37%) of program storage space. Maximum is 108,000 bytes.
Global variables use 4,800 bytes of dynamic memory.


Nont, as Roger explained that library was ported a long time ago, while we were working on using DMA transfers. After a while we added the SPI DMA functions in the core, but that library has not been updated, so the functions in it clash with the functions already in the core.

I agree the best is to remove that obsolete library from the core.

As a side note, the library was originally ported because of some extra text functions, i.e. use different fonts, sizes. If anyone actually needs it, should be easy to rework it for the latest core, but until then better remove it.


Return to “Libraries & Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest