I'm trying to build a project that transmits data via xbee in regular interval of time. So for this I used the uart and rtc functions of ev-cog-ad3029lz. This program works fine in debug mode. When trying to build in release mode it gives this error. I want my project work stand-alone without being connected to the pc. What should I do.?
Hi,
Please read this FAQ it will help you on working with stand alone mode.
Regards,
Jeric
Can you check CrossCore GCC ARM Embedded Assembler, CrossCore GCC ARM Embedded C Compiler and CrossCore GCC ARM C++ Compiler settings All options if you have define -mcpu=cortex-m3. If not, define it to…
You have to configure your linker file to put the data on retained RAM region, goto folder name RTE>>device>>aducm3029 and look for aduc3029.ld change both .data and .bss to DSRAM_A
-jeric
Can you check CrossCore GCC ARM Embedded Assembler, CrossCore GCC ARM Embedded C Compiler and CrossCore GCC ARM C++ Compiler settings All options if you have define -mcpu=cortex-m3. If not, define it to Additional Options under those settings.
Thank you Sir. Now I'm able to build in release mode but the release mode gets stuck in adi_EnterLowPowerMode().
Did you follow the steps on FAQ?
Yes Sir did that.
So the code works fine on debug mode but not release mode? Are you running on semi-hosting (debugger connected)? or standalone mode (flashed the hex/bin to the MCU)?
It work's when the debugger is connected but doesn't work when the hex file is flashed onto the mcu . Sir Simple uart transmission program does work in both the cases . But when adding rtc to uart program fails to work in standalone mode.
Thank You So much Sir. Now it is working fine in both the modes.