RadioLocman.com Electronics ru
Advanced Search +
  
Go Back   RadioLocman Forum > Electronics and ... > Microcontrollers (MCU)

Microcontrollers (MCU) Application and programming of MCUs, Evaluation Kits and Demonstration Boards, Programmers.

Reply
 
Thread Tools Search this Thread
Old 02-04-2016, 12:15 PM   #1
crazy-igzp
Junior Member
 
Join Date: Jan 2016
Posts: 6
crazy-igzp is on a distinguished road
Default How to connect with MX_FATFS_Init on STM32F107?

Guys,

I have a question on connecting FATFs with my low level driver on STM32CubeMx ?

Thanks
crazy-igzp is offline   Reply With Quote
Old 02-07-2016, 11:12 AM   #2
Anatoly
Member
 
Join Date: Oct 2013
Posts: 58
Anatoly is on a distinguished road
Default

Is it a secret question to be asked in public forum?
Anatoly is offline   Reply With Quote
Old 02-08-2016, 05:50 PM   #3
crazy-igzp
Junior Member
 
Join Date: Jan 2016
Posts: 6
crazy-igzp is on a distinguished road
Default

Quote:
Originally Posted by Anatoly View Post
Is it a secret question to be asked in public forum?
I got FR_OK on f_mount but

f_open(&MyFile, "test.txt", FA_READ); I got FR_INVALID_OBJECT

What do I miss here ?
Code:
UINT bw,size;
	FRESULT fr;    /* FatFs return code */
	char line[82]; /* Line buffer */
	uint32_t wbytes; /* File write counts */
  uint8_t wtext[] = "text to write logical disk"; /* File write buffer */
  
f_mount(&mynewdiskFatFs, (TCHAR const*)mynewdiskPath, 0);
		/* Open a text file */
		
	   f_open(&MyFile, "STM32.TXT", FA_CREATE_ALWAYS | FA_WRITE);
	   f_write(&MyFile, wtext, sizeof(wtext), (void *)&wbytes);
	   f_close(&MyFile);
crazy-igzp is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect a stepper motor to a bipolar driver Anatoly Projects and Advices 2 07-04-2015 05:04 PM
How do i connect a reed switch to a microprocessor? Jon Microcontrollers (MCU) 1 06-10-2015 02:37 PM
How to write data to the Eeprom segment ? Jon Microcontrollers (MCU) 3 05-27-2015 10:54 AM
How to connect the led power 10 W ? mark Beginners 1 05-20-2015 11:47 AM
Connect LEDs to the 220V mark Beginners 3 11-30-2013 11:08 AM

All times are GMT. The time now is 02:19 AM.




Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Slices ↓
Radiolocman facebook Radiolocman twitter Radiolocman google plus