false

Stm32 fatfs spi example

c as there was no B92 example in the library. Report 3 years, 10 months ago. For the sake of this tutorial we will see how to create CMSIS and SPL based STM32F103C8 Keil uv5 project, as an example, but will work exactly the same for STM32F0, STM32F4, and other families. As it is the first call of this function the disk number is set to 0. Those functions were enumerated in my blog post. In this tutorial, I will explain how to use SPI in STM32F103 as a master, and for the slave I will use Arduino. STM32F407VET FatFs f_close returns FR_DISK_ERR. 10 with the port from StellarisWare named mmc-dk- lm3s9b96. You can look at the new SPI driver code in this folder. Fatfs SPI Flash File System. In many microcontroller projects, you need to read and write data. . While these families share many peripherals, some care is needed when moving projects between these families. [18, 17, 16] SD and MMC cards support various protocols, but common to them all is one based on SPI. Also we will do some basic file handling operations such as creating a file, writing, reading, deleting etc. g. The example code provided is for an ATmega128 so the I²C specifics needed to be changed, I used the ST library functions. I am using STM32F4-DISCOVERY board and STM32CubeMX ver. Some usefull libraries for STM32. using FATFs PE component. I am writing the data to the file using fwrite function. STM32_SPI_SDCARD - STM32 FatFS + SD Card Example via SPI interface. FatFs is a generic FAT file system module for small embedded systems. The FatFs module is written in compliance with ANSI C (C89) and completely separated from the disk I/O layer. Anyway, I agree, it would be a good idea to mention this in the documentation. Software side - use FATFS, there is an  kart pamięci SD i modułu FatFs w połączeniu z mikrokontrolerami. STM3210E-EVAL evaluation board. To make our task more difficult I’ve decided to use four SPI modules and respectively four different DMA channels. The low level disk I/O module is not a part of FatFs module so that it must be provided by user - in the case of our application, these are the SPI bus communication routines for the EFM32 (sample drivers are available in the original FatFs resources). h configuration example 129076 downloads 0. Contribute to eziya/STM32_SPI_SDCARD development by creating an account on GitHub. First of all recommend to use an oscilloscope for your SPI signals - these must be your  A library to allow SD Cards to be accessed as a filesystem, using an SPI interface . . STM32F103 SDCard FATFS. To work with files, you have to use fatfs library. I will cover HAL based projects in another tutorial. Library is distributed in binary form for most popular compilers (Keil/ARM, IAR STM32 FatFS + SD Card Example via SPI interface. FatFs is a generic FAT file system. 11 авг 2017 SPI. Bài này sẽ hướng dẫn các bạn giao tiếp đọc/ghi file text với thẻ nhớ thông qua chuẩn giao tiếp SDIO và sử dụng thư viện FATFS Link download project: https:// This tutorial shows how to use the SPI interface of the STM32 devices using the STM32CubeMX HAL API. This tutorial covers basic features of STM32’s internal RTC and how to use it for time-keeping applications. It allows the counter to be started in response to a stimulus and to generate I guess its problems with my card. We will be doing mostly reading of SDcards at relatively high rates (i. 0. STM32 libraries based on STM32Fxxx HAL drivers. But is this the only way when using Xmega series? For example, Atmel studio provides an example where this is used but I am not convinced it is entirely for SD card interface. Hi, im trying to make fatfs working on stm32 vl discovery. 3 is currently being used. #stm32cubemx #stm32 #spi #fatfs #sd #sdio February 2019 UM1721 Rev 3 1/27 UM1721 User manual Developing applications on STM32Cube™ with FatFs Introduction The STM32Cube™ is an STMicroelectronics original initiative to make developers’ lives When i look at my whole STM32 and CubeMX experience to date, and i could add one thing to cubemx, it would be a checkbox for FatFS/SPI, and simple SD card access on breadboard or with breakout, that worked as good as the many SPI device breakouts i have and use without any issues. Frame, thus it is easy to embed the terminal emulator into any wxPython GUI. We continue to improve our STM32Cube course and today we’ll speak about the combined use of SPI and DMA peripherals. Viktorija Reading and writing to a file on sd card using stm32 discovery kit. Some strange card called 'dane-elec' . STM32 MCUs come with built-in RTC modules that require no additional hardware support. STM32 and SD card (FATFS and SPI) 1. I understand how to use the DMA peripherals to transfer the data, and how to enable the DMA interrupts so they are triggered when the transfer is complete. Fatfs supports get_fattime() function, which returns time in integer format. Greetings all, I am trying to make STM32F4 (on STM32F4 Discovery board) write a text file on an SD card, but with no success at all. FatFS disk_read() / disk_write() DMA STM32Posted by *anonymous on May 24, 2012I am using a STM32 Cortex-M3 and just recently got FatFS up and running with a SD card in SPI mode. CMD12. I can create and access the files in sub-directory. Integrate FatFs file system with SPI NAND flash driver for Toshiba memory. The FatFS module uses a logical organization of 16384 sectors of 1KB size. Open file should be closed with f_close function after the session of the file access. FATFS. 00 KB. UM1718 User manual STM32CubeMX for STM32 configuration and initialization C code generation Introduction STM32CubeMX is a graphical tool for STM32 microcontrollers. Custom get_fattime() function. 1. STM-E407 is a low-cost entry board for developing custom applications with STM32F407ZGT6 Cortex M4 microcontrollers from ST. Thanks . It can be incorporated into low cost microcontrollers, such as AVR, 8051, PIC, ARM, Z80, 68k and etc, without any change. Device support is being actively extended, and future STM32 families will be launched with STM32Cube support. Имеется два варианта Комментарии (10) на “STM32 Работа с библиотекой FatFs”. How to design a custom board using an STM32 MCU. Panel instead of wx. 24 May 2012 I am using a STM32 Cortex-M3 and just recently got FatFS up and running For example, if a low priority thread grabs the semaphore and is about to the IO so you would use the DMA interrupt rather than the SPI interrupt. 4. The application code is portable to CC1350. this document was useful for me as I ported FatFs + SPI SD card code to a KL27 microcontroller. FatFs Middleware. ChibiOS 2. These fields are accessed by your software through the CAN controller registers. All content and materials on this site are provided “as is“. Forums » System Workbench for STM32 » STM32L0538 using FATFS with SPI » STM32L0538 using FATFS with SPI You are viewing a reply to STM32L0538 using FATFS with SPI Thread actions FatFs needs you provide a low-level driver to do its I/O, so yes of course it'll support SPI. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property eziya/STM32_SPI_SDCARD. Read about 'STM32F4 Discovery - problem interfacing SD card' on element14. Feature of STM32 RTC Block. Using FatFS on internal Flash of STM32. The STM32 family of 32-bit microcontrollers based on the Arm® Cortex®-M processor is designed to offer new degrees of freedom to MCU users. The CD (card detect) pin is optional and not used in the example program,  В этом примере работа с картой ведется через SPI. STM32L0538 using FATFS with SPI Posted by Gmaucotel on 2017-02-24 20:26 Hi, I’m trying to read a memory card with FATFS through SPI, so I generated a project with CubeMX on my board (L0538-discovery). For more info on DMA check out the Wikipedia entry. The FSMC NOR Flash/SRAM bank is suitable for MCU parallel color LCD interfaces. I'm tring to read microSD card with #MSP430 controller and FatFs in SPI mode. Thread 62591: Hello,i would like to use FatFS on a part of the internal Flash of anSTM32F7 Processor. I recently played with an Ethernet shield for the network connection, but since the shield also contains a microSD card slot, I wanted to access the SD card to read/write files. AN2576 Application note STM32F10xxx SPI application examples Introduction This application note is intended to provide practical application examples of the STM32F10xxx SPI peripheral use. Часть  Can someone please point me in the right direction or post some examples on how to glue HAL SPI functions to FatFS? Right now I see that  The easiest way if of course SPI. The example code for stm32f103RC interface with sd card, based on FATFS library. I don't have logic analyzer and i cant debug. Intended as a module for small embedded systems, the FatFs is written in compliance with ANSI C and separated from the disk I/O layer completely. The FatFs is written in compliance with ANSI C and completely separated from the disk I/O layer. Best FAT32 file system MDD or FatFS? All, We are putting a FAT32 file system into our PIC32 project and are wondering if the Microchip MDD or FatFs is the way to go. The usage is very simple and straightforward. However, the information there is so old that most of it is obsolete. 100% 1There are currently five families of STM32 MCUs – STM32 F0, STM32 F1, STM32 L1, STM32 F2, and STM32 F4 supported by different, but structurally similar, firmware libraries. 0), now with FatFs + SPI SD card code . I suppose that my fault can be localized in the FatFS module. Any projects, examples or documentation on how to implement this would be  21 Jul 2018 http://www. For Stellaris Tempest devices - are there any examples to access an SD card using the FATFs file system that are a bit more broken down than the SD_card example in stellarisware? The example is okay, but something simpler without extra graphics stuff would be helpful. It offers products combining very high performance, real-time capabilities, digital signal processing, and low-power and low-voltage operation, and connectivity, while maintaining full integration and ease of development. I would like to modify the disk_read() and disk_write() functions to use DMA transfers. 600MBs max) using 2 DMA channels over SPI. And in the FATfs example project they never used SPI comms. zeruje kartę, pozwala włączyć tryb pracy z magistralą SPI. SD. Biorąc pod . lmgtfy. I can't seem find any actual implementation that works, so if anybody could point me in the right direction, that would be great. Others have managed to use Fatfs as it is. This USB example project implements a Mass Storage Device (Memory Stick) that connects via the USB interface to the PC. FatFS is supported through two demos (LPC214x and STM32) and a generic MMC/SD driver. It is pretty much similar to the example presented by PySerial itself. 2 and the ASF libraries "SD/MMC stack on SPI interface" and "FatFS file system". The objective of this lecture is to learn about Serial Peripheral Interface (SPI) and . In a demo Application I have successfully created a file, written a file, and read back from the file. 2018年3月21日 早两天往Stm32上移植Fatfs文件系统,花了一些时间;; 后面又花了些时间 #define DEV_USB 2 /* Example: Map USB MSD to physical drive 2 */. this turn around for stm32 would waste some time, i. Some STM32 chips have as many as five SPI controllers. 08a. In another case maybe you need to send chunks of data using SPI. that stm32 can't speak to both the usb and spi interface at a same time. If any change to the file is made and not closed prior to power down, media removal or re-mount, or the file can be collapsed. 4 Jan 2014 I'm using Chan's FatFs R0. SPI is working, but I am having issue linking SPI low level drivers to FATfs. So it can not be that hard :) In the end I am guessing that the reason for my troubles must be SPI initializing Even so, implementing the FAT32 logic is a considerable effort, taking a lot of time to do from scratch. Maybe you can help me, or maybe anyone can share a working code on discovery board? Heres my code FAT filesystem on SD card The following article describes the SPI interface of an SD card to a STM32F0 Discovery board with FAT filesystem support. Objective The objective of this lecture is to learn about Serial Peripheral Interface (SPI) and micro SD memory cards. The embedded RTC of a STM32 micro is an independent binary-coded-decimal (BCD) timer counter. STM32 and SD card (FATFS and SPI) The quickest way to do that is to try an example. With FATFS, you can make folfer, write and read file on sd card very easy. The STM32 USBMem example program shows how to configure and use the USB peripheral of STMicroelectronics STM32F103xx microcontroller. But how can I assign the SD card storage to the MSD component? This is the physical organization of the FLASH. SD-FatFS-SPI-stm32f103 The program is based on STM32F103VC, using its SPI SD card read and write operations. Therefore it is independent of hardware architecture. The pin connection of stm32 discovery board is SPI+SD+FAT on 8051 example. 2. With CubeMX I generated code that has HAL SPI and FATfs. The card adapter I'm using works with SPI and I know how to initialize the SPI and how it works, although there is a bunch of lower level code for the FATFS(not a 100% yet with using it) and I'm looking for an easy way to be able to implement F_mount,open,read stm32 adc dma uart, stm32 adc dma tutorial, stm32 adc dma timer, stm32 adc example code, stm32 adc example hal, stm32 adc external reference voltage, stm32 adc hal example, stm32 adc injected mode serial peripheral interface (SPI), and external memory controller (EMC). 161 . 3 Aug 2015 STM32Fxxx HAL; defines. They are quite widely available and have some example code, I bought mine from Cool Components here: TMP102. Interface SD CARD with SDIO in STM32. Please note that, although this tutorial focuses on SPI, DMA in the Maple can be used for other functionalities besides SPI. Probably a problem of compiler options. SPI Introduction SPI bus sniffer I2C bus sniffer 1-wire sniffer AVR910 programmer. The example code I currently use is the composite msd cdc example (KSK 2. I am not sure if SPI protocol is the only one publicly available. FatFs is a generic FAT/exFAT filesystem module for small embedded systems. if the data received from the sd card could be handled by dma, then stm32 could focus on pushing the data out over usb to the host which has a limit of 10 mbps full Working with FATFS (f_mount not working in main loop) Hi everyone, i'm having problems including FATFS library in my project in code below: FATFS FatFs_USB_MSD ; unable to read large file with Fatfs using f_read() and f_gets() #MSP430. As a starting point you can grab the Stellaris Fatfs lib and adapt the diskio driver from Petit Fatfs (based on Energia SPI library). 11. The example code for STM32F103RC interface with SD Card, based on FATFS library. Description. HAL Library 20- FATFS for STM32Fxxx by tilz0R · August 3, 2015 FATFS library (HAL LIB 20) is a “generic” library for all FAT related implementations, such as SDCARD, USB FLASH, SPI FLASH and also SDRAM can be used with proper FAT initialization. I noticed It takes around 2. Multi-Drive Support with the FatFS Component. You'd just have to handle the pinmux and driver The STM32 USB-FS-Device development kit is a complete firmware and software package including examples and demos for all USB transfer types (control, interrupt, bulk and isochronous) The firmware is compatible with major IDE toolsets for ARM core-based microcontrollers and offers consistency in naming and variable access to facilitate Further I use Atmel Studio 6. If you search the F4's Cube FW, expect you'd find an example that pretty much does it all. Fatfs SPI Flash File System - Stack Overflow. 0. Here is where FatFS comes to help! About FatFS. This not only speeds up the speed of SPI (since it is completely hardware operated) but at the same time allows you to run code in parallel of the data transmission. In addition, Atmel supplied a library for SPI peripheral. Thanks for your reply. Most of the hobbyist/hacker applications you will see on the web use the SD card in SPI mode because the SPI interface is pretty universal and was the only interface that was publicly documented by the SD Association for a while. With CubeMX I generated HAL code that has SPI and also includes FatFS. for write buffers, if you want to assign a non constant object to it, you need either to relax type checking or use a type cast. How can i use the Filsystem Component on theinternal Flash using the NAND-Driver?Any hints apreciated!LG MS ), and opened an example project. STM32 SPI Transmit/Receive Using HAL Hello, I am working with an STM32F446 and trying to use the spi peripheral using HAL libs, but my program keeps crashing Hey everyone, Is there anyway to couple the FATFS and SDMMC to spi. And the FATFS_LinkDriver() function is exactly what binds the SD_Driver struct and the current FAT disk number. I cant even init it with my old code without chibios. I am using a STM32 Cortex-M3 and just recently got FatFS up and running with a SD card in SPI mode. I couldn't seem to find an example project to reference which used both the SD SPI module and the Fat file system module. Too bad the Due doesn't have multiple SPI pins, almost all Cortex M chips now have multiple SPI controllers. In main. I would like to implement FatFs on my STM32 MCU with SPI Flash, W25Q16JV. Refer to AT91SAM7s datasheet to read more detail about SPI protocol on AT91SAM7S256 MCU. This application note describes: • How to port and use the FatFs file system on the se rial flash connected to the SPI interface of the SmartFusion Evaluation Kit Board and the SmartFusion Development Kit Board • Configuration options of the FatFs SD cards support two interfaces: the native SD interface and a one-bit SPI interface. Software Bitmap converter for LCD Modbus Master Simulator : STemWin STemWin library is customized version of Segger emWin library dedicated for use only with STMicroelectronics STM32 microcontrollers. Apparatchik:. I'll point you to an example on Monday (I need to polish it up a bit). 2 STM32 SPI Peripheral . Contribute to SL-RU/stm32libs development by creating an account on GitHub. stm32f4 usb host and device This post is a result of several hours of hard work, thinking, planning, trial-and-error, debugging, and searching the internet for working code in order to make the USB peripheral of a STM32 act as an USB device (mass storage) and HOST (mass storage too). Exercise 16. e. Although STM32CubeMX offers a user interface and generates a C code compliant with STM32 MCU design and firmware solutions, it is recommended to refer to the product technical documentation for details on actual implementation of microcontroller peripherals and firmware. STM32 FatFS + SD Card Example via SPI interface. It is allready possible to just write and read with the sd/mmc module by spi but without file system. By changing the hardware layer you tell FatFS which interface it should use to communicate with the SD card. I want to read/write data to SD card via SPI. We will configure the SPI in several different modes, show how they affect the generated signal and setup the double-buffered mode to demonstrate continuous uninterrupted mode. Of course, we’ll also create an example for STM32 microcontrollers. I want to write around 50 bytes of data 50 times a second. You can see the software connection of MCU with SD Card via SPI interface. SPI. How to get largest free contiguous block of memory in FatFs. This is the one used here as, whilst not being the most high performance, it uses a generic SPI interface so will be more portable. For example, there is a single download that provides everything needed for STM32F4 parts, and a separate single download that provides everything needed for STM32F0 parts. Disclaimer. FatFs: Quad-SPI NOR Flash memory library. The ST Nucleo is an Arduino-like board with an STM32 as the microcontroller, and many Arduino shields can be mounted on it. Contribute to eziya/ STM32_SPI_SDCARD development by creating an account on GitHub. The generated code via STMcube seems to be either 1 or 4-bit SDIO. 1) Installing prerequisite STM32 Keil software pack. github. FatFs is using const attribute e. This document, its associated firmware, and other such application notes are written to accompany the STM32F10xxx firmware library. #stm32cubemx # stm32 #spi #fatfs #sd #sdio I have written many posts about  20 Oct 2018 5V or 2. So, let’s begin immediately! 🙂 The concurrent access to the FAT is managed by the FatFS component itself as described in this application note. First you initialize the SPI and you can use the FatFS functions. Maybe im doing something wrong, but i cant get cmd_tree working. 10 Jul 2014 Fatfs by Chan supported, version R0. 5 Example: Interrupt Driven Serial Communications . It can be incorporated into low cost microcontrollers, such as AVR, 8051, PIC, ARM, Z80 and etc, without any change. 6 . Hello, i would like to use FatFS on a part of the internal Flash of an STM32F7 Processor. Add FatFS to more architectures just requires a SPI driver into the HAL. The way how Processor Expert components are implemented made it pretty easy to extend the existing FatFS component from using a single drive to a ‘multi-drive component’: Instead linking to a single ‘memory’ or ‘drive’ component, I changed the interface to use a ‘list of drives’: stm32f103 sdcard FATFS. However in this case, the UI is built on wx. The program is written using wxPython to create a simple terminal emulator. I added the option to enable "SPI transactions" so users can try to use the SPI bus in interrupt routines. We will use this library to implement I/O driver for FatFs. If duplicated file open is needed, read here carefully. FATFS Продолжаем работать с народной отладочной Главная › Программирование STM32 › STM Урок 88. Generate code and then read STM32 FATFS guide – SamR Feb 21 '17 at 22:36. This example shows the Flash 3 click write routine. I connected sd card to spi1 . h; FATFS; TM SPI when SPI is used as SDCARD interface; TM DELAY when SPI is used Check example for more info how to use this aliases. STM32 FatFS + SD Card Example via SPI interface. is it possible to initialize the FatFS module to work with SPI interface in cubeMX tool? The SD card option in the FatFS middleware is available only when I am enabling the SDIO peripheral. STM32. some times 49 times the data is written and some times 50 times. Advanced debugging techniques and how to use SEGGER tools to debug STM32 MCUs. 11; Support for SDIO or SPI interface defines. If you use CubeMx and configure SPI to access SD card, the pins are not be exact - but paths are similar) and you will find the examples. com you can refer this document https://www. 5 Multithreaded FatFS . The example is on a TM4C129x board and using an AT45DB NOR SPI Flash device. It works on most of the platforms. With FATFS, you can make folfer, write and read file on SD Card very easy. You can see the software connection of MCU with sd card via spi interface. Example 3: Manipulate files on the SD card using the FatFs file system. The CAN frame has many fields but we can simplify this to a Programming Model as shown. com?q=SD+Card+SPI+STM32 code under the HAL BSP directories, and some FatFs code in the Application directories. Fatfs. However, i am stuck as the internal Flash does not have ALE and CLEAdresses that i know of. Ask Question Editing FatFS generic example for dsPIC. 30 янв 2014 Разбираясь к контроллером STM32 встала задача подключения внешней памяти, а точнее SD карты, как наиболее простого и удобного  The code below This KBA will give a general description about the relation between FatFS, SDIO/SPI SD card driving and the chosen FatFS SD example code. And I am not facing the mentioned issue while writing to SD card. I have uploaded the sample example based on fatfs example in SDK12. There is an example in one of the updates to this post. August 12, 2019 admin ARM, Embedded, STM32, uart No Comments. How to develop IoT applications with the W5500 Ethernet processor. ELM - FatFS - version R0. I am trying to make small data logger project with STM32F072 as an opportunity to get more familiar with STM's HAL. Arduino Library to gets the Manufacture Serial Number from the Atmel AVR, SAM, SAMD, STM32, and ESP Microcontroller. FreeRTOS and the tickless low-power mode. FATFS integration on SPI NAND FLASH. When an application task operates on a file or directory, FatFS translates that operation in a set of read and write operations on one ore more sectors. So the hardware works correctly. SD Cards are block devices. com. Offline M S over 2 years ago. In this tutorial we will interface a SD card with stm32 micro controller using SPI mode. How program SD card on SDIO interface and HAL library for stm32f4xx? CubeMX generate initcode for SD-card and sdio: On my old website, the article "MMC/SD Card and FAT Tutorial" was really popular (it still holds almost top ranking on Google). 6. It can be reading data from the peripheral unit like ADC and writing values to RAM. Thanks. i'm not too sure if usb or spi is dma enabled, e. microsemi. The HAL provides, among other things, off-the-shelf support for SD cards via both SDIO and SPI and integration with the FatFS library, GPIO configuration and asynchronous transfers on SPI and I 2 C and serial ports, with built-in support for DMA usage to offload transfers and save the CPU for computation. 20 Oct 2018 Read about 'Anyone has STM32F0 SPI eeprom example? . The Petit lib is more "Arduino style" and it works both on MSP430 and Stellaris Launchpads without any change. I have ported FATFS for Free RTOS on STM32F103 SPI Flash of 32 Mbit. Having successfully interfaced the ILI9341 TFT display to STM32F0 Discovery board I felt the need for a bigger data memory, so I thought about using a SD Memory Card because they are popular and Here, we use the SPI protocol for communication between SD card with the host system (the evaluation board). I have one more query mentioned in Lecture 12: SPI and SD cards EE-379 Embedded Systems and Applications Electrical Engineering Department, University at Buffalo Last update: Cristinel Ababei, March 2013 1. As per your suggestion I have used the f_chdir() function. 25 Mar 2015 6. Yes, it is possible to use TI-RTOS's SPI module and FatFS to talk to a SPI EEPROM/Flash device. In this way each physical block of the FLASH is composed by 128 sectors. c I call the following functions: Timer one pulse mode One pulse mode (OPM) is a particular case of the input capture mode and the output compare mode. 10 ms to write, obviously it is very less but due to this I am not able to get proper 50 Hz writing frequency. My SPI clock frequency is 8 Mhz. If we’ll decide to use one more disk, for example, NAND, we should pass number “1” into this function. In the SD SPI module they seem to just write to sectors of the SD card, without using any sort of file system at all. com/document-portal/doc_view/129816-ac360-smartfusion-csoc-implementation-of-fatfs-on-serial-flash-app-note . If already installed, you can SKIP this. However duplicated open of a file with any write mode flag is always prohibited. The STM32 flexible static memory controller (FSMC) is an embedded external memory controller that allows the STM32 microcontroller to interface with a wide range of memories, including SRAM, NOR Flash, NAND Flash and LCD modules. This board has plenty of resources and all GPIO ports are available on extension connectors, an ARDUINO compatible platform connector is also available. I am using STM32F103C8 controller and SD card size is 1 GB. In order to get it work properly, you should check it’s manual here. The booting process in STM32 microcontrollers and how to write a custom bootloader. All I have running for now is a main loop printing the temperature data onto the LCD… just to test it works really. My library is used only for “behind the scenes” settings, to get communication with SD card properly. stm32 fatfs spi example

sawae, 0sfc48v, xsr6trj, fs4yai, x2, rqo, ymg0qf, wwuxaxw, ahn, fmxskm, 78fybd8r,