Jump to content
43oh

Using assembly Code .asm file with energia


Recommended Posts

I am using CC3200 launchpad. It is giving error "arm_cfft_f32.c:(.text.arm_cfft_f32+0x92): undefined reference to 'arm_bitreversal_32'. collect2.exe: error: ld returned 1 exit status.

this function is defined in arm_bitreversal2.asm but it is in assembly code. 

 

Now I have managed to compile it by changing arm_bitreversal_32 to arm_bitreversal_f32 but when I call arm_bit_reverse_32() function, it goes in FaultISR() infinite loop.

Interestingly when I do bitreverse = false in my main program then it runs fine but results are not as expected. 

Link to post
Share on other sites

You stumbled on a bug in the compiler command. The .S files should not be compiled with -assembler-with-cpp.

 

I have fixed it and committed the patch: https://github.com/energia/Energia/commit/5889fd97028c60da2a0dac64c2614f0d18759b0c

 

Attached is the pde.jar with the fix. Unzip and replace the original one with this one. You might want to backup the original one before replacing it.

pde.jar.zip

Link to post
Share on other sites
  • 6 months later...

You stumbled on a bug in the compiler command. The .S files should not be compiled with -assembler-with-cpp.

 

I have fixed it and committed the patch: https://github.com/energia/Energia/commit/5889fd97028c60da2a0dac64c2614f0d18759b0c

 

Attached is the pde.jar with the fix. Unzip and replace the original one with this one. You might want to backup the original one before replacing it.

I have a build of energia from TI's website dated 8-4-2016 and it still puts that -assembler-with-cpp option on my .S files.  Energia won't start with the pde.jar linked here.  Is it possible that bug resurfaced in the newer build?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...