Jump to content

radiotech

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by radiotech

  1. 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

  2. '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

  3. 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

  4. 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

  5. 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 type

    Chibios without ugfx work fine. Please help me.

  6. 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?

×
×
  • Create New...