[riot-notifications] [RIOT-OS/RIOT] boards/stm32f4: Add DMA config for SPI (#14093)

Koen Zandberg notifications at github.com
Mon May 25 11:41:23 CEST 2020


<details>
  <summary>Nucleo-f401re</summary>

  tests/periph_dma:
  ```
  2020-05-25 11:30:24,941 # Help: Press s to start test, r to print it is ready
  s
  2020-05-25 11:30:26,802 # START
  2020-05-25 11:30:26,811 # main(): This is RIOT! (Version: 2020.07-devel-687-g201d6-pr/boards_stm32f4/add_spi_dma)
  2020-05-25 11:30:26,814 # DMA is working
  ```

  tests/periph_spi:
  ```
  init 0 0 4 -1 0
  2020-05-25 11:36:10,469 # init 0 0 4 -1 0
  2020-05-25 11:36:10,476 # SPI_DEV(0) initialized: mode: 0, clk: 4, cs_port: -1, cs_pin: 0
  > bench
  2020-05-25 11:36:11,662 #  bench
  2020-05-25 11:36:11,668 # ### Running some benchmarks, all values in [us] ###
  2020-05-25 11:36:11,671 # ### Test                              Transfer time   user time
  2020-05-25 11:36:11,671 #
  2020-05-25 11:36:11,692 #  1 - write 1000 times 1 byte:                 17359   17361
  2020-05-25 11:36:11,722 #  2 - write 1000 times 2 byte:                 20819   20821
  2020-05-25 11:36:11,813 #  3 - write 1000 times 100 byte:               96096   19193
  2020-05-25 11:36:11,855 #  4 - write 1000 times 1 byte to register:     34347   34349
  2020-05-25 11:36:11,896 #  5 - write 1000 times 2 byte to register:     37870   37873
  2020-05-25 11:36:12,017 #  6 - write 1000 times 100 byte to register:   113096  36194
  2020-05-25 11:36:12,046 #  7 - read 1000 times 2 byte:                  20855   20857
  2020-05-25 11:36:12,142 #  8 - read 1000 times 100 byte:                96096   19193
  2020-05-25 11:36:12,185 #  9 - read 1000 times 2 byte from register:    37882   37885
  2020-05-25 11:36:12,301 # 10 - read 1000 times 100 byte from register:  113168  36170
  2020-05-25 11:36:12,328 # 11 - transfer 1000 times 2 byte:              20903   20905
  2020-05-25 11:36:12,430 # 12 - transfer 1000 times 100 byte:            96168   19170
  2020-05-25 11:36:12,469 # 13 - transfer 1000 times 2 byte to register:  37953   37956
  2020-05-25 11:36:12,588 # 14 - transfer 1000 times 100 byte to register:113192  36290
  2020-05-25 11:36:13,589 # -- - SUM:                                     855804  394217
  2020-05-25 11:36:13,590 #
  2020-05-25 11:36:13,594 # ### All runs complete ###
  ```

</details>

<details>
<summary>nucleo-f446re</summary>

tests/periph_dma:
```
2020-05-25 11:40:28,474 # START
2020-05-25 11:40:28,482 # main(): This is RIOT! (Version: 2020.07-devel-687-g201d6-pr/boards_stm32f4/add_spi_dma)
2020-05-25 11:40:28,483 # DMA is working
```

tests/periph_spi:
```
init 0 0 4 -1 0
2020-05-25 11:39:24,889 # init 0 0 4 -1 0
2020-05-25 11:39:24,894 # SPI_DEV(0) initialized: mode: 0, clk: 4, cs_port: -1, cs_pin: 0
bench
2020-05-25 11:39:26,890 #  bench
2020-05-25 11:39:26,895 # ### Running some benchmarks, all values in [us] ###
2020-05-25 11:39:26,898 # ### Test                              Transfer time   user time
2020-05-25 11:39:26,898 # 
2020-05-25 11:39:26,912 #  1 - write 1000 times 1 byte:                 9912    9913
2020-05-25 11:39:26,928 #  2 - write 1000 times 2 byte:                 12223   12225
2020-05-25 11:39:27,014 #  3 - write 1000 times 100 byte:               82823   11670
2020-05-25 11:39:27,039 #  4 - write 1000 times 1 byte to register:     19657   19658
2020-05-25 11:39:27,066 #  5 - write 1000 times 2 byte to register:     22001   22003
2020-05-25 11:39:27,163 #  6 - write 1000 times 100 byte to register:   92645   21491
2020-05-25 11:39:27,180 #  7 - read 1000 times 2 byte:                  12190   12191
2020-05-25 11:39:27,266 #  8 - read 1000 times 100 byte:                82845   11690
2020-05-25 11:39:27,293 #  9 - read 1000 times 2 byte from register:    21989   21991
2020-05-25 11:39:27,390 # 10 - read 1000 times 100 byte from register:  92645   21470
2020-05-25 11:39:27,407 # 11 - transfer 1000 times 2 byte:              12256   12258
2020-05-25 11:39:27,494 # 12 - transfer 1000 times 100 byte:            82911   11757
2020-05-25 11:39:27,521 # 13 - transfer 1000 times 2 byte to register:  22046   22047
2020-05-25 11:39:27,618 # 14 - transfer 1000 times 100 byte to register:92711   21535
2020-05-25 11:39:28,621 # -- - SUM:                                     658854  231899
2020-05-25 11:39:28,622 # 
2020-05-25 11:39:28,623 # ### All runs complete ###
```
</details>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14093#issuecomment-633482429
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200525/2ae1e549/attachment.htm>


More information about the notifications mailing list