Desperate: Need to find sd_mmc_mem.c/h for ASF 3.18.0

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When you build a project with ASF using conf_access.h to access an sd memory card, is does not include the files sd_mmc_mem.c/h. Yet it needs these files - the project won't build without them.

I used to have old versions of them I found on the net. But now I've upgraded to ASF 3.18.0 and they have changed and I need the new versions. Desperate!!

So
1) does anyone have the latest version of these files they can send to me?
2) does anyone know how to find/extract files in ASF when it's installed on your computer? All i see in the ASF install directory is a bunch of .dll's and I don't know how to access the source files (if possible)

Help!
Thanks :)
Paul.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

does anyone know how to find/extract files in ASF when it's installed on your computer?

ASF is actually held as a Git repository so it should be possible to extract things from it using Git. Having said that I have tried but never had much success but I'm pretty sure user JohanEkdahl here rpiled to one of my posts and explained how to do it. So probably worth searching.

EDIT: actually search says this:

https://www.avrfreaks.net/index.p...

So it was probably Dean in fact.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just tried that (renaming asf.git to just .git) and find that I can "see" the repository using gitk so I can see that the files you want are called common2/components/memory/sd_mmc/sd_mmc.c|h and sd_mmc_mem.c but what's not immediately obvious is how I can extract just those few files

EDIT: sorry, it was actually as easy as:

C:\>git clone "C:\Program Files\Atmel\Atmel Software Framework\3.18.0.1328\Repository" asf
Cloning into 'asf'...
done.
Checking out files:  16% (4392/27450)

and then

C:\asf>find . -name sd_mmc*.[ch]
./avr32/components/memory/sd_mmc/sd_mmc_mci/example/sd_mmc_mci_example.c
./avr32/components/memory/sd_mmc/sd_mmc_mci/sd_mmc_mci.c
./avr32/components/memory/sd_mmc/sd_mmc_mci/sd_mmc_mci.h
./avr32/components/memory/sd_mmc/sd_mmc_mci/sd_mmc_mci_mem.c
./avr32/components/memory/sd_mmc/sd_mmc_mci/sd_mmc_mci_mem.h
./avr32/components/memory/sd_mmc/sd_mmc_spi/example/sd_mmc_spi_example.c
./avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.c
./avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi.h
./avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi_mem.c
./avr32/components/memory/sd_mmc/sd_mmc_spi/sd_mmc_spi_mem.h
./avr32/drivers/mci/_asf_v1/sd_mmc_cmd.h
./common/components/memory/sd_mmc/sd_mmc.c
./common/components/memory/sd_mmc/sd_mmc.h
./common/components/memory/sd_mmc/sd_mmc_mem.c
./common/components/memory/sd_mmc/sd_mmc_mem.h
./common/components/memory/sd_mmc/sd_mmc_protocol.h
./common/components/memory/sd_mmc/sd_mmc_spi.c
./common/components/memory/sd_mmc/sd_mmc_spi.h
./common2/components/memory/sd_mmc/sd_mmc.c
./common2/components/memory/sd_mmc/sd_mmc.h
./common2/components/memory/sd_mmc/sd_mmc_mem.c
./common2/components/memory/sd_mmc/sd_mmc_mem.h
./common2/components/memory/sd_mmc/sd_mmc_protocol.h
./common2/components/memory/sd_mmc/sd_mmc_spi.c
./common2/components/memory/sd_mmc/sd_mmc_spi.h

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

pvmellor wrote:
using conf_access.h to access an sd memory card, is does not include the files sd_mmc_mem.c/h.

I think you need to clarify what, exactly, you mean by that.

Just using conf_access.h will not cause anything else to be added to the project - is that what you were expecting?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Joy... Thanks folks: I did not realise there was a zip version of ASF. I just downloaded that, unzipped it, and found the files. Many thanks all.

awneil - yes i was rushing... I meant create a new project and add the relevant modules with ASF wizard etc. But it is solved now.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had the same problem, raised with Microchip support ( Case Number :  00430750), and got the solution:

 

By default, the memory control access interface is disabled in the ASF wizard. In order to enable the memory control access, please follow the steps below.

 

1, Open the ASF wizard (Alt + W).

 

2, Enable the Memory Control Access as follows.

 

3, Finally, click the “Apply” option to make the changes.