This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
183 Views 1 Replies Last post: Mar 9, 2010 12:51 AM by micaelb RSS
tonuonu Newbie 5 posts since
Feb 24, 2010
Currently Being Moderated

Mar 7, 2010 6:49 AM

FFT example on IAR

I have external requirement to use IAR instead of HEW.Now trying to make FFT examples to work on R32C112 without success.

 

To make it compile at all I renamed .a30 files to .asm, then changed beginning like this:

--8<------------------------------

       NAME FastFourierTransform64
       PUBLIC FastFourierTransform64
       RSEG CODE
           
           
FastFourierTransform64:

 

        mov.l       a0, a0b     ; a0b = a0 = x
        mov.l       a1, a1b     ; a1b = a1 = w       

--8<------------------------------

Now what I get is error I cannot get rid of:

 

--8<------------------------------

Building configuration: MyIAR - Release
Updating build tree...
FastFourierTransform_r32c.asm
Error[As026]: Limit exceeded: Allowed range is 0xffffff80 - 0x7f (-128 - 127), value is 0xffffff7c (-132) C:\Documents and Settings\bill\Desktop\HW Development\minuIAR\FastFourierTransform_r32c.asm 123
Error[As026]: Limit exceeded: Allowed range is 0xffffff80 - 0x7f (-128 - 127), value is 0xffffff64 (-156) C:\Documents and Settings\bill\Desktop\HW Development\minuIAR\FastFourierTransform_r32c.asm 128
Error[As026]: Limit exceeded: Allowed range is 0xffffff80 - 0x7f (-128 - 127), value is 0xffffff4c (-180) C:\Documents and Settings\bill\Desktop\HW Development\minuIAR\FastFourierTransform_r32c.asm 133
Error while running Assembler

Total number of errors: 3
Total number of warnings: 0


--8<------------------------------

 

Those three errors all point to three lines:

 

        jltu        loop_*

 

Unsure what should I do. I think we need some doc describing this procedure (C and ASM integration, porting from HEW to IAR)? Google didn't help either. I have read documentation on http://www.iar.com/website1/1.0.1.0/165/1/ without much outcome.

Tags: fft, asm, r32c, iar
micaelb Newbie 15 posts since
Jul 4, 2008
Currently Being Moderated
Mar 9, 2010 12:51 AM in response to: tonuonu
Re: FFT example on IAR

According to the chip sw manual, the JLTU jump only manages the distance +/-128 (dsp:8) so I assume that the label loop_* is outside this area.

More Like This

  • Retrieving data ...

Bookmarked By (0)