This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi!
I'm new using TivaWare C API and I'm getting an error when compiling:
linking...
.\PWMDual.axf: error: L6002U: Could not open file PART_TM4C123GH6PM: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.
".\PWMDual.axf" - 1 Error(s), 0 Warning(s).
Target not created
This is my function new call (before inserting this and its include files the whole program worked fine):
PWMDeadBandDisable(0x40030000,PWM_GEN_0_BIT);
(it is a PWM function call to disable Dead Band for the first module. It's documented here: http://www.ti.com/lit/ug/spmu298/spmu298.pdf page 207).
and these are my includes for the PWM function above:
#include "tm4c123gh6pm.h"
#include <stdint.h>
#include <stdbool.h>
#include "D:\ti\TivaWare_C_Series-2.0.1.11577\inc\hw_types.h"
#include "..\inc/hw_memmap.h"
#include "..\inc/hw_gpio.h"
#include "..\driverlib/sysctl.h"
#include "..\driverlib/pin_map.h"
#include "..\driverlib/rom_map.h"
#include "..\driverlib/gpio.h"
#include "..\driverlib/pwm.h"
I have checked in options for this target and I have already this line at C/C++ tab "Preprocessor Symbols":
rvmdk PART_TM4C123GH6PM TARGET_IS_TM4C123_RB1
So I don't know what else to do. Any idea? Thanks!
Francisco
Hi Francisco,
I suggest to compare a working example program such as "hello" to your work. Compare #includes and project settings.
Also, you can use a known working example such as "hello" and use it as base for your PWM program.
- kel
Hi Amit,
Here is the project zip file. Please take note that the only changed part is in the ""PWMDualTest.c" file where is the dead-band function call inserted.
2055.ServoMotorsby4xPWM+ADC(potentiomenter)_V0.zip
Thanks!
Francisco
Hello Francisco
In the Linker section please remove from MISC Box the PART_TM4C123GH6PM
Also please do remember to add the driverlib.lib from TIVAWare Installation
Regards
Amit
Hello Amit,
It was the "driverlib.lib" in the Libraries files option that was missing.
I inserted it as a New group - > Files inside the "Manage Components" of the Project and now it compiles fine.
I have checked arguments of that fuction and I modified it to this:
PWMDeadBandDisable(PWM0_BASE,PWM_GEN_0);
I'll test it later and tell you...
Thanks!
Kind regards and have a nice Friday!
Francisco
Hi Amit,
I have tried to disable dead-band of PWM module 0 with TivaWare C API but I found it not possible right not. I have not now compilation errors, but nothing happens with the system after compiling and downloading to the target.
I used a working project of 2 PWM working, adding to one of them the disable dead-band function, but after that system does not work. Here is the project already modified:
Please take note that the only file I have changed was the PWMDual.c at line 131 (it is commented just before)
3580.ServoMotorsby4xPWM+ADC(potentiomenter)_V1.zip
Thanks!
Kind regards,
Francisco