I can't write a Raspbian image to certain SD cards using the Raspberry Pi support package
Mostrar comentarios más antiguos
I've been trying to use the Raspberry Pi support package to set up Simulink models on my Raspberry Pi, but the SD cards that came with the kit I have don't seem to work. These are 8 GB SD cards that already come with installation software that is meant to be run just using the Pi itself, but I wanted to over-write them with the image from the support package so that I could be sure they will work with MATLAB.
I'm wondering if maybe I should have ran raspi-conf first to expand the card size, because the setup instructions I read seemed to indicate they don't come fully expanded. They start out with a small size that is supposed to be expanded in raspi-conf, and when I tried to write the new image onto them using the support package, not only did I get a vague error message about how the SD card could not be written to, but viewing the card itself in explorer now says it is only 56 megabytes in size with some little files in it that weren't on it before. The linux software seems to be gone too, because the raspberry pi can't boot with the card anymore.
I've tried using the SD card formatting tool that the raspberry pi website operators recommend, but it doesn't seem to have any effect on the result. Even if I re-size them, they just get shrunk back to 56 MB when MATLAB fails to write the Raspbian image. I can use brand new SD cards fine with no errors from MATLAB, but i'd really like to know why the cards that came with the Pi don't seem to work for me.
Respuestas (5)
Murat Belge
el 24 de Mzo. de 2015
Start MATLAB using "Run as administrator". Right click on the MATLAB icon and choose "Run as administrator" in the popup menu. Then on the MATLAB command line:
>> targetupdater
This will drop you the second portion of the install. Follow the instructions.
7 comentarios
Chris Han
el 30 de Dic. de 2015
I face the same problem. I am using MacBook Pro. I would like to know how to run MATLAB as administrator with Mac OS (El Capitain V10.11.2). Right click method seems not working on Mac.
Walter Roberson
el 30 de Dic. de 2015
Chris,
I suggest you get the LaunchAsRoot app from Limit Point Software, http://www.limitpointstore.com/products/launchasroot/
You can then drag the MATLAB icon onto that app, or you can use the app's File->Open menu and select the appropriate MATLAB .app out of your /Applications folder.
Rinus Boone
el 11 de Mzo. de 2016
This does not work. When I open MatLab with LaunchAsRoot and I run target updater, MatLab crashes.
Walter Roberson
el 30 de Mzo. de 2016
Sorry, you will probably need to contact Mathworks for information on how to do this on OS-X.
Md. Mubarak Hossain
el 31 de Mayo de 2017
I'm trying to setup Raspberry Pi 3 support package. But when I click on write SD card, it shows the following error in the Picture. Please could anyone help me?

Walter Roberson
el 17 de Jun. de 2017
The causes of 0xc0000142 are described fairly well https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/The-application-was-unable-to-start-correctly-0xc0000142.html Some of that information is specific to AutoDesk rather than MATLAB.
BOUREZIG sidahmed
el 14 de Jun. de 2022
Worked for me thank you
Murat Belge
el 27 de Mzo. de 2014
1 voto
The SD card for Raspberry Pi has two partitions: one is a FAT partition of small size and the other is a Linux EXT partition. Your Windows computer cannot read the EXT partition and shows only the FAT partition. This is what you are seeing when you look at the SD card on your Windows computer. If you were to use a Linux computer, you would be able to see both partitions.
What exactly is the error message reported by the Support Package Installer when writing to the SD card?
2 comentarios
Md. Ashfaque
el 24 de Mzo. de 2015
Hi I have a similar problem. Every time I try to click refresh in order for SupportPackageInstaller to install the Raspbian image on the sd card...there is a message that shows enumerating sd card devices and then i get an error that says sdwriter.exe has stopped. Nothing else can be done. Is there a workaround for this issue?
Shogan Aversa-Druesne
el 14 de Mayo de 2015
You need to copy the mcf110u.dll into the same directory as the sdwriter.exe. The DLL is found in MATLAB/bin/win64
Greg Buffinton
el 29 de En. de 2016
Editada: Greg Buffinton
el 29 de En. de 2016
1 voto
I had to set "Run as Admin" in 2 locations. Right click on the matlab icon on the desktop and go to properties. 1> click "Advanced", tick "Run as administrator", click ok 2> click "Compatibility" tab, tick "Run this program as administrator", click ok.
After that I ran matlab, typed in targetupdater and this time the support package installer found my drives.
Hope this helps!
Edit: This was for Win8.1
1 comentario
non numerus
el 30 de Mzo. de 2016
worked for me thanks!
tcn0002
el 14 de Mayo de 2015
0 votos
has anyone figured out the solution to this?
vishal pattni
el 16 de Jun. de 2017
0 votos
IS it possible to write R.Pi support package and Simulink support package for R.pi in a single SD card?
Categorías
Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!