How to create counter evkimxrt1050 ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create counter evkimxrt1050 ?

1,220 Views
omerkaanbasakin
Contributor IV

Hello, ı am working on imxrt 1050 evk and ı cant find the timer library in SDK_2.6.0_EVKB-IMXRT1050. I download another sdk LPC845_PWM_LED. In second sdk ı found ctimer.h and add to my code. When ı debbug it ,many problems occurs. Cant ı use it ? If ı cant how can ı use counter? ( Add ctimer.h with drag and drop into my code drivers)

Tags (1)
0 Kudos
Reply
5 Replies

1,053 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

prvSampleTimeNow is a FreeRTOS internal function. You can see it is announced as static. It means functions outside timers.c can't call it.

RT1050 hasn't ctimer. But it has PIT, PWM and GPT. All of them are timer. Please refer to their examples in SDK.

Regards,

Jing

1,053 Views
omerkaanbasakin
Contributor IV

Hi, 

jingpan‌ thank you for your all support. You have no idea how much you helped. 

Regards,

Kaan


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos
Reply

1,053 Views
omerkaanbasakin
Contributor IV

I tried to use  freertos and problem occurs.Ekran Görüntüsü (9).png

I tried to get value from timer but cant use function prvSampleTimeNow(),

Ekran Görüntüsü (10).png

Anyone can help me ?

0 Kudos
Reply

1,053 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Omer,

No, you can't use it. RT1050 hasn't ctimer. LPC845's code won't work no RT1050. If you want to blink a led on RT1050 evb, please use iled_blinky demo in RT1050 SDK.

Regards,

Jing

0 Kudos
Reply

1,053 Views
omerkaanbasakin
Contributor IV

Hi jingpan‌ , thank you for your reply. I dont want to blink led. I want to create and use counter. Cant find counter function in 1050. Do ı have to create counter function by myself ?

0 Kudos
Reply