PWM Click Lib not working

General discussion on Package Manager Software.
Post Reply
Author
Message
jkmprojekt
Posts: 2
Joined: 16 Aug 2010 13:57

PWM Click Lib not working

#1 Post by jkmprojekt » 23 Oct 2016 19:41

Hi, few day ago I bought PWM Click board. From LibStock I downloaded Click_PWM_ARM.mpkg and installed it, but when I want use this and try add PWM_click_HAL_m4 or PWM_click_HW_m4 Lib to my project the after build project I received error : ....\pwm_hal_M4.c or pwm_hw_M4.c 'not found. Why after instalation of Lib the folder not have included this files ?

What I doing wrong?

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: PWM Click Lib not working

#2 Post by uros.cvetinovic » 24 Oct 2016 11:33

Hi,

You need to add search path to the source and header files.

This is set in the compiler: Project->Edit Search Paths
There set the path to this folder which is located where your compiler is installed:
...\Mikroelektronika\mikroC PRO for ARM\Packages\Click_PWM\Uses

Best regards,

Uros

jkmprojekt
Posts: 2
Joined: 16 Aug 2010 13:57

Re: PWM Click Lib not working

#3 Post by jkmprojekt » 24 Oct 2016 12:42

Thank you for reply but still have same problem afere build:

340 File 'D:\Programy\Mikroelektronika\mikroC PRO for ARM\Packages\Click_PWM\Uses\pwm_hal_M4.c' not found
340 File 'D:\Programy\Mikroelektronika\mikroC PRO for ARM\Packages\Click_PWM\Uses\pwm_hw_M4.c' not found
102 Finished (with errors): 24 paź 2016, 13:19:48 Auto_Switch_IR_V1.mcpar[/color]

I checked folder "...\Mikroelektronika\mikroC PRO for ARM\Packages\Click_PWM\Uses" and ther is not file pwm_hal_M4.c and pwm_hw_M4.c

is only :

pwm_hal.h
pwm_hal_M3.emcl
pwm_hal_M4.emcl
pwm_hal_M5.emcl
pwm_hw.h
pwm_hw_M3.emcl
pwm_hw_M4.emcl
pwm_hw_M5.emcl

and folder Examples is empty.

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: PWM Click Lib not working

#4 Post by uros.cvetinovic » 25 Oct 2016 10:14

Hi,

If you have set right path, you shouldn't get this error.
That is because pwm_hal_M4.c and pwm_hw_M4.c correspond to pwm_hal_M4.emcl and pwm_hw_M4.emcl.

I have just tested this, and compiled without any error.

Can you please zip and send your whole project that demonstrates this behavior so I can test it?

Best regards,

Uros

Post Reply

Return to “Package Manager General”