{"id":19973,"date":"2025-12-15T11:13:41","date_gmt":"2025-12-15T03:13:41","guid":{"rendered":"https:\/\/icop-shop.com\/?p=19973"},"modified":"2026-01-05T17:46:31","modified_gmt":"2026-01-05T09:46:31","slug":"technical-tips-how-to-test-the-spi-bus-on-nx8mm-35","status":"publish","type":"post","link":"https:\/\/icop-shop.com\/zh\/technical-tips\/technical-tips-how-to-test-the-spi-bus-on-nx8mm-35\/","title":{"rendered":"[Technical tips] How to test the SPI bus on NX8MM-35"},"content":{"rendered":"<div class=\"usbfreedos-section1 row\">\n<div class=\"col-xs-12\">\n<p>This article will tell you how to test the SPI bus on the NX8MM-35 in Yocto Linux.<br \/>\nThe SPI bus is an optional feature supported on ICOP&#8217;s\u00a0<a href=\"https:\/\/icop-shop.com\/zh\/product\/nx8mm-35-42cmebg2\/\" target=\"_blank\" rel=\"noopener\">NX8MM-35<\/a>, and it shares functionality with UART3 on the board.<br \/>\n\u5728\u4ee5\u4e0b\u63d0\u793a\u4e2d\uff0c\u6211\u5011\u5c07\u9010\u6b65\u63d0\u4f9b\u6307\u5f15\u3002<\/p>\n<hr \/>\n<\/div>\n<\/div>\n<div class=\"usbfreedos-section2 row\">\n<div class=\"col-xs-12\">\n<h2>\u60a8\u9700\u8981\u7684\u5de5\u5177\uff1a<\/h2>\n<ol>\n<li>NX8MM-35 (Find it\u00a0<a href=\"https:\/\/icop-shop.com\/zh\/product\/nx8mm-35-42cmebg2\/\" target=\"_blank\" rel=\"noopener\">\u6b64\u8655<\/a>)<\/li>\n<li>Yocto Linux 4.0:<a href=\"https:\/\/ftp.icop.com.tw\/share\/x4hhQ1rp\" target=\"_blank\" rel=\"noopener\">\u6620\u50cf\u6a94<\/a>\u00a0\/\u00a0<a href=\"https:\/\/wiki.icop.com.tw\/product\/index.php\/How_to_Restore_Yocto_Linux_4.0_to_the_eMMC_on_NX8MM-35\" target=\"_blank\" rel=\"noopener\">\u6307\u5357<\/a><\/li>\n<li>USB to micro USB cable for restoring image.<\/li>\n<li>SPI Testing file (Put it in a USB disk):\u00a0<a href=\"https:\/\/ftp.icop.com.tw\/share\/8NdTKZ-H\" target=\"_blank\" rel=\"noopener\">link<\/a><\/li>\n<li>A testing wire to test SPI bus self-transmitting.<br \/>\n<img fetchpriority=\"high\" decoding=\"async\" class=\"normalImg img\" src=\"https:\/\/www.icop.com.tw\/datas\/upload\/files\/NEWS\/Resources\/How%20to%20test%20the%20SPI%20bus%20on%20NX8MM-35\/testingwire.jpg\" width=\"200\" height=\"300\" alt=\"\" title=\"\"><\/li>\n<li>Soldering iron for switching UART3 function to SPI bus.<\/li>\n<\/ol>\n<h2>Switching the UART3 to SPI bus on NX8MM-35.<\/h2>\n<p>On NX8MM-35, the UART3 and SPI bus can be switched by modifying the resistor on the board.<br \/>\nPlease follow the image below and use the soldering iron to move the 0 ohm resistor to the correct location.<\/p>\n<p><img decoding=\"async\" class=\"normalImg img\" src=\"https:\/\/www.icop.com.tw\/datas\/upload\/files\/NEWS\/Resources\/How%20to%20test%20the%20SPI%20bus%20on%20NX8MM-35\/NX8MM-35C_SPI_UART3_switch.png\" alt=\"developer-mode\" title=\"\"><\/p>\n<h2>Test the SPI function in Yocto Linux.<\/h2>\n<p><img decoding=\"async\" class=\"normalImg img\" src=\"https:\/\/www.icop.com.tw\/datas\/upload\/files\/NEWS\/Resources\/How%20to%20test%20the%20SPI%20bus%20on%20NX8MM-35\/boardoutlinewithwire.jpg\" alt=\"\" title=\"\"><\/p>\n<pre> .\/spidev_test -D \/dev\/spidev3.0 -v -p xxx<\/pre>\n<p>In this case, we type .\/spidev_test -D \/dev\/spidev3.0 -v -p SPITESTING, and if the test succeed, it will show the &#8220;SPITESTING&#8221; in the test result.<\/p>\n<ol>\n<li>Plug testing wire to the J12 (SPI bus) on NX8MM-35.<\/li>\n<li>Plug the USB disk with SPI testing application in the NX8MM-35 and turn it on; then open the terminal in Yocto Linux.<\/li>\n<li>Mount the USB to Lunix and access the USB file.<\/li>\n<li>Run below command in the USB file:<\/li>\n<\/ol>\n<p>For the steps above, you could find all of the information in the image below:<\/p>\n<p><img decoding=\"async\" class=\"normalImg img\" src=\"https:\/\/www.icop.com.tw\/datas\/upload\/files\/NEWS\/Resources\/How%20to%20test%20the%20SPI%20bus%20on%20NX8MM-35\/testimage.jpg\" alt=\"developer-mode\" title=\"\"><\/p>\n<h2>Check the video:<\/h2>\n<div><\/div>\n<hr \/>\n<\/div>\n<\/div>\n<div class=\"col-sm-12\">\n<div class=\"col-sm-4 productSpec\"><a href=\"https:\/\/icop-shop.com\/zh\/product\/nx8mm-35-42cmebg2\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"productImage\" src=\"https:\/\/www.icop.com.tw\/datas\/upload\/files\/Product\/SBC\/NX8MM-35\/NX8MM-35-SIDE-WEB.jpg\" alt=\"NX8MM-35\" title=\"\"><\/a><\/div>\n<div class=\"col-sm-8 productSpec\">\n<div>\n<h3>\u4e3b\u8981\u7279\u9ede\u00a0<a href=\"https:\/\/icop-shop.com\/zh\/product\/nx8mm-35-42cmebg2\/\" target=\"_blank\" rel=\"noopener\">NX8MM-35<\/a>:<\/h3>\n<ul>\n<li>NXP i.MX8M Mini\uff0c\u56db\u6838 1.6GHz ARM Cortex-A53 \u8655\u7406\u5668<\/li>\n<li>2\/4GB LPDDR4 onboard<\/li>\n<li>COM \/ 2U \/ GLAN \/ Audio \/ eMMC \/ MiniPCIe<\/li>\n<li>9\u2033 TFT 1024\u00d7600 \u89e3\u6790\u5ea6 LCD\uff0c\u642d\u914d\u96fb\u963b\u5f0f\u89f8\u63a7\u87a2\u5e55<\/li>\n<li>\u5de5\u4f5c\u6eab\u5ea6: 0 ~ +60\u00b0C<\/li>\n<li>eMMC-16GB \u677f\u8f09<\/li>\n<li>Micro SIM \u5361\u5ea7\u7684 MiniPCIe \u63d2\u5ea7<\/li>\n<li>\u5bec\u96fb\u58d3\u8f38\u5165\uff0c+12~36Vdc<\/li>\n<li>\u7121\u7dda\u5340\u57df\u7db2\u8def &amp; \u85cd\u7259<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"emi-sectionEnd row\">\n<div class=\"col-sm-12\">\n<hr \/>\n<p>\u5982\u679c\u60f3\u4e86\u89e3\u76f8\u95dc\u8cc7\u8a0a\u53ca\u9700\u6c42\uff0c\u8acb\u9ede\u9078\u8a0a\u606f\u65bc\u6b64\u8655\u00a0<a href=\"mailto:info@icop.com.tw\">info@icop.com.tw<\/a>\uff0c\u6216\u81f4\u96fb\u96e2\u60a8\u6700\u8fd1\u7684\u00a0<a href=\"https:\/\/www.icop.com.tw\/branches\" target=\"_blank\" rel=\"noopener\">ICOP \u5206\u516c\u53f8<\/a>\uff0c\u6216\u806f\u7e6b\u6211\u5011\u7684\u00a0<a href=\"https:\/\/www.icop.com.tw\/distributors\" target=\"_blank\" rel=\"noopener\">\u5168\u7403\u5b98\u65b9\u7d93\u92b7\u5546\u3002<\/a><\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This article will tell you how to test the SPI bus on the NX8MM-35 in Yocto Linux. The SPI bus is an optional feature supported on ICOP&#8217;s\u00a0NX8MM-35, and it shares functionality with UART3 on the board. In the tips below, we will provide the guide step by step. Tools you [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":19974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"default","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[284],"tags":[319,397,399,398],"class_list":["post-19973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-tips","tag-nx8mm-35","tag-nxp","tag-spi-bus","tag-yocto-linux-4-0"],"_links":{"self":[{"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/posts\/19973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/comments?post=19973"}],"version-history":[{"count":2,"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/posts\/19973\/revisions"}],"predecessor-version":[{"id":20032,"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/posts\/19973\/revisions\/20032"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/media\/19974"}],"wp:attachment":[{"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/media?parent=19973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/categories?post=19973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icop-shop.com\/zh\/wp-json\/wp\/v2\/tags?post=19973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}