Hi
I’m moving a working OpenAT application from the ARM ELF GCC toolchain to ARM EABI GCC toolchain.
The result is that AT+WOPEN=7 returns result 17: bad priority value.
By making small changes to the code, like commenting out lines that are not event executed, the application would sometimes run, but produce very weird results (30 < 3, false == true and so forth). I’ve verified that the compiler settings are the same as the ELF toolchain.
The app consists of a static lib and the main application, both written in C++. If I create a new application that doesn’t do anything but call a few methods in the static library, it works as expected. This leads me to believe the size of the app may be the issue.
Another weird symptom is that the status screen contains incorrect information: The first few character are cut off from the Name, Company, Version and some component names. This is the console output:
"DWL","V08b13","","Sierra Wireless",55344,"111611 18:03","dda36757","00010000"
"FW","FW_SRC_747_8.SL6087G","R7.47.0.201202010317.SL6087","Sierra Wireless",2221420,"020112 03:17","31be8644","00020000"
"OAT","525.1","ko","ac (Pty) Ltd",1341068,"052812 16:53","35e3915d","00260000"
-"loper Studio","2.2.0.201205091434-R9457"
-"Open AT Framework package","2.37.0.201202280640"
-"Open AT OS Package","6.37.0.201202060950"
-"Firmware Package","7.47.0.201202010317"
-"Internet Library Package","5.43.0.201202100610"
-"Security Plug-in Package","1.5.0.201108111447"
"ROM","800000"
"RAM","200000"
"DWLNAME","SL6087"
Note the “loper Studio” in stead of “Developer Studio”, 525.1 in stead of 2.2.525.1, “ko” in stead of “Sefeko” and "ac (Pty) Ltd’ in stead of “Gendac (Pty) Ltd”
More info:
-SL Series (SL6087)
-App is written in C++ with the required memory and eabi stubs included as documented
-App size: 1341068 bytes
-Single task: 3072kb stack size
-Newest Developers studio, with all patches applied (2.2.0.201205091434-R9457)
-Memory config: +WOPEN: 6,3712,1408 (I’ve changed this many times)
-Memory type: 256K / 1MB+ makes no difference.
-Optimization: I’ve tried -O0, -O1, -O2 and -Os - nothing makes a difference
I’ve changed every setting I could think of, but with no results. Does anyone have any advice?