bldc in kds

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

bldc in kds

1,104 次查看
robotjosh
Contributor IV

Is it possible to use the freescale BLDC code in kinetis design studio?  It appears there is only one pre-compiled .a file that works for armcc but I don't see a version that is compiled for gcc.

 

Is there or will there be bldc lib compiled for gcc to work in kds?

标签 (1)
0 项奖励
回复
3 回复数

912 次查看
Rick_Li
NXP Employee
NXP Employee

Hi Josh Jordan,

could you please point which BLDC code that you want to use in KDS?

please give me a link?

0 项奖励
回复

912 次查看
robotjosh
Contributor IV

I'm trying to complete a project that was prototyped with 1.0.2 but I also have 1.0.11 for reference but I can't use 1.0.11 because it is doing a different thing.  It looks like a lot of the spelling errors were fixed and artifacts from the original processor expert output are removed.  However the new version no longer supports current sensing and we have our circuit setup for current sensing which is the reason for using 1.0.2.  I'm still not clear about the "=" operator, but that part of the code appears to work properly now with changing it to "=".  I don't know why it was like that, maybe there is some optimization happening where it casts the value as signed, then takes the positive value when you use =, I'm not sure.  But when examining the disassembly all it was doing was reassigning different values to the same sram location, something that would get optimized out if optimization were turned on.  Let me know if "=" is on purpose, I learn something new everyday.

I'm not sure where this code came from, I inherited the source that had 1.0.2 in it.  After installing several different "Kinetis BLDC" exe files, I've ended up with a directory called "BLDC_KINETIS" which contains 1.0.8 and "BLDC_SL_Kinetis" which contains 1.0.11, both are configured for different processors and do things differently.  Each one handles interrupts differently, which are not working for me yet with 1.0.2 on the K60F so I am looking at using the NVIC directly like you do in 1.0.11.  I have another directory called "PMSM_SNSLESS_TWR_KV31" that has version 2 that is very different but only supports the KV series which we would use but this chip the KV3 is not available yet and we already have the hardware ready using a K60F.

0 项奖励
回复

912 次查看
Rick_Li
NXP Employee
NXP Employee

Hi Jordan,

Since there is no source for the GFLIB available for Kinetis, the project you mentioned only involved the generated library.

It is impossible to build that project in KDS.

I'm sorry for this inconvenience has caused to you!

0 项奖励
回复