Microchip
直播中

赵媛

7年用户 153经验值
私信 关注
[问答]

使用SSL的服务器的堆大小?

我使用PIC32 MZ加密板来运行PIC32 TythEngWebServer项目。我试图使用WOLSSL添加SSL功能,但是当我尝试连接到服务器时,执行会中断并返回内存错误。从开发者指南中,我看到40K堆大小在没有SSL的情况下会很好地服务。如果我试图通过编辑TCPPIpStaskJavaRosiSoad的大小来增加大小,堆栈初始化失败。(Prime3EthyWebServer的默认值在和谐2.03中为42000)。我该怎么处理呢?注意:当我使用WOLFSLSILTCPHELSE项目时,我不存在任何与服务器进行加密连接的问题。但是,当我使用PIC32 TythEngWebServer时,我会遇到内存错误,并且不会在堆上分配所需的缓冲区。

以上来自于百度翻译


      以下为原文

    I'm using the PIC32MZ Crypto board to run the pic32_eth_web_server project. I'm trying to add the SSL capability using wolfSSL but the execution breaks and returns a Memory error when I try to connect to the server. From the developer's guide, I see that 40K heap size would serve well provided there is no SSL. If I try to increase the size by editing the value of TCPIP_STACK_DRAM_SIZE, the stack initialization fails.(The default value for pic32_eth_web_server in HARMony 2.03 is 42000). How should I proceed with this?

Note: When I use the wolfssl_tcp_server project, I don't have any issues in making an encrypted connection to the server. However, when I use pic32_eth_web_server, I run into memory errors and it doesn't allocate a required buffer on the heap.

Any help will be greatly appreciated!

回帖(3)

黄飞高

2018-11-15 14:42:01
堆大小不是在IDE项目属性中设置的吗?Ruben

以上来自于百度翻译


      以下为原文

    Isn't heap size set in the IDE, project properties?
 
/Ruben
举报

云达贞

2018-11-15 14:48:37
将至少10到20 KB添加到项目堆中,在MPLAB X IDED中。THETCPIPSSTACKRADAMORIZHORD只是TCP/IP使用的堆,WOLFSSL使用系统/全局堆。

以上来自于百度翻译


      以下为原文

    Add at least 10 - 20 KB to the project heap, in MPLAB X IDE.
The TCPIP_STACK_DRAM_SIZE is just the heap for the TCP/IP use, wolfSSL uses the system/global heap.
 
举报

陈芳

2018-11-15 15:02:00
嗨,雷诺德,这解决了我的问题。我把堆大小增加了10 KB。谢谢您!

以上来自于百度翻译


      以下为原文

    Hi rainad,
That fixed my problem. I increased the heap size by 10 KB. Thank you!
举报

更多回帖

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