Multiple Block Write SD protocol issue


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Multiple Block Write SD protocol issue

    Sorry for late reply, been away mostly, and have no knowledge about SD cards. But after doing some research for another thread, have you tried MeLabs SD Card SAMPLE program sdfs3.pbp?
    http://melabs.com/samples/PBP-mixed/sdfs3.htm


    Code:
    ' Write to file
    	FAT_src[0] = "A"                               <<--------  Just load up your array as you see fit from element 0
    	FAT_src[1] = "B"
    	FAT_src[2] = "C"
    	FAT_count = 3                                  <<--------  set to 512
    	Gosub FSfwrite
    	Serout2 PORTC.6, 84, [ "Write ", Dec FAT_error, $d, $a]
    	If (FAT_error != 0) Then Stop
    This sample program does it all for you. Just note it's using PBPL and PIC 18 (but you probably already know this).

    If you absolutely have to use your own code (for whatever reason), SDFS.PBP might provide insight at what is the correct procedure.

    Or am I missing something obvious?

    Robert
    Last edited by Demon; - 16th April 2016 at 15:11.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Easy way to do multiple write statements ?
    By Scampy in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th March 2016, 08:05
  2. Lcdout multiple variables issue
    By MarkEngineer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd February 2015, 14:51
  3. DT Multiple Software PWM and 18F2321 issue
    By microuser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2012, 08:23
  4. SD Multiple Write?
    By jimbostlawrence in forum General
    Replies: 1
    Last Post: - 21st October 2011, 17:45
  5. Code Issue - select case or 'if' issue - not sure why
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th October 2007, 08:52

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts