none
[SOLVED] Application is not executed from eMMC Card?? RRS feed

  • Question

  • Dear Developers,

    I have observed that my eMMC card which is mounted on slot 3 for AM335x Wince7 is not able to execute the application. But, when I format the card using store manager and try to execute the application, its being executed. But again when I reset the board and tried to run the application, again I am unable to run the application.. 

    What may be the reason that the application is not being executed. In this way, I have format each and every time and I think so this is not the correct way?????


    Thursday, March 5, 2015 10:01 AM

All replies

  • Dear Developers,

    Can you just guide me the mentioned issue so that it can be solved. As, I am also working to solve the issue.

    Monday, March 9, 2015 6:47 AM
  • Debug output when the file is not executed? Can we presume that the card contents are visible, generally, to Windows CE and other card operations are successful (edit a text file or something)?

    Paul T.

    Monday, March 9, 2015 5:39 PM
  • Dear Developers,

    Greetings!!

    Yes, the Card contents are visible and we can create folder too. 

    Now, However we are manage to see the debug logs for any application(my application and ipconfig.exe) from card

    But, both time we got exception.

    The exception logs are as- 

    355470 PID:e009f2 TID:e10406 OSAXST1: >>> Loading Module 'coredll.dll' (0x9E411700) at address 0x40010000-0x40164000 in Process 'cmd.exe' (0x9E4A9370)
     355472 PID:e009f2 TID:e10406 OSAXST1: >>> Loading Module 'cmd.exe' (0x9E4A9370) at address 0x00010000-0x0002D000 in Process 'cmd.exe' (0x9E4A9370)
    PB Debugger Loaded symbols for 'C:\WINCE700\OSDESIGNS\ENVENTURE\ENVENTURE\RELDIR\PHYTEC_AM335X_BSP_ARMV7_DEBUG\CMD.EXE'
     355486 PID:e009f2 TID:e10406 OSAXST1: >>> Loading Module 'locale.dll' (0x9E412BE0) at address 0x40170000-0x401B1000 in Process 'cmd.exe' (0x9E4A9370)
     355575 PID:e009f2 TID:e10406 OSAXST1: >>> Loading Module 'normalize.dll' (0x9E412E1C) at address 0x401E0000-0x401FF000 in Process 'cmd.exe' (0x9E4A9370)
     355583 PID:e009f2 TID:e10406 CePerf.dll is absent - performance data will not be recorded
     355587 PID:400002 TID:e10406 +HWSetRTS(0xa7dd5a90)
     355591 PID:44d0192 TID:5590142 OSAXST1: >>> Loading Module 'coredll.dll' (0x9E411700) at address 0x40010000-0x40164000 in Process 'GPIO.EXE' (0x9E4B2258)
     355591 PID:44d0192 TID:5590142 OSAXST1: >>> Loading Module 'GPIO.EXE' (0x9E4B2258) at address 0x00010000-0x00016000 in Process 'GPIO.EXE' (0x9E4B2258)
    PB Debugger Loaded symbols for 'C:\WINCE700\OSDESIGNS\ENVENTURE\ENVENTURE\RELDIR\PHYTEC_AM335X_BSP_ARMV7_DEBUG\GPIO.EXE'
     355600 PID:44d0192 TID:5590142 OSAXST1: >>> Loading Module 'locale.dll' (0x9E412BE0) at address 0x40170000-0x401B1000 in Process 'GPIO.EXE' (0x9E4B2258)
     355688 PID:44d0192 TID:5590142 OSAXST1: >>> Loading Module 'normalize.dll' (0x9E412E1C) at address 0x401E0000-0x401FF000 in Process 'GPIO.EXE' (0x9E4B2258)
     355699 PID:44d0192 TID:5590142 CePerf.dll is absent - performance data will not be recorded
     355701 PID:44d0192 TID:5590142 Exception 'Prefetch Abort' (0x3): Thread-Id=05590142(pth=9e4b3378), Proc-Id=044d0192(pprc=9e4b2258) 'GPIO.EXE', VM-active=044d0192(pprc=9e4b2258) 'GPIO.EXE'
     355701 PID:44d0192 TID:5590142 PC=00016000(???+0x00016000) RA=400946a0(coredll.dll+0x000846a0) SP=0002fd8c, BVA=00016000
     355703 PID:44d0192 TID:5590142 RtlDispatchException: returning failure. Flags=0
     355705 PID:44d0192 TID:5590142 
    Unhandled exception c0000005:
     355706 PID:44d0192 TID:5590142 Main thread in proc 044d0192 faulted, Exception code = c0000005, Exception Address = 00016000!
     355706 PID:44d0192 TID:5590142 Terminating thread 9e4b3378
     355709 PID:44d0192 TID:5590142 OSAXST1: <<< Unloading Module 'coredll.dll' (0x9E411700) at address 0x40010000-0x40164000 in Process 'GPIO.EXE' (0x9E4B2258)
     355709 PID:44d0192 TID:5590142 OSAXST1: <<< Unloading Module 'normalize.dll' (0x9E412E1C) at address 0x401E0000-0x401FF000 in Process 'GPIO.EXE' (0x9E4B2258)
     355709 PID:44d0192 TID:5590142 OSAXST1: <<< Unloading Module 'locale.dll' (0x9E412BE0) at address 0x40170000-0x401B1000 in Process 'GPIO.EXE' (0x9E4B2258)
     355710 PID:44d0192 TID:5590142 OSAXST1: <<< Unloading Module 'GPIO.EXE' (0x9E4B2258) at address 0x00010000-0x00016000 in Process 'GPIO.EXE' (0x9E4B2258)
    PB Debugger Unloaded symbols for 'C:\WINCE700\OSDESIGNS\ENVENTURE\ENVENTURE\RELDIR\PHYTEC_AM335X_BSP_ARMV7_DEBUG\GPIO.EXE'
     355713 PID:e009f2 TID:e10406 Dll list:
     355714 PID:400002 TID:e10406 COM_Close: (1 handles) total RX 1, total TX 140, dropped (mdd, pdd) 0,0
     355716 PID:e009f2 TID:e10406 OSAXST1: <<< Unloading Module 'coredll.dll' (0x9E411700) at address 0x40010000-0x40164000 in Process 'cmd.exe' (0x9E4A9370)
     355717 PID:e009f2 TID:e10406 OSAXST1: <<< Unloading Module 'normalize.dll' (0x9E412E1C) at address 0x401E0000-0x401FF000 in Process 'cmd.exe' (0x9E4A9370)
     355717 PID:e009f2 TID:e10406 OSAXST1: <<< Unloading Module 'locale.dll' (0x9E412BE0) at address 0x40170000-0x401B1000 in Process 'cmd.exe' (0x9E4A9370)
     355718 PID:e009f2 TID:e10406 OSAXST1: <<< Unloading Module 'cmd.exe' (0x9E4A9370) at address 0x00010000-0x0002D000 in Process 'cmd.exe' (0x9E4A9370)
    PB Debugger Unloaded symbols for 'C:\WINCE700\OSDESIGNS\ENVENTURE\ENVENTURE\RELDIR\PHYTEC_AM335X_BSP_ARMV7_DEBUG\CMD.EXE'
    
    The above logs are with my GPIO application and we got exception for that
    Tuesday, March 10, 2015 11:20 AM
  • So you'll have to debug GPIO.exe application, as I have no idea what that program does, except generating an prefetch abort.

    or list your code...


    Good Luck,

    Erwin Zwart, eMVP
    Check out my blog: http://guruce.com/blog
    GuruCE
    Microsoft Embedded Partner
    http://guruce.com
    Consultancy, training and development services.

    Tuesday, March 10, 2015 12:10 PM
  • Dear Erwin,

    The application is very much fine and executing from other folders and directories

    Thanks for advice

    Tuesday, March 10, 2015 12:32 PM
  • This should work without any problems.

    Perhaps you are having data errors on the card.  Have you tried to do a binary compare of the application on the card vs the original one?  Maybe your application gets corrupted on the card or on its way to it.  

    Here is what I think is happening:

    When copying the application the first time, the data gets written to disk but remains also in the disk cache.  When you execute the application after copying, you basically get the data from the cache, not from the card.  It is only when you reset the board and try to execute the application that the data is really read back from the card.  




    Tuesday, March 10, 2015 8:24 PM
  • Dear Mario_M

    Thanks for reply.

    May be the application is getting corrupt on the card while running. Because all application is not executing from both of our cards(Micro SD Card and eMMC)...

    Wednesday, March 11, 2015 3:18 AM
  • Dear Developers,

    Greetings!!!

    After using the images from the backup I am able to run the application from SD Card. I tested various sample application and it was working fine. I tested the applications after some gaps also and it is working fine. But after some time I ran it again and it did not run. And I tested all the applications and found that all are not running.

    I rest the target device many times But I am unable to run it again. 

    This case is totally strange case to solve the issue. I dont have more information to share with you..

    ???

    Friday, March 13, 2015 11:06 AM
  • The above problem is solved by modifying the DMA code
    Tuesday, March 17, 2015 10:12 AM