MATLAB Answers

The error when install the raspberry pi

48 views (last 30 days)
Wang Mengxi
Wang Mengxi on 28 Feb 2014
Answered: John Carlson on 16 Jan 2019
When I install the Raspberry Pi package, at the write firmware step a error happened. The error is : Error writing firmware to the memory card: An error occurred while writing to the SD card.
Is anyone meet this problem before?
How to solve the problem?

  0 Comments

Sign in to comment.

Answers (6)

Karl Fetzer
Karl Fetzer on 12 Dec 2017
I had the same problem using Windows 10 and Matlab 2017b. I do not know what caused it, but I was able to stop the error from occurring by using SDFormatter ( https://www.sdcard.org/downloads/formatter_4/ ) to reformat the SD card first, then using the Matlab Raspberry Pi hardware setup wizard.

  0 Comments

Sign in to comment.


Murat Belge
Murat Belge on 28 Feb 2014
The error is not descriptive enough to diagnose what is happening. General trouble-shooting steps when writing to the SD card are:
1. Start MATLAB in administrator mode. 2. Check that the lock switch on the SD card is in un-locked position. 3. Make sure that SD card size has at least 4GB of storage space.
If you perform the above and you still get an error, try using a * Different SD card * Different SD card reader/writer

  0 Comments

Sign in to comment.


Silverio G. Cortes
Silverio G. Cortes on 14 May 2014
I got the same problem. I´ve tried with two different SD cards 16GB (Sandisk Class 4 and Lexar SDHC C10? 100x )
In addition I´ve also tried with the integrated SD car reader/wrtier of my laptop, and another portable USB card reader with no result (only the same error message: An error ocurred while unlocking the SD card volume. )
Could be a problem with the format type of the SD card? Any other suggestion?

  0 Comments

Sign in to comment.


Murat Belge
Murat Belge on 20 May 2014
Silverio,
Did you start MATLAB in administrator mode?

  0 Comments

Sign in to comment.


joao ricardo
joao ricardo on 11 Jun 2015
Yes i've tried all the solutions u wrote here and none works.

  0 Comments

Sign in to comment.


John Carlson
John Carlson on 16 Jan 2019
I had the same problem , I did a lot of wrong things but here is how it fixed :
1- run matlab as administrator
2 - OverWrite format the SD card with SD Card Formatter [it's a software]
3- follow normal steps
I did exacly as I wrote and the problem went away . [there was another problem after that , that was not connecting properly with LAN but I did the steps again and it was ok]

  0 Comments

Sign in to comment.

Sign in to answer this question.