Reply by Jeff Brower February 26, 20132013-02-26
BS-

> I am using RTFS Package by Texas Instrument. I am able to see correct data contents in Matlab.

Keep in mind that MATLAB access is via JTAG, which can impact real-time operation of your code. You might try to
allocate enough memory area to store sufficient output frames for diagnostic purposes, and upload data after your code
runs for a while. Try to avoid JTAG access while your code is running.

-Jeff

> ________________________________
> From: Andrew Nesterov
> To: c...; B S
> Sent: Saturday, February 23, 2013 2:53 AM
> Subject: Re: [c6x] Digest Number 3223
> Hi,
>
> Can you point me to the FS package you use?
>
> I'd suggest to use formatted output call, like fprintf() or
> call sprintf() to write a formatted string to writebuf, then
> write() or fwrite() the buffer.
>
> I guess that file text mode is what you need, am I correct?
>
> Rgds,
>
> Andrew
>
>> Re: Writing Data to MMCSD Card
>> Posted by: "B S" m...@yahoo.com matlab_fft
>> Date: Thu Feb 21, 2013 8:36 am ((PST))
>>
>> Hi,
>>
>> I managed to have file system on SD card, successfully created a file and write char data in there but I am unable
>> to write int or float data to file. Pointer to buffer is always char so I did type-cast but no success, it is still
>> writing char to text file.
>>
>> write(fptr, (char*)writebuf, BYTE_COUNT);
>> Any help ?
>> Regards,
>> BAS
>>

_____________________________________
Reply by B S February 26, 20132013-02-26
Andrew,

I am using RTFS Package by Texas Instrument. I am able to see correct data contents in Matlab.

Thanks.

BAS

________________________________
From: Andrew Nesterov
To: c...; B S
Sent: Saturday, February 23, 2013 2:53 AM
Subject: Re: [c6x] Digest Number 3223

Hi,

Can you point me to the FS package you use?

I'd suggest to use formatted output call, like fprintf() or
call sprintf() to write a formatted string to writebuf, then
write() or fwrite() the buffer.

I guess that file text mode is what you need, am I correct?

Rgds,

Andrew

> Re: Writing Data to MMCSD Card
> Posted by: "B S" m...@yahoo.com matlab_fft
> Date: Thu Feb 21, 2013 8:36 am ((PST))
>
> Hi,
>
> I managed to have file system on SD card, successfully created a file and write char data in there but I am unable to write int or float data to file. Pointer to buffer is always char so I did type-cast but no success, it is still writing char to text file.
>
> write(fptr, (char*)writebuf, BYTE_COUNT);
> Any help ?
> Regards,
> BAS
>
Reply by Andrew Nesterov February 22, 20132013-02-22
Hi,

Can you point me to the FS package you use?

I'd suggest to use formatted output call, like fprintf() or
call sprintf() to write a formatted string to writebuf, then
write() or fwrite() the buffer.

I guess that file text mode is what you need, am I correct?

Rgds,

Andrew

> Re: Writing Data to MMCSD Card
> Posted by: "B S" m...@yahoo.com matlab_fft
> Date: Thu Feb 21, 2013 8:36 am ((PST))
>
> Hi,
>
> I managed to have file system on SD card, successfully created a file and
> write char data in there but I am unable to write int or float data to file.
> Pointer to buffer is always char so I did type-cast but no success, it is
> still writing char to text file.
>
> write(fptr, (char*)writebuf, BYTE_COUNT);
> Any help ?
> Regards,
> BAS
>

_____________________________________