我想申请10个2048byte大小的内存空间,存储传感器获取到的数据,使用什么函数申请?
我测试,直接声明数组是不行的,编译不过去,但是不知道什么函数可以,malloc可以吗?
Kevin Qiu1:
可以,malloc是从default heap中申请memory,分配动态内存注意default heap的大小是否满足要求,Project -> Properties -> C/C++ Build -> Linker -> Basic Options -> Heap Size(-heap)
我想申请10个2048byte大小的内存空间,存储传感器获取到的数据,使用什么函数申请?
我测试,直接声明数组是不行的,编译不过去,但是不知道什么函数可以,malloc可以吗?
可以,malloc是从default heap中申请memory,分配动态内存注意default heap的大小是否满足要求,Project -> Properties -> C/C++ Build -> Linker -> Basic Options -> Heap Size(-heap)
CC2340R5: Some questions about implementing the sending of ADV data on the rfPacketTx routine of the CC2340R5 chip
CC2642R: TI CC2642 HID示例问题
CC2642R: CC2642R使用外部存储W25Q16JVSSIQ, 未写成功,求帮看看是什么问题
LAUNCHXL-CC26X2R1: Some questions about the periodic advertising process of the RTLS responder