AnsweredAssumed Answered

ADSP-SC573 SD card issue: Linux on ARM and Baremetal on SHARC 1 & 2

Question asked by givanov@persecteam.com on Jul 19, 2018
Latest reply on Aug 3, 2018 by ico

Hello,

 

Some information:

Kit: ADZS-SC573-EZLITE

Linux Addins : ver 1.2.0

u-boot compiled with icc support

Linux kernel compiled with corecontrol tool

 

On Core0(ARM) runs Linux(kernel+rootfs in RAM). On Core1&2(SHARC+) both runs baremetal applications.

Baremetal applications are created with CrossCore for Windows. Standard LDF files are used(generated from CrossCore). Both SHARC1&2 cores execute simple while loop.

#include <sys/platform.h>
#include <sys/adi_core.h>
#include "adi_initialize.h"
#include "SC573_dummy_Core1.h"

 

char __argv_string[] = "";

 

int main(int argc, char *argv[])
{

 

    adi_initComponents();
   

    int i = 0;

    while(1)
    {
        i++;
        if(i >= 45000000)
        {
            i = 0;
        }
    }
    return 0;
}

Then, this two codes are compiled and loaded via ICE-1000. I have followed "Run Linux on ARM and bare-metal application on SHARC" from "Linux_Add-in_User's_Guide-1.2.0"

 

Everything works fine before I mount the SD card.

# corecontrol --start 1
Test core 1 start
Test core 1 end: 0
# corecontrol --start 2
Test core 2 start
Test core 2 end: 0
# mount /dev/mmcblk0p2 /mnt/
mmcblk0: error -84 sending status command, retrying
mmcblk0: error -84 sending status command, retrying
mmcblk0: error -84 sending status command, aborting
mmc_host mmc0: Bus speed (slot 0) = 75000000Hz (slot req 400000Hz, actual 398936HZ div = 94)
mmc0: tried to reset card
blk_update_request: I/O error, dev mmcblk0, sector 264194
EXT4-fs (mmcblk0p2): unable to read superblock
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending status command, aborting
blk_update_request: I/O error, dev mmcblk0, sector 264194
EXT4-fs (mmcblk0p2): unable to read superblock
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending status command, aborting
blk_update_request: I/O error, dev mmcblk0, sector 264194
EXT4-fs (mmcblk0p2): unable to read superblock
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending status command, retrying
mmcblk0: error -110 sending status command, aborting
blk_update_request: I/O error, dev mmcblk0, sector 264192
FAT-fs (mmcblk0p2): unable to read boot sector
mount: mounting /dev/mmcblk0p2 on /mnt/ failed: Input/output error

 

 

This error occurs only when both SHARC1&2 are executing. There is no problem when only one SHARC core is working, no mater which core.

What could be the problem?

 

Georgi

Design and Programming Expert

AP-Electronics

Outcomes