Static Library and IRQ Handler with McuXpresso

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

Static Library and IRQ Handler with McuXpresso

Jump to solution
454 Views
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.

Tags (1)
0 Kudos
1 Solution
429 Views
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.

 

View solution in original post

0 Kudos
2 Replies
435 Views
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 Kudos
430 Views
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 Kudos