Skip to content

Build errors #140

Description

@csurf

I'm having trouble building the bootloaders.

I downloaded the repo, and updated the platformio.ini file to point to 'toolchain-gccarmnoneeabi@1.40804.0' in order to pull gcc 4.8.4.

I'm getting errors like the following:

../.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: .pio/build/gd32f1-frankenmaple/firmware.elf section `._usrstack' will not fit in region `RAM'
../.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: region `RAM' overflowed by 92 bytes

ALL of the builds fail.

also getting the following warnings:

dfu.c: In function 'dfuCopyState':
dfu.c:379:9: warning: return discards 'volatile' qualifier from pointer target type [enabled by default]
         return (&(dfuAppStatus.bState));
         ^
In file included from usb_lib/usb_lib.h:21:0,
                 from usb.h:28,
                 from common.h:40,
                 from usb_descriptor.h:28,
                 from usb_descriptor.c:35:
usb_lib/usb_type.h:23:14: warning: initialization makes integer from pointer without a cast [enabled by default]
 #define NULL ((void *)0)
              ^
usb_descriptor.c:201:28: note: in expansion of macro 'NULL'
 u8 u8_usbStringInterface = NULL;

The reason I need to build is because I need a bootloader for the NAZE32 rev5 board which has a 12MHz xtal (your build is apparently for rev4, with the 8MHz xtal, and it doesn't work).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions