-
Posts
9 -
Joined
-
Last visited
Content Type
Forums
Store
Downloads
Blogs
Posts posted by radiotech
-
-
Add all files get linking errors
linking...
velo.axf: Error: L6218E: Undefined symbol Image$$RW_IRAM1$$ZI$$Limit (referred from chmemcore.o).
velo.axf: Error: L6218E: Undefined symbol Image$$RW_IRAM2$$Base (referred from chmemcore.o).
Target not created -
'implicit declaration' warning dont go away. I didnt write any includes manually.
Add this string
np = (void*)gfxAlloc((size_t)newsz);
Error is gone. But three new errors add
compiling chibios.c...
ext/ugfx/src/gos/chibios.c(63): warning: #223-D: function "chHeapAlloc" declared implicitly
linking...
velo.axf: Error: L6218E: Undefined symbol _gdispDeinit (referred from gfx.o).
velo.axf: Error: L6218E: Undefined symbol _gdispInit (referred from gfx.o).
velo.axf: Error: L6218E: Undefined symbol chHeapAlloc (referred from chibios.o).
Target not created -
You are missing the path to .\ext\ugfx\src\gos.
Make sure that you add .\ext\ugfx\src\gos\chibios.c to your sources as well.
~ Tectu
Add to path, no result
-
Version of ChibioOS 2.6.5
Include PATH:
..\veloos;
.\os\kernel\include;
.\os\ports\common\ARMCMx;
.\os\ports\common\ARMCMx\CMSIS\include;
.\os\ports\RVCT\ARMCMx;
.\os\ports\RVCT\ARMCMx\STM32F1xx;
.\os\hal\include;
.\os\hal\platforms\STM32;
.\os\hal\platforms\STM32F1xx;
.\conf;
.\os\hal\platforms\STM32\GPIOv1;
.\ext\ugfx;
.\ext\ugfx\src\gdisp;
.\ext\ugfx\src\gdisp\fonts;
.\ext\ugfx\src\gdisp\mcufont;
.\ext\ugfx\drivers\gdisp\SSD1289 -
I found similar problem here http://www.keil.com/forum/20793/
-
Thank you, Tectu.
Second error was corrected. Definition of size_t type:
#if defined(__cplusplus) || !defined(__STRICT_ANSI__)
/* unconditional in C++ and non-strict C for consistency of debug info */
typedef unsigned int size_t;
#elif !defined(__size_t)
#define __size_t 1
typedef unsigned int size_t; /* others (e.g. ) also define */
/* the unsigned integral type of the result of the sizeof operator. */
#endif -
Hi everybody,
I have a problem with a compilation project in Keil. File chibios.c not compiled, Keil produces 2 errors:
in
void *gfxRealloc(void *ptr, size_t oldsz, size_t newsz)
{
void *np;
if (newsz <= oldsz)
return ptr;
np = gfxAlloc(newsz); // 63 string string with error
if (!np)
return 0;
if (oldsz)
memcpy(np, ptr, oldsz);
return np;
}error:
ext\ugfx\src\gos\chibios.c(63): warning: #223-D: function "chHeapAlloc" declared implicitly
ext\ugfx\src\gos\chibios.c(63): error: #513: a value of type "int" cannot be assigned to an entity of type "void *"second
gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param)
{
if (!stackarea) {
if (!stacksz) stacksz = 256;
return chThdCreateFromHeap(0, stacksz, prio, fn, param); //156 string with error
}
if (!stacksz)
return 0;
return chThdCreateStatic(stackarea, stacksz, prio, fn, param);
}error
ext\ugfx\src\gos\chibios.c(156): warning: #223-D: function "chThdCreateFromHeap" declared implicitly
ext\ugfx\src\gos\chibios.c(156): error: #120: return value type does not match the function typeChibios without ugfx work fine. Please help me.
-
Ok, Tectu ask me, but i can't send PM, so I have to answer this way - here is my current status:
My plan is to create project using Em::Blocks IDE for STM32 Camera rev. 3.1 board with uGFX. Currently i've created project, added ugfx and created gos/baremetal.c and gos/baremetal.h - actually based on Chibios template. I've created gfxconf.h and set new definition GFX_USE_OS_BAREMETAL. Now i'm resolving compilation errors because of the new system definition (i'm totally new with mutexes, semaphores, etc... so please be patient)
Pablo2048
Hi Pablo2048. I want make project with STM32F103 and SSD1289 + uGFX (on bare metal). Wanted to know what the progress in your work?
chibios.c not compiled in Keil
in Support
Posted
Thank you, Tectu. You helped me a lot.