We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I can not compile a very simple PWM program on Keil The same program is compiled on Energia The message that I get is below: For your information main.c is in the source file and I use C not C++.
µVision Build Log
Project:
C:\Keil\MyPojects\PortF\Led.uvproj Project File Date: 04/24/2018
Output:
Build target 'PWithM' assembling startup_TM4C123.s... compiling main.c... linking... .\LedMain.axf: Error: L6218E: Undefined symbol GPIOPinConfigure (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol GPIOPinTypePWM (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol PWMGenConfigure (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol PWMGenEnable (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol PWMGenPeriodSet (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol PWMOutputState (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol PWMPulseWidthSet (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol SysCtlDelay (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol SysCtlPWMClockSet (referred from main.o). .\LedMain.axf: Error: L6218E: Undefined symbol SysCtlPeripheralEnable (referred from main.o). Not enough information to list image symbols. Finished: 1 information, 0 warning and 10 error messages. ".\LedMain.axf" - 10 Error(s), 0 Warning(s). Target not created
Suggests you're missing a bunch of source files, or a library, that you supplied with Energia.
The Linker will get closure when you supply all the pieces.
Energia is TI's Arduino-alike - isn't it?
So I guess - like Arduino - it hides a lot of necessary detail from you. Like providing necessary libraries.
Now you're moving to Keil, You're going to have to do all that yourself.
You should probably look to TI for support in taking an Energia project into a "conventional" development environment. Perhaps they have a tool in their Code Composer Studio ... ? (rather like Atmel do for importing Arduino stuff into Atmel Studio).
But you would have to ask TI about that.
Well, whaddya know - a quick google for "Energia Code Composer Studio" gives us:
energia.nu/.../
Google, it's like a bottomless pit of fascinating information...
Thanks a lot I have an idea hope it works
All the other "Error 65" posts are from people using the Simulator on parts Keil does not support simulation on. Use the debugger on real hardware.
You are great!!
thank you