Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Problem with writing data to SD card in DK-TM4C129X

$
0
0

Hello forum,

I'm having problems while a try to write something in an SD card of a DK-TM4C129X dev board. What my code is to read the value of 2 analog inputs (2 potentiometers) and the value of the TMP100 sensor (through I2C) and write them in a .txt file in an SD card. While testing, when I skip the part in which I write the data in the .txt file, everything works fine, e.g. I can successfully mount the drive (with f_mount()) and open a .txt file (with f_open()). But, when I include the portion of the code in which I write the data in the file, I get the following error: "No source available in 0x******" and the program only mounts the drive, but cannot open a file. While debugging, I figured out that the program flow stops when the ROM_SSIConfigSetExpClk(SDC_SSI_BASE, systemClock, SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, i, 8); function is called into the set_max_speed() function in the diskio.c file of the FatFs library by ChaN. I've tried some things in order to solve this problem but I haven't done it yet. Do you have something to suggest? I attached my code in order to understand me better.(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>