Static Library and IRQ Handler with McuXpresso

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Static Library and IRQ Handler with McuXpresso

跳至解决方案
1,194 次查看
gph
Contributor III

Hi,

I want to make a static library who handle some IRQ and main program who use FreeRTOS semaphores to handle the specifics processing.

Some things escape me and i don't understand how to make this properly.

I tried to make a static lib but it have his hown SDK and peripherals definition.
IRQ Handler and initialization in lib are not called.

Which is the best practice to resolve this issue ?

Thanks, Philippe.

标记 (1)
0 项奖励
回复
1 解答
1,169 次查看
gph
Contributor III

Hi,

1) LPC54606 with MCUXpresso SDK 2.12, FreeRTOS 10.4.3, MCUXpresso IDE V11.6

2) Initially i want to put the IRQ_Handler in library, but the best is the IRQ_Handle stay in mains program and call a function in lib. It solved my problem.

 

Thanks a lot.

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,175 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Can you give us more detailed information such as:

1)Part number and IDE tools you are using

2)as you know that the library is a set of api function so that user can call the api function in library, pls tell us the api function, what feature you want to implement, the required variable, the input parameter, output parameter..in the api function in library

I suppose that you should not implement IRQ_Handler in library, but you can call the api function in library in IRQ_Handler().

BR

XiangJun Rong

0 项奖励
回复
1,170 次查看
gph
Contributor III

Hi,

1) LPC54606 with MCUXpresso SDK 2.12, FreeRTOS 10.4.3, MCUXpresso IDE V11.6

2) Initially i want to put the IRQ_Handler in library, but the best is the IRQ_Handle stay in mains program and call a function in lib. It solved my problem.

 

Thanks a lot.

 

0 项奖励
回复