element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MaaXBoard Hardware Design Testing and getting wrong data from SPI BUS on Maaxboard
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1 reply
  • Subscribers 324 subscribers
  • Views 980 views
  • Users 0 members are here
  • yocto image build
  • Maaxboard RT
  • spi
  • maaxboard
  • dts
Related

Testing and getting wrong data from SPI BUS on Maaxboard

zafersen
zafersen over 3 years ago

Hi,

I am working on spi bus on maaxboard's j10 expansion pin. According to the MaaXBoard-Hardware_UserManual-V1.2-EN.pdf, 19-21-23-24th pins on it are ecspi1 outputs. When I write data over spi, I can get correct data from the mosi line but the miso and cs lines are completely inaccurate. Something might be wrong with the document or there might be another device on the line. So I edited the device tree file and the problem with the cs line was solved by when I changed the cs pinout. I am going to share some pictures which indicate data on ecspi1

if possible, could you please tell me where to download the schematics for Maaxboard?

 

Thanks in Advance!!

ecspi pinout configuration in dts:

&ecspi1{
	fsl,spi-num-chipselects = < 1 >;
	cs-gpios = <&gpio5 13 1 >, <&gpio3 2 1 >;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_ecspi1 >;
	status = "okay";
	#address-cells=<1>;
	#size-cells=<0>;
	spidev@0x00{
		#address-cellss=<1>;
		#size-cells=<0>;
		compatible = "spidev", "semtech,sx1301";
		spi-max-frequency = <1000000>;
		reg = <0>;
	};
	anotherspidev@0x00 {
		//status = "disabled";
		compatible = "spidev", "semtech,sx1301";
		spi-max-frequency = <400000>;
		reg = <1>;
	};
};

the first image is when I use gpio5 13(default) as the cs pin 

the second image is when I use a different pin (gpio3 2) as the cs pin. 

d1=> MISO

d2=> MOSI

d3=> CS

d4=> CLK

pic-2

pic-3

  • Sign in to reply
  • Cancel
  • jafoste4
    jafoste4 over 3 years ago

    Hello Zafersen,

    Please reach out to your local Avnet FAE whom can request them upon your behalf.

    Thank you,

    Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube