keil error when trying to build

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

keil error when trying to build

Post by daviddawe1982 »

Hello all,
i followed a tutorial to get keil configured for my stm32f4 and chibios but i get a error when i try to build
error : " main.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST. "
from what google tells me some thing to do with no startup file is this correct ??
how do i check if i have included the chibios start up file??
tutorial : http://www.chibios.org/dokuwiki/doku.php?id=chibios:community:guides:keil_uvision_chibios_rt_how-to
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: keil error when trying to build

Post by Giovanni »

Hi,

I suggest you take one of the F4 keil projects from 2.4.3 and then modify it. Don't use those in 2.5.x because they have to be updated.

Giovanni
daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Re: keil error when trying to build

Post by daviddawe1982 »

ok i worked out the last problem now i am getting this error :

Build target 'Demo'
linking...
.\obj\ch.axf: Error: L6218E: Undefined symbol GDISP (referred from main.o).
.\obj\ch.axf: Error: L6218E: Undefined symbol gdispDrawPixel (referred from main.o).
.\obj\ch.axf: Error: L6218E: Undefined symbol gdispInit (referred from main.o).
Target not created

at first the demo went fine and downloaded to the board as it should but when i modify it trying to add chibios gfx i get the error, where and how should i define the gdisp stuff
thanks
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: keil error when trying to build

Post by Tectu »

Have you followed the documentation? Did you add the gfxconf.h as well?
I don't know about KEIL but there are people using ChibiOS/GFX with KEIL without any problems. You just have to include everything properly into your project with which I cannot help you.


~ Tectu
daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Re: keil error when trying to build

Post by daviddawe1982 »

yep i added the gfxconf file i even tested it by deleting it and trying to build and keil picked it up straight away..
daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Re: keil error when trying to build

Post by daviddawe1982 »

what chibios files define these??
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: keil error when trying to build

Post by Tectu »

I don't know how KEIL does handle this stuff but are you sure that ALL related files are in your project tree? Have you tried to completely clean and rebuild the project?


~ Tectu
daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Re: keil error when trying to build

Post by daviddawe1982 »

Yea i tried a rebuild i am now going to try out chibios studio i am just having trouble using open ocd just having trouble getting it to work i am using the windows openocd i could get it to run buy cmd and connect via telnet with cmd but when i try to configure eclipse it will not work i may try the script version of openocd tonight . As far as building i only get 1 error that there is no make in PATH
Post Reply