Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 231906

Forum Post: RE: TM4C123GH6PM: Get started of ARM-based Microcontroller TM4C123GH6PM

$
0
0
[quote userid="315608" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1496023/tm4c123gh6pm-get-started-of-arm-based-microcontroller-tm4c123gh6pm"] I imported the example project is ok and could debug or download to the chip. But it can not worked if I created a new project, even the codes are the same as the example. [/quote] My recommendation for creating a new project will be to modify based on working project so all the CCS settings, include paths and etc are setup. [quote userid="315608" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1496023/tm4c123gh6pm-get-started-of-arm-based-microcontroller-tm4c123gh6pm"] Please let me know if you need any information for the trouble shooting. [/quote] Based on your above errors, the compiler is unable to find drivers/buttons.h The buttons.h file is at C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c123gxl\drivers. Therefore, you need to have the include paths that can searched by the compiler to find the source files. See below. This is why I suggest to base off an existing working example and then copy that project as a starting point for your new project. You can start with the example like C:\ti\org_TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c123gxl\qs-rgb or C:\ti\org_TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c123gxl\hello or even the simplest one like C:\ti\org_TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c123gxl\blinky. If you are using buttons.c file, you need to make sure that file is linked to your project. See below that is already done for the qs-rgb example so if you base off this example, you will not have any compile issues. [quote userid="315608" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1496023/tm4c123gh6pm-get-started-of-arm-based-microcontroller-tm4c123gh6pm"] I used to use register level for coding, so I just check some functions that might be used in our project. Please let me know if you need any information for the trouble shooting. [/quote] Register level of coding style is not recommended as it is very prone to mistakes. This is why we offer simple-to-use peripheral drivers by calling API functions. It can be one simple API call that saves hundreds of lines of register level coding.

Viewing all articles
Browse latest Browse all 231906

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>