AnsweredAssumed Answered

Problem of IED differences encountered when transplant  ucos on mpc5744

Question asked by yi wang on Oct 31, 2017

 HI .

 

recent , I want to use ucos on mpc5744 ,  and   I found a demo of mpc5643l  on the ucos website , but the IDE what they use is codewarrior 10.x ,It's frustrating that mpc5744 does not support this IDE ,the IDE  what i use is S32 Design Studio for Power Architecture ,Now I have a problem。 There are three functions that have been written in the ucos.They are OSExtIntISR, OSCtxSw, OSTickISR . Their registration in the interrupt is shown below.

 

asm void ivor_branch_table_p0(void) {
nofralloc
.align SIXTEEN_BYTES
IVOR0trap: b IVOR0trap /* Critical Input Interrupt Handler */

.align SIXTEEN_BYTES
IVOR1trap: b IVOR1trap /* Machine check / (NMI) Interrupt Handler */

.align SIXTEEN_BYTES
IVOR2trap: b IVOR2trap /* Data Storage Interrupt Handler */

.align SIXTEEN_BYTES
IVOR3trap: b IVOR3trap /* Instruction Storage Interrupt Handler */

.align SIXTEEN_BYTES
IVOR4trap: b OSExtIntISR /* External Interrupt Interrupt Handler - OSExtIntISR */

.align SIXTEEN_BYTES
IVOR5trap: b IVOR5trap /* Alignment Interrupt Handler */

.align SIXTEEN_BYTES
IVOR6trap: b IVOR6trap /* Program Interrupt Handler */

.align SIXTEEN_BYTES
IVOR7trap: b IVOR7trap /* Floating-Point Unavailable Interrupt Handler */

.align SIXTEEN_BYTES
IVOR8trap: b OSCtxSw /* System Call Interrupt Handler - OSCtxSw */

.align SIXTEEN_BYTES
IVOR9trap: b IVOR9trap /* AP Unavailable Interrupt Handler */

.align SIXTEEN_BYTES
IVOR10trap: b OSTickISR /* Decrementer Interrupt Handler - OSTickISR */

.align SIXTEEN_BYTES
IVOR11trap: b IVOR11trap /* Fixed Interval Timer Interrupt Handler */

.align SIXTEEN_BYTES
IVOR12trap: b IVOR12trap /* Watchdog Timer Interrupt Handler */

.align SIXTEEN_BYTES
IVOR13trap: b IVOR13trap /* Data TLB Error Interrupt Handler */

.align SIXTEEN_BYTES
IVOR14trap: b IVOR14trap /* Instruction TLB Error Interrupt Handler */

.align SIXTEEN_BYTES
IVOR15trap: b IVOR15trap /* Debug Interrupt */
}

 

In my IDE, how do I correspond to this function in  Vector.c   ? The attachment is 5643l demo from ucos website.

 

 

                                                                                                                                 Best wishes for you

 

                                                                                                                                             Yuanqing

Attachments

Outcomes