EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Read flash memory using PIC18F4550

Started by Ahmed Hassaan January 6, 2010
Hello All,
I'm new to use USB or deal with memory like flash memory or Hard disk.
I need to read or write date from the flash memory on USB bus PIC18F4550.
Is there is any drive using C language to read and write data to the flash
memory?
OR any sites describe how to use?

--
Ahmed Hassaan


--- In a..., Ahmed Hassaan wrote:
>
> Hello All,
> I'm new to use USB or deal with memory like flash memory or Hard disk.
> I need to read or write date from the flash memory on USB bus PIC18F4550.

The USB port on the 4550 is a slave port, just like a USB Flash stick.

You can read a harddisk drive with a parallel port interface, or a SPI flash memory with the 4550.

Google has lots of examples, try searching "PIC18 harddrive" or "PIC18 MMC" or "PIC18 SD card".

good luck

don

> Is there is any drive using C language to read and write data to the flash
> memory?
> OR any sites describe how to use?
>
> --
> Ahmed Hassaan
>
>

Thanks Don,

Now I'll connect it to the PC as slave, but I can't let the PC recognize my
board.
How can I let the PC know my device as memory to can read files direct from
the PC.
Is there a certain driver for the PC?

2010/1/9 Ahmed Hassaan

> Thanks Don,
>
> Now I'll connect it to the PC as slave, but I can't let the PC recognize my
> board.
> How can I let the PC know my device as memory to can read files direct from
> the PC.
> Is there a certain driver for the PC?
>
> On Thu, Jan 7, 2010 at 2:16 AM, Donald H wrote:
>
>> --- In a... , Ahmed Hassaan
>> wrote:
>> >
>> > Hello All,
>> > I'm new to use USB or deal with memory like flash memory or Hard disk.
>> > I need to read or write date from the flash memory on USB bus
>> PIC18F4550.
>>
>> The USB port on the 4550 is a slave port, just like a USB Flash stick.
>>
>> You can read a harddisk drive with a parallel port interface, or a SPI
>> flash memory with the 4550.
>>
>> Google has lots of examples, try searching "PIC18 harddrive" or "PIC18
>> MMC" or "PIC18 SD card".
>>
>> good luck
>>
>> don
>> > Is there is any drive using C language to read and write data to the
>> flash
>> > memory?
>> > OR any sites describe how to use?
>> >
>> > --
>> > Ahmed Hassaan
>> >
>> >
>> >
>> >
>>
>>
>> --
> " "
> ----------------------
> Ahmed Hassaan
> Principal eS/W Engineer
> VIAS Egypt 'Valeo Inter-branch Automotive Software'
>
> Mobile : (+2) 011 130 79 77
> website : www.valeo.com
> -----------------------------
> .. .. br /> > ..!
> .. . br /> >
> .
>

--
" "
----------------------
Ahmed Hassaan
Principal eS/W Engineer
VIAS Egypt 'Valeo Inter-branch Automotive Software'

Mobile : (+2) 011 130 79 77
website : www.valeo.com
-----------------------------
.. ..
..!
.. . br />
.


--- In a..., Ahmed Hassaan wrote:
>
> Thanks Don,
>
Ok, English is not your native language, so I'll try to understand....

> Now I'll connect it to the PC as slave,
There are many types of USB slave configurations,
which one have you picked ??

>but I can't let the PC recognize my board.
I do not understand what this means at all ?????

> How can I let the PC know my device as memory to can read files direct from the PC.

Your device can never read a file from the PC, only the PC can write the file into your memory.

How your memory is configured is up to you.

> Is there a certain driver for the PC?

No

You will need some sort of application running on the PC.
You will need to explain your project more fully, so I am able to understand what you want.

don


Memfault Beyond the Launch