closed

Loginbox

Please enter your username and password into the following fields to log in.


  • Username:
  • Password:
  •  
  • Auto log in on every visit.


  •  

FAT16_32 via SoftSPI



Harry offline
PowerUser
Avatar
Gender: male
Location: GERMANY  zwischen Augsburg und Ulm
Age: 55
Posts: 1656
Registered: 03 / 2003
Private message
Subject: FAT16_32 via SoftSPI  -  Posted: 27.06.2020 - 15:08   -  
Ich verwende gerade eine SD-Karte via Soft-SPI und habe folgendes festgestellt .....

funktioniert:
Code
  FAT16           = MMC_Soft, iData;
  F16_MMCPort     = PortA.3,PortA.1,PortA.2,PortA.0;
  F16_MMCspeed    = standard;               { standard, slow, fast             }
  F16_FileHandles = 1;
  F16_DirLevels   = 1;
  F16_StrLen      = 90;


Im Handbuch staht, daß das erlaubt ist:
Quote
Define
FAT16 = MMC_SOFT, iData;
F16_MMCport = PortX, SS, SCK, MOSI, MISO;


Das funktioniert aber nicht:
Code
F16_MMCPort     = PortA,3,1,2,0;


Will jemand danach schauen? :)

Gruss
Harry
Elektronik arbeitet mit Rauch - wenn man den Rauch raus läßt, funktioniert es nicht mehr.
Electronics works with smoke - if you let the smoke out, it works no longer.
go down go up
Merlin offline
Schreiberling
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 891
Registered: 03 / 2005
Private message
Subject: Re: FAT16_32 via SoftSPI  -  Posted: 27.06.2020 - 15:20   -  
When you say it doesn't work, what do you mean? Doesn't compile or doesn't function?
Merlin.

:magic:

Software is a black art.
go down go up
Harry offline
PowerUser
Avatar
Gender: male
Location: GERMANY  zwischen Augsburg und Ulm
Age: 55
Posts: 1656
Registered: 03 / 2003
Private message
Subject: Re: FAT16_32 via SoftSPI  -  Posted: 27.06.2020 - 15:44   -  
Hello Merlin,

it does not compile.

Harry
Elektronik arbeitet mit Rauch - wenn man den Rauch raus läßt, funktioniert es nicht mehr.
Electronics works with smoke - if you let the smoke out, it works no longer.
go down go up
Merlin offline
Schreiberling
Avatar
Gender: male
Location: UNITED KINGDOM 
Age:
Posts: 891
Registered: 03 / 2005
Private message
Subject: Re: FAT16_32 via SoftSPI  -  Posted: 27.06.2020 - 16:24   -  
Bizzarely, I get the opposite;

Code
  F16_MMCPort     = PortA,3,1,2,0;


works, but

Code
F16_MMCPort     = PortA.3,PortA.1,PortA.2,PortA.0;


does not

Perhaps you should publish your full unit so we can see what the differences are.

Here is mine

Code
program Test;

Device = mega2560, VCC=5;

import SerPort1, FAT16;

define
  ProcClock      = 16000000;
  StackSize      = 512, iData;
  FrameSize      = 512, iData;
  SerPort1       = 19200, Stop1;
  RxBuffer1      = 128, iData;
  TxBuffer1      = 128, iData;
  FAT16           = MMC_Soft, iData;
  //F16_MMCPort     = PortA.3,PortA.1,PortA.2,PortA.0;
  F16_MMCPort     = PortA,3,1,2,0;
  F16_MMCspeed    = standard;               { standard, slow, fast             }
  F16_FileHandles = 1;
  F16_DirLevels   = 1;
  F16_StrLen      = 90;
  
Uses UFAT16;

Implementation

const

type

var
{$IDATA}

begin
  EnableInts;
  loop
  endloop;
end.
Merlin.

:magic:

Software is a black art.
go down go up
 


Registered users in this topic
Currently no registered users in this section

Delete cookies of this forum  •  FAQ / Help  •  Team page  •  Imprint   |  Local time: 11.07.2020 - 23:42