cu-ecen-aeld / final-project-atharvdesai1996

final-project-atharvdesai1996 created by GitHub Classroom
0 stars 0 forks source link

Integrating Fingerprint and TMP102 projects into FreeRTOS Application Setup Problems and Debugging Strategies #11

Closed atharvdesai1996 closed 4 years ago

atharvdesai1996 commented 4 years ago

ToDo : Setup FreeRTOS Application on Code Composer Studio for Board Tiva TM4C1294xl.

DoD: To integtrate both the sensor projects successfully in one FreeRTOS application and Configure their UART 3 and I2C interfaces on the Tiva 1294xl

atharvdesai1996 commented 4 years ago

Problem :

Since the Tiva Libaries had free_RTOS demo projects for Tiva 123gxl and dk-1294xl but not for ek-1294xl ( which I was using). I faced a lot of problems while integrating the two sensors projects i.e Fingerprint sensor, TMP 102 sensor on the Tiva Board and to configure the UART 3 for Fingerprint sensor to 9600 baud rate in freeRTOS application

I have shared some of the Debugging scenarios below which I tried out:

atharvdesai1996 commented 4 years ago

Debugging Option 1

--> Checked for all the libraries and header files

--> Also, I tried to incorporate relevant files in ARM Linker and ARM Compiler Options as shared in the screenshot below

filepath include

atharvdesai1996 commented 4 years ago

Debugging Option 2:

--> Since my UART 3 was acting as an interface for fingerprint sensor and this UART 3 was working at 115200 baud rate, I thought of changing the fingerprint sensor Baud rate

--> As mentioned in its Adtech datasheet, its default baud rate was 9600. I tried to change the baud rate by sending the packet to fingerprint sensor but the problem I realized was that the sending packet to change the baudrate needed to to transmitted at 9600. So , this solution didn't work out

fp_data

atharvdesai1996 commented 4 years ago

Debugging Option 3:

--> I researched online for FreeRTOS application sample project files for Tiva TM4C1294xl. There I found this project https://github.com/akobyl/TM4C129_FreeRTOS_Demo and tried to reuse the project and tweak it for my FreeRTOS application and then it worked out. and I was able to change the baud rate to 9600 for my UART 3 of Fingerprint sensor