Using the FRDM-MK64 Board to write to an SD Card in KDS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using the FRDM-MK64 Board to write to an SD Card in KDS

Using the FRDM-MK64 Board to write to an SD Card in KDS

Writing to SD Card in KDS

 

Description:

 

A project made in KDS using the FRDM-MK64FN1M0VLL12 board to write to SD Card.

Every second, the time and the value of the variables x, y and z will be written to an SD Card.

They will be written in a log.txt file, which will be created if it does not exist.

x, y and z are set to 1, 2, and 3 by default.

 

Sections of code taken from http://mcuoneclipse.com/2014/05/26/tutorial-data-logger-with-the-frdm-k64f-board/

 

Issues:

 

Time will always begin at 17:51:31 after being flashed.

This is due to it being set as such at TmDt1_Init.

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1112232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUsing%20the%20FRDM-MK64%20Board%20to%20write%20to%20an%20SD%20Card%20in%20KDS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%20line-height%3A%201.5em%3B%22%3EWriting%20to%20SD%20Card%20in%20KDS%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDescription%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20project%20made%20in%20KDS%20using%20the%20FRDM-MK64FN1M0VLL12%20board%20to%20write%20to%20SD%20Card.%3C%2FP%3E%3CP%3EEvery%20second%2C%20the%20time%20and%20the%20value%20of%20the%20variables%20x%2C%20y%20and%20z%20will%20be%20written%20to%20an%20SD%20Card.%3C%2FP%3E%3CP%3EThey%20will%20be%20written%20in%20a%20log.txt%20file%2C%20which%20will%20be%20created%20if%20it%20does%20not%20exist.%3C%2FP%3E%3CP%3Ex%2C%20y%20and%20z%20are%20set%20to%201%2C%202%2C%20and%203%20by%20default.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ESections%20of%20code%20taken%20from%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIssues%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETime%20will%20always%20begin%20at%2017%3A51%3A31%20after%20being%20flashed.%3C%2FP%3E%3CP%3EThis%20is%20due%20to%20it%20being%20set%20as%20such%20at%20TmDt1_Init.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1112232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%20line-height%3A%201.5em%3B%22%3EWriting%20to%20SD%20Card%20in%20KDS%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDescription%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20project%20made%20in%20KDS%20using%20the%20FRDM-MK64FN1M0VLL12%20board%20to%20write%20to%20SD%20Card.%3C%2FP%3E%3CP%3EEvery%20second%2C%20the%20time%20and%20the%20value%20of%20the%20variables%20x%2C%20y%20and%20z%20will%20be%20written%20to%20an%20SD%20Card.%3C%2FP%3E%3CP%3EThey%20will%20be%20written%20in%20a%20log.txt%20file%2C%20which%20will%20be%20created%20if%20it%20does%20not%20exist.%3C%2FP%3E%3CP%3Ex%2C%20y%20and%20z%20are%20set%20to%201%2C%202%2C%20and%203%20by%20default.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ESections%20of%20code%20taken%20from%20%3C%2FSPAN%3E%3CA%20class%3D%22jive-link-external-small%22%20href%3D%22http%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fmcuoneclipse.com%2F2014%2F05%2F26%2Ftutorial-data-logger-with-the-frdm-k64f-board%2F%3C%2FA%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIssues%3A%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETime%20will%20always%20begin%20at%2017%3A51%3A31%20after%20being%20flashed.%3C%2FP%3E%3CP%3EThis%20is%20due%20to%20it%20being%20set%20as%20such%20at%20TmDt1_Init.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1112232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎07-01-2014 09:06 AM
Updated by: