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.

Having problems starting with TivaWare

So I have undertaken a project that requires a moderately fast processor so I picked the tm4c123g and bought the EK devlopment kit. I have downloaded CCS 6 and tivaware and have installed both. I find learning easiest with example which is why I'm good at the Arduino language (and it's easy). The examples in TivaWare I find quite poor for beginners to C for micro controllers and TivaWare. So I have spent a lot of time reading 3rd party material and have had a lot of hit and miss. I found the TM4C work book and found that okay however when I tried to copy and paste the ADC example it wouldn't compile due to not finding the include files. I followed the installation of CCS and TivaWare in this book. All I want is a good intro into using CCS and then a good reference for code when I get stuck.

What I am to do is use the micro to measure an analogue value and write it to a text file in SD card continuously ideally at the 1MHz the tm4c ADC is capable of or as close to that as possible.

The SD card example in TivaWare is only for reading an SD card and there isn't an ADC example.

Could someone help me with this?

Thanks

  • George Waller said:
    I found the TM4C work book and found that okay however when I tried to copy and paste the ADC example it wouldn't compile due to not finding the include files

    Is this the laboratory workshop for Tiva Launchpad? This laboratory workshop was made years ago and not updated for current Tivaware Version. If you are not familiar with what changes need to be made referring to that laboratory workshop, most likely you will encounter build errors.

    One way is to just use a example program like hello and then append your code.

    George Waller said:
    What I am to do is use the micro to measure an analogue value and write it to a text file in SD card continuously ideally at the 1MHz the tm4c ADC is capable of or as close to that as possible.

    You can refer to the qs-logger example program. But that does not have an option to store ADC data to SD Card. You need to modify it to your requirements.

    - kel

  • I find the qs logger program quite overwhelming. So for example are all the .c files needed to run one program? Or is each one independent?
  • George Waller said:
    I find the qs logger program quite overwhelming

    It will take some time to understand, how the entire program works.

    George Waller said:
    So for example are all the .c files needed to run one program?

    Yes.

    You can use the qs-logger as reference for learning. But, much better if you just approach your project one step at a time. Make the ADC code work first and maybe output values to Serial Console. Then learn how to save those data to SD Card. 

    - kel