# CAN DRIVER IMPLEMENTATION ON FREERTOS

**URL:** <https://forums.freertos.org/t/can-driver-implementation-on-freertos/201>\
**Category:** Kernel\
**Created:** [March 2, 2015, 5:23am UTC](https://forums.freertos.org/t/can-driver-implementation-on-freertos/201 "2015-03-02T05:23:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 2, 2015, 5:23am UTC](https://forums.freertos.org/t/can-driver-implementation-on-freertos/201/1 "2015-03-02T05:23:48Z")

</div>

**[rajputkuldip](https://sourceforge.net/u/rajputkuldip/)** wrote on [Monday, March 02, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/0c3132dd/#4803):

Respected Sir I am working with the project of the CAN driver implementation FreeRTOS I am following the code from the web link [https://github.com/barathbushan/CanDriverOnFreeRTOS](https://github.com/barathbushan/CanDriverOnFreeRTOS)

I am getting the following errors-  
1)While debugging the Demo-1 heap\_2.c file is showing an error,  
2) I did the semihosting settings in the lpcxpresso version 6.1.4 but i am unable to print the data to be sent and data received in the console while running the code. I have written the printf statements in the can.c file and the main.c file.  
Would anybody please help me regarding this i will be very thankful to you.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 2, 2015, 11:17am UTC](https://forums.freertos.org/t/can-driver-implementation-on-freertos/201/2 "2015-03-02T11:17:12Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, March 02, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/0c3132dd/#1f7d):

> FreeRTOS I am following the code from the web link

We are unable to provide direct support for third party examples or drivers, but can provide general FreeRTOS advice.

> 1)While debugging the Demo-1 heap\_2.c file is showing an error,

Ok, but unfortunately I cannot suggest a solution, because you have not said what the error is.

> 1. I did the semihosting settings in the lpcxpresso version 6.1.4

You will probably find that the interrupts used by the semi hosting will clash with the interrupts used by FreeRTOS - much better to direct printf() output to a UART.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 3, 2015, 6:31am UTC](https://forums.freertos.org/t/can-driver-implementation-on-freertos/201/3 "2015-03-03T06:31:59Z")

</div>

**[rajputkuldip](https://sourceforge.net/u/rajputkuldip/)** wrote on [Tuesday, March 03, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/0c3132dd/#530f):

Sir,  
I have attached the sample code of the framework that i am following. The code is not showing any error, but i am unable to show the result in the console view of Lpcxpresso IDE. I have did the setting change in the quick panel menu-\> edit project settings-\>settings-\>MCU Linker-\>settings-\> redlib(semihost). But still i am unable to print any statement from the main.c and other files to. Please suggest me the possible solution regarding this problem.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 3, 2015, 9:06am UTC](https://forums.freertos.org/t/can-driver-implementation-on-freertos/201/4 "2015-03-03T09:06:59Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, March 03, 2015](https://sourceforge.net/p/freertos/discussion/382005/thread/0c3132dd/#530f/0260):

I can only repeat myself and say, best not to use semi hosting and  
direct output to a UART instead. Besides which, your question is not  
related to FreeRTOS but the use of the LPCXpresso tool - in which case  
you are posting the question to the wrong forum anyway as NXP provide a  
forum for LPCXresso support.

Regards.
