Laxmi 0 Posted February 1, 2016 Share Posted February 1, 2016 Hello, I was importing CMSIS 4.5 in energia but It is not building correctly because there is a .asm file in DSP library which is not compiling. Is there any way to compile .asm file in energia. Quote Link to post Share on other sites
L.R.A 78 Posted February 1, 2016 Share Posted February 1, 2016 board being used, which errors occur? how are you importing it? Laxmi 1 Quote Link to post Share on other sites
Laxmi 0 Posted February 1, 2016 Author Share Posted February 1, 2016 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. Quote Link to post Share on other sites
L.R.A 78 Posted February 1, 2016 Share Posted February 1, 2016 try also asking in ti community forum, asm is very specific. Quote Link to post Share on other sites
Laxmi 0 Posted February 1, 2016 Author Share Posted February 1, 2016 I asked there but they told me it is related to energia so ask here. Quote Link to post Share on other sites
energia 485 Posted February 1, 2016 Share Posted February 1, 2016 Energia ignores .asm files. I only compiles .c, .cpp and .S files. Try changing the extension to .S. Where did you get the CMSIS files and where did you put them in Energia? Quote Link to post Share on other sites
Laxmi 0 Posted February 4, 2016 Author Share Posted February 4, 2016 I downloaded it from ARM site and placed it in libraries folder of CC3200 with some modification. Quote Link to post Share on other sites
Laxmi 0 Posted February 4, 2016 Author Share Posted February 4, 2016 So it means, I can also write assembly codes? Quote Link to post Share on other sites
Laxmi 0 Posted February 4, 2016 Author Share Posted February 4, 2016 I am getting following error when I changed .asm file to .s extension C:\Users\LAXMIK~1\AppData\Local\Temp\build3667472384792498114.tmp\CMSIS_DSP\arm_bitreversal2.S.o] arm-none-eabi-gcc: error: unrecognized command line option '-assembler-with-cpp' Quote Link to post Share on other sites
energia 485 Posted February 5, 2016 Share Posted February 5, 2016 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 bluehash 1 Quote Link to post Share on other sites
somecoder 0 Posted August 18, 2016 Share Posted August 18, 2016 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? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.