I built a project using CW v10.6 with MC56F82743, i did not use P&E mode. But i don't know where to modify the interrupt vertor. Do i need to import the interrupt vector.c manually? or built one?
 
					
				
		
 xiangjun_rong
		
			xiangjun_rong
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
If you do not use PE, there is a file MC56F827xx_vector.asm, which define the vector table, you have to add the ISR in the table.
for example, you define an isr in main.c
void QDCISR(void);
void QDCISR(void)
{
asm("nop");
}
in the MC56F827xx_vector.asm, you can write in this way.
.........................
section interrupt_vectors
    XREF QDCISR
    org    p:
    
    global    FMC56F847xx_intVec
FMC56F847xx_intVec:
  
;Interrupt                              ;Description                               Pri  VBA+  #
; jsr >Finit_MC56F847xx_ISR_HW_RESET  ;Reserved for Reset Overlay                      0x00  0
; jsr >MC56F847xx_ISR_COP_RESET        ;Reserved for COP Reset Overlay                 0x02  1
 jsr >MC56F847xx_ISR_ILLEGALOP        ;Illegal Instruction                       3    0x04  2
 jsr >MC56F847xx_ISR_SWI3             ;SW Interrupt 3                            3    0x06  3
 jsr >MC56F847xx_ISR_OVERFLOW         ;Hardware Stack Overflow                   3    0x08  4
 jsr >MC56F847xx_ISR_MISALIGNED       ;Misaligned Data Access                    3    0x0A  5
 jsr >MC56F847xx_ISR_STPCNT           ;EOnCE Step Counter Interrupt              1-3  0x0C  6
 jsr >MC56F847xx_ISR_BKPT             ;EOnCE Breakpoint Unit                     1-3  0x0E  7
 jsr >MC56F847xx_ISR_TRBUF            ;EOnCE Trace Buffer Interrupt              1-3  0x10  8
 jsr >MC56F847xx_ISR_TX_REG           ;EOnCE Transmit Register Empty             1-3  0x12  9
 jsr >MC56F847xx_ISR_RX_REG           ;EOnCE Receive Register Full               1-3  0x14  10
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED          
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED          
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED          
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED 
 jsr >MC56F847xx_ISR_UNUSED
....................................
jsr >FQDCISR ; MC56F847xx_ISR_UNUSED
...............................
Hope it can help you
BR
Xiangjun Rong
YES!
Best regards,
Chuan-gang Xu(徐传岗)
Software engineer
Bel Power (Hangzhou) Co., Ltd.
O +86 571.8669.6947 x8607 | F +86 571.8669.6949
E chuangang.xu@belf.com<mailto:chuangang.xu@belf.com> (New email address)
2nd Floor, Building E, Eastcom City, 66 Dongxin Avenue
Hangzhou, Zhejiang 310053, China
belfuse.com
发件人: khalil001
发送时间: 2016年12月12日 14:18
收件人: Chuanggang Xu <Chuangang.Xu@belf.com>
主题: Re: - Re: MC56F82743 interrupt vector table
NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>
Re: MC56F82743 interrupt vector table
reply from 金峰 吴<https://community.nxp.com/people/khalil001?et=watches.email.thread> in CodeWarrior for MCU - View the full discussion<https://community.nxp.com/message/859327?commentID=859327&et=watches.email.thread#comment-859327>
I am using the MC56F8005 DEMO.
And I have a problem about the interrupt.
I don't know how to use TMR0 generate a interrupt.
don't know how to define the interrupt fuction.
Could you help me , and give me some advices
I’m a fresh man too. But are u sure you are using is MC56F8005? And maybe P&E mode can make it convenient for you.
Best regards,
Chuan-gang Xu(徐传岗)
Software engineer
Bel Power (Hangzhou) Co., Ltd.
O +86 571.8669.6947 x8607 | F +86 571.8669.6949
E chuangang.xu@belf.com<mailto:chuangang.xu@belf.com> (New email address)
2nd Floor, Building E, Eastcom City, 66 Dongxin Avenue
Hangzhou, Zhejiang 310053, China
belfuse.com
发件人: khalil001
发送时间: 2016年12月12日 14:56
收件人: Chuanggang Xu <Chuangang.Xu@belf.com>
主题: Re: - Re: MC56F82743 interrupt vector table
NXP Community <https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg>
Re: MC56F82743 interrupt vector table
reply from 金峰 吴<https://community.nxp.com/people/khalil001?et=watches.email.thread> in CodeWarrior for MCU - View the full discussion<https://community.nxp.com/message/859329?commentID=859329&et=watches.email.thread#comment-859329>
