• skip to content



flink-project

Universal Serial Interface to FPGA's

User Tools

  • Admin
  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: start » flink_example_1

flink_example_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
flink_example_1 [2015/03/28 08:16] – ursgrafflink_example_1 [2015/03/28 08:17] – ursgraf
Line 66: Line 66:
  
 === Build into kernel === === Build into kernel ===
-Compile kernel modules (see [[software:flink:flink_linux|flink Linux Kernel Modules]]) and add them to your kernel image. Add a subnode ''flink_spi'' to your device tree under the node ''spi''. In the compatible statement you must specify which protokoll driver to load (''compatible = "flink_spi"''). You can also specify the clock frequency. When booting the SPI-subsystem will automatically load a master driver (''spi-mpc5200'' or ''spi-mpc5200-psc'') and the protokoll driver ''flink_spi''.+Compile kernel modules (see [[flink_linux|flink Linux Kernel Modules]]) and add them to your kernel image. Add a subnode ''flink_spi'' to your device tree under the node ''spi''. In the compatible statement you must specify which protokoll driver to load (''compatible = "flink_spi"''). You can also specify the clock frequency. When booting the SPI-subsystem will automatically load a master driver (''spi-mpc5200'' or ''spi-mpc5200-psc'') and the protokoll driver ''flink_spi''.
  
 === Load manually === === Load manually ===
Line 116: Line 116:
 Proceed as described in [[flink_vhdl|flink VHDL]].  Proceed as described in [[flink_vhdl|flink VHDL]]. 
   * In 5: add a block //gpio// and a block //pwm// to the system. Also add a //lpb_mpc5200b_to_avalon// module. Leave the standard values as they are except for the PWM module, whose base clock should be 33000000. Set ''unique_id'' of the //gpio// subdevice to 0x20 and the ''unique_id'' of the //pwm// subdevice to 0x30  [{{ lpb_avalon.png?500 | //Adding an interface block// }}]   * In 5: add a block //gpio// and a block //pwm// to the system. Also add a //lpb_mpc5200b_to_avalon// module. Leave the standard values as they are except for the PWM module, whose base clock should be 33000000. Set ''unique_id'' of the //gpio// subdevice to 0x20 and the ''unique_id'' of the //pwm// subdevice to 0x30  [{{ lpb_avalon.png?500 | //Adding an interface block// }}]
-  * In 6: set the ''unique id'' of the info subdevice to 0x10 and the ....+  * In 6: set the ''unique id'' of the info subdevice to 0x10. Convert a chosen string into a digital value and enter this value in the field ''description''. ''dev_size'' should be 0x1c0 for our configuration.
   * After 10: the system should now look like: [{{ lpb_qsys.png?700 | //Complete system// }}]    * After 10: the system should now look like: [{{ lpb_qsys.png?700 | //Complete system// }}] 
   * In 15: assign the pins as follows:   * In 15: assign the pins as follows:
flink_example_1.txt · Last modified: 2016/02/25 13:32 by 127.0.0.1

Page Tools

  • Show page
  • Old revisions
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki