cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

New Contributor

Hey, im trying to port the BLDC Sensorless FOC project from the 037 kit from psoc 4 to psoc6.

I've already modified the rest of the project but im having problems with the motor_ctrl.c

There are these functions:

Protector_Init(u16SampleFreq);

MotorCtrl_InitPar(u16SampleFreq);

FieldWeaken_Init(u16SampleFreq);       

MotorStart_Init(&MotorCtrl_stcStartup);

CV_LimitInit(&CV_LimitPars); 

pastedImage_0.png

I've been cheking the header files and they look correct.

I could attach the project if needed.

0 Likes
Reply
1 Solution
Moderator
Moderator

Hello Perez,

I had to modify your project to finally reach at the error you are facing. The error you are seeing is due to the absence of LibFOC.a file in your source files. You have to add the same in build settings too(Without lib prefix and .a suffix).

pastedImage_0.png

pastedImage_1.png

Best Regards,
Vasanth

View solution in original post

10 Replies
Moderator
Moderator

Hello Perez,

Could you please attach the project so that we can have a look?

Best Regards,
Vasanth

0 Likes
Reply
New Contributor

Yes of course.

0 Likes
Reply
Moderator
Moderator

Hello Perez,

I am having difficulties opening the project. Could you please an archive of your project from creator and attach it ? Please open the project in creator and in File -> Create workspace bundle and attach  the project.

Best Regards,
Vasanth

0 Likes
Reply
New Contributor

I followed your steps, here it is.

0 Likes
Reply
Moderator
Moderator

Hello Perez,

This time I ended up with routing errors in the design. Could you please confirm you have attached the right project. If you given the right project could you please let me know the PSoC Creator version you are using ?

Best Regards,

Vasanth

0 Likes
Reply
New Contributor

PSoC Creator 4.2.

We could make a hangouts / skype call if needed.

0 Likes
Reply
Moderator
Moderator

Hello Perez,

Let me know the build number too. Mine is 641.

pastedImage_0.png

I guess you have given the project after doing some modification. Did you check opening the version you have sent to us ?

Best Regards,
Vasanth

New Contributor

pastedImage_0.png

Yes, 641

0 Likes
Reply
New Contributor

These are the dependencies:

pastedImage_0.png

And the component versions:

pastedImage_1.png

0 Likes
Reply
Moderator
Moderator

Hello Perez,

I had to modify your project to finally reach at the error you are facing. The error you are seeing is due to the absence of LibFOC.a file in your source files. You have to add the same in build settings too(Without lib prefix and .a suffix).

pastedImage_0.png

pastedImage_1.png

Best Regards,
Vasanth

View solution in original post

Top labels