Hi,
I just want to understand if the CCS projects created under windows will work in Linux environment. if not is there any guideline for migration b/w windows and linux environvment.
Regards
Baskaran
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I just want to understand if the CCS projects created under windows will work in Linux environment. if not is there any guideline for migration b/w windows and linux environvment.
Regards
Baskaran
Baskaran,
To my understanding (and limited experience going between platforms) the projects should cross-import without many issues as long items such as resource directories are defined relatively instead of explicitly. Explicit resource directories may break on a cross-import. It would also be recommended to keep both Linux and Windows installations on the same release if possible.
Other than that, both platforms should operate the same.
Hi Mr. Michael and Chidambaram,
Can u help me out in problem below. Actually, I posted the same in forum but no one replied so far. I need help urgently.
I need to develop a code in starterware07 which can show micro SD card, just like a USB pendrive when beaglebone is connected to a host computer running windows or linux. I have got a project "usb_dev_msc" which prepared a RAM_DISK and shows it just like a pendrive in PC and then PC asks for formatting the disk and after formatting you can copy-paste files onto this drive. But this is just the RAM not a real flash drive. So, contents go away as soon as power is switched off.
Another project is "hsMmcSdRw", in which we can open and read contents of files stored on microSD card, through hyperterminal, by issuing a set of commands. My objective can be achieved by combining the two codes somehow. I don't know how to replace RAM_DISK with SD card. Can you tell me some code to do this?
-Pankaj Verma
(from DEAL, Dehradun)
Hi Pankaj,
Sorry for responding late.
Currently the RAM_DISK formats a portion of the onboard RAM as a FAT compatible file system. One quick and easy way to change the RAM media to SD card would be to replace or redirect the disk_read/disk_write functions defined in ramdisk.c to the ones in fat_mmcsd.c with with drive value set to zero.
Redirect void disk_read(unsigned int lba, unsigned char *buf, unsigned int len) (defined in ramsdisk.c)to
DRESULT disk_read (BYTE drv, /* Physical drive number (0) */
BYTE* buff, /* Pointer to the data buffer to store read data */DWORD sector, /* Physical drive nmuber (0) */BYTE count) in fat_mmcsd.c
Please ensure that you have initialized the SD card as given in the MMCSD example and the FATFS is up on MMCSD .
Hi Vineeth,
I followed the following steps:
1. Formatted the 4GB SD card on windows with FAT filesystem.
Made a code combining the USB and SD card codes wherein the steps are:
2. Initialized the SD card, as given in MMCSD example.
3. Initialized the USB as given in usb_dev_msc example.
4. Replaces the codes of read_disk(), write_disk(), disk_ioctl(), disk_initialize() with the ones given in fat_mmcsd.c (following the corresponding parameter sequence)
I am facing the following problem in this approach
1. Windows detects the drive, but the capacity of SD card is not reflected in it.
2. Windows asks to format the drive but when i do so, the code is stuck at the while loop in this code segment, as in hs_mmcsd_rw.c
static unsigned int HSMMCSDCmdStatusGet(mmcsdCtrlInfo *ctrl)
{
unsigned int status = 0;
while ((cmdCompFlag == 0) && (cmdTimeout == 0)); <<----------------- /* here*/
if (cmdCompFlag)
{
status = 1;
cmdCompFlag = 0;
}
if (cmdTimeout)
{
status = 0;
cmdTimeout = 0;
}
return status;
}
waiting for cmdCompFlag to be set to 1, which depends on the ISR static void HSMMCSDIsr(void) in the same file. and this interrupt is not occurring.
My overall aim is to interface beaglebone to another android device (which recognizes FAT32 filesystem). The beaglebone has to act as a USB mass storage device, giving direct access to SD card, via USB, to the android device.
Please help me get around this.
Regards,
Pankaj
folks...please discuss new issues in new threads - this will help in clear tracking of open threads and easier reference in future.
Regards
Baskaran
Hi Mr. Bhaskaran,
My colleague, Mr Tarun Kaushik, had already made a new thread for the query, titled 'SD card detection as a USB mass storage device on beaglebone using Starterware' (link: http://e2e.ti.com/support/embedded/starterware/f/790/t/280866.aspx) but have not got any reply since 29 July 2013. Since i need some urgent help, I re-posted my query here.
-
Pankaj Verma