Semihosting with EFM32PG12B, Linker Error: __HeapBase

Sysprogs forums Forums VisualGDB Semihosting with EFM32PG12B, Linker Error: __HeapBase

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34683
    tim
    Participant

    Hello,

    I want to use “semihosting” with Target: EFM32PG12B500F1024GM48

    Error Messages:
    Error undefined reference to `__HeapBase' EmTestSemihosting C:\Workspace\VS2019\EmTestSemihosting\VisualGDB\Debug\__BSP_ROOT__\framework\common\toolchain\src\sl_memory.o 0
    Error undefined reference to `__HeapLimit' EmTestSemihosting m:\Repository\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.silabs.efm32\framework\common\toolchain\src\sl_memory.c 109

    The BSP is EFM32 6.4.4

    corresponding Linker Script: EFM32PG12B500F1024GM48_flash.lds

    There is now Definition for

    extern char __HeapBase[];
    extern char __HeapLimit[];

    Do I need Heap at all? (for semihosting)

    Kind Regards

    Thomas

     

    • This topic was modified 8 months, 2 weeks ago by support. Reason: formatting
    #34684
    support
    Keymaster

    Hi,

    Thanks for pointing this out. The new Gecko SDK indeed provided its own implementation of _sbrk() that was not fully compatible with the VisualGDB-generated linker scripts.

    Since VisualGDB provides its own implementation, it is not really needed. We have updated the BSP removing it. Feel free to re-download it via Tools->VisualGDB->Manage VisualGDB Packages.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.