Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32 #21

Open
blackyang-1 opened this issue Jan 25, 2024 · 3 comments
Open

STM32 #21

blackyang-1 opened this issue Jan 25, 2024 · 3 comments

Comments

@blackyang-1
Copy link

这个库文件可以导入到STM32系列芯片吗?

@CYK-dot
Copy link

CYK-dot commented Mar 18, 2024

可以的,我成功移植了,但是需要自己实现一套内存管理算法代替代码中的malloc和free

@Siyou-Chen
Copy link

请问这个要怎么实现呢,我现在用这个库老是爆内存

@CYK-dot
Copy link

CYK-dot commented Mar 27, 2024

请问这个要怎么实现呢,我现在用这个库老是爆内存

我的做法是比较粗暴的,预先估计好矩阵库每次最大会申请的内存空间,把这个空间定义成一个结构体,然后创建一个结构体数组,当矩阵库申请内存空间时,就在这个数组中寻找未被占用的元素,返回该元素的地址。我用的二维矩阵,计算一次伪逆+一次乘法,总共吃掉了1.4k的空间才能保证够用,算非常浪费的了,去移植其他人开源的malloc算法,或者使用带内存管理的RTOS可能会更好点

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants