[En-Nut-Discussion] How to use AT45 DataFlash with webserver
Ole Reinhardt
ole.reinhardt at embedded-it.de
Mon Feb 13 18:03:29 CET 2017
Hi thiago,
For an at25 I have a short example:
if (UFlashAttach(&devUFlash0, &flashAt25df0, &spiBus0Gpio)) {
LogMsg(LOG_STARTUP, "Attaching serial flash failed\n");
} else {
LogMsg(LOG_STARTUP, "Mount serial flash.\n"); fflush(stdout);
if (NutRegisterDevice(&devUFlash0, 0, 0)) {
LogMsg(LOG_STARTUP, "Mounting UFLASH0: failed\n");
} else {
LogMsg(LOG_STARTUP, "Mounting UFLASH0: OK!\n");
}
}
and for at45:
if (UFlashAttach(&devUFlash0, &flashAt45dib0, &spiBus0At91)) {
puts("Attaching serial flash failed");
}
if (NutRegisterDevice(&devUFlash0, 0, 0)) {
puts("Mounting UFLASH0 failed");
} else {
puts("Mounting UFLASH0: OK!");
}
It's more or less the same :)
Best regards,
Ole Reinhardt
Am 13.02.2017 um 17:38 schrieb Thiago A. Corrêa:
> Hi,
>
>
> Michael's website isn't available anymore. Does anyone has the
> xflash example or other examples using Nut/OS AT45 dataflash?
>
> Kind Regards,
> Thiago A. Correa
>
>
>
> On Fri, May 13, 2011 at 1:59 PM, Michael Fischer <fischermi at t-online.de> wrote:
>> Hello Oliver,
>>
>> take a look here:
>> http://www.usbdip.de/en/xflash/index.html
>>
>> It is an old example, perhaps you get it working on
>> new NutOS version. But you have an idea how to solve
>> your problem. Later you can upload the image with
>> TFTP like:
>>
>> tftp -i <ip-address> PUT xflash.bin
>>
>> Best regards,
>> Michael
>> _______________________________________________
>> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
--
Embedded-IT
Alter Weg 3
57223 Kreuztal
http://www.embedded-it.de
Tel.: +49-177-7420433
More information about the En-Nut-Discussion
mailing list