请问FR81S系列 MB91F526,Softune环境中,支持使用malloc函数吗?目前编译总报错。

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
wagu_1442321
Level 2
Level 2
10 questions asked 5 questions asked First reply posted

如题,目前测试和分配空间大小关系不大。

测试如下:

#include "stdlib.h"

void main(void)

{

         char *p;

         p=(char *)malloc(2);

报错如下:

*** balloc.asm(161) E4305L: Unresolved external symbol (sbrk / _sbrk)

不知道该如何设置谢谢!

0 点赞
1 解答
HongyanW_86
Moderator
Moderator
Moderator
100 solutions authored 100 replies posted 50 solutions authored

Hello,

请问你用的哪个32bit Softune版本?我这边在最新的Softune professional pack V60015使用malloc()后编译没有报错。

如果你使用的是老版本Softune,请联系Cypress当地的FAE/FSE获取新版本。

Best regards,

Amy Wang

在原帖中查看解决方案

0 点赞
3 回复数
HongyanW_86
Moderator
Moderator
Moderator
100 solutions authored 100 replies posted 50 solutions authored

Hello,

请问你用的哪个32bit Softune版本?我这边在最新的Softune professional pack V60015使用malloc()后编译没有报错。

如果你使用的是老版本Softune,请联系Cypress当地的FAE/FSE获取新版本。

Best regards,

Amy Wang

0 点赞

amy,我用的是7001E,工程没有做任何设置,不报错么?

wanjiangguo

发件人: AmyW_86

发送时间: 2019年4月2日 17:12

收件人: wanjiang guo

主题: 回复:[Auto MCU] - 请问FR81S系列 MB91F526,Softune环境中,支持使用malloc函数吗?目前编译总报错。

<https://community.cypress.com/?et=watches.email.thread> Cypress Developer Community

请问FR81S系列 MB91F526,Softune环境中,支持使用malloc函数吗?目前编译总报错。

从 Auto <https://community.cypress.com/people/AmyW_86?et=watches.email.thread> MCU 中的 AmyW_86 回复 - <https://community.cypress.com/message/191811?et=watches.email.thread#191811> 查看完整讨论

0 点赞
HongyanW_86
Moderator
Moderator
Moderator
100 solutions authored 100 replies posted 50 solutions authored

I used CY51920 sample code on product webpage and added your attached code. It built successfully without any error. Please contact Cypress local FAE for latest Softune package.

https://www.cypress.com/products/cy91520

Best regards,

Amy Wang

0 点赞