Page 1 of 1
PWM Click Lib not working
Posted: 23 Oct 2016 19:41
by jkmprojekt
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?
Re: PWM Click Lib not working
Posted: 24 Oct 2016 11:33
by uros.cvetinovic
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
Re: PWM Click Lib not working
Posted: 24 Oct 2016 12:42
by jkmprojekt
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.
Re: PWM Click Lib not working
Posted: 25 Oct 2016 10:14
by uros.cvetinovic
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