Main Site Documentation

Problem on downgrade from sdk 4.2 to 4.1


#1

I have to downgrade firmware on emx from 4.2 to 4.1, due to issu on file on sd card, for some strange reasons code wrote for 4.1 doesn’t ork sometimes with files on 4.2.

When I tryed to downgrade emx to 4.1 I ping device and it replyes with tinybooter and not with tiycrl.
So I can’t uploa my application.
For firmware upgrade I’ve used mfdeploy.

Ideas???

Regards


#2

If it replies as TinyBooter then you haven’t deployed the firmware correctly. You need to reapply that until it replies TinyCLR. http://www.ghielectronics.com/docs/54/firmware-update-emx shows you how to do this… you just need to do the deployment until it works, obviously something didn’t work in your last attempt.


#3

Having said that, I suspect that you’d still be better off trying to resolve your 4.2 SD card issues - post your code !


#4

string rootDirectory = VolumeInfo.GetVolumes()[0].RootDirectory;
FileStream fs = new FileStream(rootDirectory +
@ “\Setting.txt”, FileMode.Create, FileAccess.ReadWrite);

Exception System.NullReferenceException - CLR_E_NULL_REFERENCE (5)

Message:

MB16AW.Program::LoadSetting [IP: 004a]

MB16AW.Program::RemovableMedia_Insert [IP: 0074]

Microsoft.SPOT.IO.RemovableMedia::MessageHandler [IP: 0041]

Eccezione first-chance di tipo ‘System.NullReferenceException’ in EMX Application.exe
System.NullReferenceException

Exception System.IO.IOException - CLR_E_UNAUTHORIZED_ACCESS (5)

Message:

System.IO.FileSystemManager::AddToOpenList [IP: 007e]

System.IO.FileStream::.ctor [IP: 0052]

System.IO.FileStream::.ctor [IP: 0009]

MB16AW.Program::SaveSetting [IP: 0022]

MB16AW.Program::LoadSetting [IP: 0251]

MB16AW.Program::RemovableMedia_Insert [IP: 0074]

Microsoft.SPOT.IO.RemovableMedia::MessageHandler [IP: 0041]

Eccezione first-chance di tipo ‘System.IO.IOException’ in Microsoft.SPOT.IO.dll
Eccezione non gestita di tipo ‘System.IO.IOException’ in Microsoft.SPOT.IO.dll


#5

Are you sure that your SDCARD is properly mounted?