The past way to make forte.bin smaller was to make eCos smaller by pruning features consided unnecessary. The LMS eCos build(s) came before me and this is my first eCos build.
However it has never been built using Thumb instructions, which could almost half the size since Thumb instructions are 16 bits rather than 32 bits. But forte can't be compiled for thumb instructions if eCos isn't also configured for thumb instructions.
My first own eCos configuration: change to -mthumb and -mthumb-interwork. Then compile and test forte with these same options.
.
First thumb test LMS regression test results:
(LMS regession test: touch, light+led, motors, buttons)
1.works! LMS forte (-O0) with IDE 1.0
2. no! LMS forte (-O2) with IDE 1.0
** doesn't even register with device manager as an eCos device
.
eCos Build Process:
0. Follow instructions in ..\src\modules\lms\lms_ecos\readme_lms_ecos.txt
.
Using ecos centric configtool:
1. open repository
** 1st time: Tool asks for eCos source file directory
** 2nd time: build --> repository.. --> enter eCos source file directory
2. open the .ecc file from forte hg
** file --> open (select file with .ecc)
3. generate build tree
** build--> generate build tree
4. build lib
** build --> library
.
Via eCos Hal --> ARM architecture: checked Thumb options
.
Useful Links:
Config Tool: http://www.ecoscentric.com/devzone/configtool.shtml
Source: ftp://ecos.sourceware.org/pub/ecos/releases/ecos-3.0/ecos-3.0.cygwin.tar.bz2
or ftp://mirrors.kernel.org/
eCos Docs page: http://ecos.sourceware.org/docs.html
How to build: Configuring and Building eCos from Source
No comments:
Post a Comment