Thanks, I have used the Makefile provided with examples,now they can run 
successfully.
but when I want to try a example,I must use J-LINK to download the binfile into 
kwikstik's flash.
Is there any easy methods to do this by the redboot,such as use the redboot's 
load command,
first load the file into RAM,then use the redboot's go command to execute the 
example app,
if the app work successfully,then use J-LINK to download into flash.
I have try this way,setp1. download redboot ROM startup for Kwikstik,and get 
the below info when redboot startup
Platform: Freescale KwikStik (Cortex-M4)                                       
RAM: 0x1fff8000-0x20007000 [0x1fffb6a8-0x20007000 available] 
step2. download the example app twothreads.bin,use
RedBoot> load -v -m ymodem                                                     
CCUnrecognized image type: 0x20008000                                          
xyzModem - CRC mode, 4(SOH)/0(STX)/0(CAN) packets, 4 retries 
then tryRedBoot> load -r -m ymodem -b 0x1fffb6a8                                
       CRaw file loaded 0x1fffb6a8-0x20000ae7, assumed entry at 0x1fffb6a8      
      xyzModem - CRC mode, 172(SOH)/0(STX)/0(CAN) packets, 4 retries            
     RedBoot> go -c 0x1fffb6a8                                                  
                 $T050f:a8b6ff1f;0d:e86f0020;#5c
both seems fail
 ----------------------------------------
> Date: Tue, 26 Jun 2012 12:26:44 +0200
> From: ili...@siva.com.mk
> To: tzi...@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] kinetis kwikstik's ecos trouble
>
> On 26.06.2012 08:39, tangwei wrote:
> > Dear all,
> > redboot have run on my kwikstik ok, but I am not sure whether the ecos is 
> > OK, my steps is below:
> > use the CVS version which contains freescale's kwikstik template,
> > 1. use the default setting for kwikstik to get the "libtarget.a" and etc;2. 
> > build the examples from the ecos/examples/ ,such as hello.c ,twothreads.c 
> > ,simple-alarm.c
> > use the command below
> > /opt/ecos/gnutools/arm-eabi/bin/arm-eabi-gcc -g -D_ECOS -I 
> > ../../test/default_install/include/ simple-alarm.c -L 
> > ../../test/default_install/lib -Ttarget.ld -nostdlib
>
> This command line isn't correct. Should contain flags: -mthumb
> -mcpu=cortex-m3 (if you are using gcc-4.6 or newer you can also put
> -mcpu=cortex-m4)
> Recommended: -O2
>
> I recommend you, as a template, to use the Makefile provided with examples.
>
> I hope this helps.
>
> Ilija
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
                                          

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Reply via email to