Microchip
直播中

邢洋

8年用户 156经验值
私信 关注
[问答]

如何启用SST25来存储网页?

您好,我必须如何配置和谐配置器来在HTTP网络服务器的外部闪存(SST25)中存储网页?我用PIC32 MZ谢谢

以上来自于百度翻译


      以下为原文

    Hello,

How must I configure HARMony configurator to store web pages in an external flash (SST25) for HTTP NET Server ?

I use PIC32MZ

Thanks

回帖(18)

苗雨

2018-11-23 15:45:45
在你走得更远之前,肯定会指出SST25芯片被弃用,不推荐用于新的设计。您会发现,SST26芯片更容易使用,而且更快,因为它们使用页面写入,而不是自动增量地址(Word)编写。此外,这是SPI还是SQI?记住,在PIC32 MZ中有一个闪光灯的量规。为什么不使用内部闪存作为存储介质呢?

以上来自于百度翻译


      以下为原文

    Before you go too much further, it will most assuredly be pointed out that SST25 chips are deprecated and not recommended for new designs. You'll find that the SST26 chips are MUCH easier to work with, and faster, since they use page writing as opposed to the auto-increment address (word) writing.
 
Also, is this SPI or SQI? Bear in mind that you have a metric crapton of flash in a PIC32MZ. Why not just use internal flash as your storage medium?
举报

宋文剑

2018-11-23 16:01:56
我想使用SST26而不是SPI模式。SST25是由SPI驱动程序管理的,但不是SST26的:这不是问题,因为它很容易适应SPI驱动程序源代码来管理SST26(我之前购买SST25测试源代码来尝试实现SST26)。2,不可能使用SPI和以太网外设(SPI外围使用相同的PIN以太网外围)。我想使用外部闪存,因为我需要所有内存的内部闪存来存储我的程序。我在哪里可以找到一个使用和声与SST25的例子?我必须使用的卷名是什么?

以上来自于百度翻译


      以下为原文

    I want use SST26 but in SPI mode (not SQI).
SST25 is managed by SPI driver but but not for SST26 : It isn't a problem because it is easy to adapt SPI driver source code to manage SST26 (I bought SST25 to test source code before to try to implement SST26).
 
I can't use SQI mode because with 64-pin PIC32, it is impossible to use SPI and Ethernet peripherials (SPI peripherial use same pins that Ethernet peripherial).
 
I want to use external flash because I need all memory of internal flash to store my program.
 
Where can I find a exemple to use Harmony with SST25 ?
 
 What is volume name that I must use ?
 
 
举报

苗雨

2018-11-23 16:13:38
现在,尝试使用内部闪存来启动和运行Web服务器。这是真的,经过测试。因此,在这些论坛上的人们将能够帮助你获得和运行。最好是系统化的:如果你知道你的Web服务器在内部运行,那么任何试图将它从Flash中运行出来的东西都可能是因为你的SST25、SPI或文件系统服务设置。在你的SST25驱动程序下,你需要将它注册到文件系统中;有一个选项A。可以在2.05完成这个任务。文件系统需要为MPFS安装,MPFS是Microchip用于这些网页的文件系统。您还需要在代码中的某个地方安装一个调用,以确保文件系统被正确安装。这将给代码添加一些阻塞,尽管我不确定有多少。MPFS驱动程序与SST25驱动程序的任务函数处于一个循环中。您可能需要让您的SPI任务驱动程序在中断模式下运行。

以上来自于百度翻译


      以下为原文

    For now, try and get the web server up and running with internal flash. It's tried, true, and tested. Therefore, the people on these fora will be able to help you get that up and running. It's best to be systematic: if you know that your web server runs internally then anything that screws up attempting to run it out of flash is probably due to your SST25, SPI, or file system service setup.
 
Under your SST25 driver, you'll need to register it with the file system; there is an option available to do this in 2.05. The file system will need to be setup for MPFS, which is the filesystem that Microchip uses for these webpages. You will also need to include a call to mount somewhere in your code to ensure that the file system is mounted properly.
 
This is going to add some blocking to your code, though I'm not sure how much. The MPFS driver sits in a loop with the tasks function for the SST25 driver. You may need to make your SPI tasks driver run in interrupt mode for this to work.
举报

宋文剑

2018-11-23 16:29:14
我的代码是用内部闪存操作的,而不是外部闪存。在App.c中,我做的是:在SPI驱动程序中传递Flash ID检查。当我尝试打开网页时,HTTP连接被重新设置DHCP并发现操作。

以上来自于百度翻译


      以下为原文

    My code operate with internal flash but not with external flash.
 
In app.c, I do :

 
       #define SYS_FS_DRIVE                        "SST25"
       #define SYS_FS_SST25_VOL                    "/dev/mtda1"
 
 
 
        case APP_MOUNT_DISK:
            if(SYS_FS_Mount(SYS_FS_SST25_VOL, LOCAL_WEBSITE_PATH_FS, MPFS2, 0, NULL) == 0)
 
            {
                SYS_CONSOLE_PRINT("SYS_Initialize: The %s File System is mountedrn", SYS_FS_MPFS_STRING);
                appData.state = APP_TCPIP_WAIT_INIT;
            }
            break;
 
           ...
 

 
Flash ID check is passed in SPI driver.
 
When I try to open a webpage, HTTP connection is reseted
DHCP and discover operate.
 
 
 
举报

更多回帖

发帖
×
20
完善资料,
赚取积分