Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem #41

Open
szybkijanek opened this issue Apr 28, 2020 · 1 comment
Open

Problem #41

szybkijanek opened this issue Apr 28, 2020 · 1 comment

Comments

@szybkijanek
Copy link

Hi i download beta version SdFat, when replace 1:1 with stable 1.1.2 and now have error: 'mbr_t', 'mbr', 'part_t', 'pt' was not declared in this scope. My program was tested on Your stable version 1.0.7 and 1.1.2 so maybe something is with this beta version.
errors.txt

@greiman
Copy link
Owner

greiman commented Apr 28, 2020

Many structs have been modified and renamed to support boards with big/little endian problems.

The new defs are mostly in FsStructs.h.

Here are structs for mbr_t and part_t

//-----------------------------------------------------------------------------
const uint16_t MBR_SIGNATURE = 0xAA55;
const uint16_t PBR_SIGNATURE = 0xAA55;

typedef struct mbrPartition {
  uint8_t boot;
  uint8_t beginCHS[3];
  uint8_t type;
  uint8_t endCHS[3];
  uint8_t relativeSectors[4];
  uint8_t totalSectors[4];
} MbrPart_t;
//-----------------------------------------------------------------------------
typedef struct masterBootRecordSector {
  uint8_t   bootCode[446];
  MbrPart_t part[4];
  uint8_t   signature[2];
} MbrSector_t;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants