You are not logged in.

#1 2020-11-07 16:03:55

stolichniaskitnik
Member
Registered: 2017-09-29
Posts: 34

Issues with v7e-m libraries from arm-none-eabi-ld when building myevic

Hello all,


I'd like to upgrade my vape mod's firmware with myevic custom one from here: https://github.com/ClockSelect/myevic


I've been following the below instructions
- https://github.com/ClockSelect/myevic/b … uild_en.md
- https://github.com/ReservedField/evic-s … /README.md

and the exact commands I ran were as follows:

git clone https://github.com/OpenNuvoton/M451BSP.git
git clone https://github.com/ClockSelect/myevic.git
mkdir myevic/nuvoton-sdk
cp -r M451BSP/Library myevic/nuvoton-sdk
cd myevic
EVICSDK=. make

Upon running the make command I get the bellow output:

┌─[tsvetkov@anna] - [~/Documents/builds/evic_firmware/myevic] - [Sat Nov 07, 15:37]
└─[$] <git:(master*)> EVICSDK=. make
test -d bin || mkdir bin
arm-none-eabi-ld --start-group  ./nuvoton-sdk/Library/Device/Nuvoton/M451Series/Source/system_M451Series.o ./nuvoton-sdk/Library/StdDriver/src/clk.o ./nuvoton
-sdk/Library/StdDriver/src/fmc.o ./nuvoton-sdk/Library/StdDriver/src/gpio.o ./nuvoton-sdk/Library/StdDriver/src/spi.o ./nuvoton-sdk/Library/StdDriver/src/sys.
o ./nuvoton-sdk/Library/StdDriver/src/timer.o ./nuvoton-sdk/Library/StdDriver/src/rtc.o ./nuvoton-sdk/Library/StdDriver/src/usbd.o ./nuvoton-sdk/Library/StdDr
iver/src/eadc.o ./nuvoton-sdk/Library/StdDriver/src/pwm.o ./nuvoton-sdk/Library/StdDriver/src/wdt.o ./nuvoton-sdk/Library/StdDriver/src/uart.o ./nuvoton-sdk/L
ibrary/StdDriver/src/crc.o src/myevic.o src/main.o src/myprintf.o src/atomizer.o src/dataflash.o src/screens.o src/menus.o src/mainview.o src/battery.o src/ev
ents.o src/myrtc.o src/miscs.o src/eh.o src/timers.o src/meadc.o src/megpio.o src/strings.o src/meusbd.o src/vcom.o src/storage.o src/flappy.o src/fbdata.o sr
c/fonts.o src/display.o src/SSD1306.o src/SSD1327.o --end-group -u __aeabi_uldivmod -L/usr/arm-none-eabi/lib -L/usr/arm-none-eabi/newlib -L/usr/arm-none-eabi/
newlib/thumb -L/usr/gcc/arm-none-eabi/10.2.0 -L/usr/gcc/arm-none-eabi/10.2.0/thumb -gc-sections -nostdlib -nostartfiles -Tlinker.ld -o bin/myevic.elf
arm-none-eabi-ld: src/eh.o:(.bss.NewMillis+0x0): multiple definition of `NewMillis'; src/atomizer.o:(.bss.NewMillis+0x0): first defined here
arm-none-eabi-ld: cannot find v7e-m/libnosys.a
arm-none-eabi-ld: cannot find v7e-m/libgcc.a
arm-none-eabi-ld: cannot find v7e-m/libc.a
arm-none-eabi-ld: cannot find v7e-m/libm.a
make: *** [Makefile:194: myevic_dec.bin] Error 1
┌─[tsvetkov@anna] - [~/Documents/builds/evic_firmware/myevic] - [Sat Nov 07, 15:37]
└─[$] <git:(master*)> 

I should also mention that the below packages are installed as dependencies:

┌─[tsvetkov@anna] - [~/Documents/builds/evic_firmware/myevic] - [Sat Nov 07, 15:51]
└─[$] <git:(master*)> pacman -Q | grep "arm*.none*.eabi\|python-evic-git"
arm-none-eabi-binutils 2.35.1-1
arm-none-eabi-gcc 10.2.0-1
arm-none-eabi-newlib 3.3.0-1
python-evic-git 124.ef62fa6-1
┌─[tsvetkov@anna] - [~/Documents/builds/evic_firmware/myevic] - [Sat Nov 07, 15:52]
└─[$] <git:(master*)>

When I checked the /usr/arm-none-eabi path for the 4 libraries marked I get the below output. As you can see there is a nofp directory between the v7e-m and the libraries themselves. Additionally there isn't a libgcc.a library anywhere within the /usr/arm-none/eabi path.

┌─[tsvetkov@anna] - [~/Documents/builds/evic_firmware/myevic] - [Sat Nov 07, 15:56]
└─[$] <git:(master*)> find /usr/arm-none-eabi -type f | grep "libnosys.a\|libgcc.a\|libc.a\|libm.a" | grep v7e
/usr/arm-none-eabi/lib/thumb/v7e-m/nofp/libnosys.a
/usr/arm-none-eabi/lib/thumb/v7e-m/nofp/libc.a
/usr/arm-none-eabi/lib/thumb/v7e-m/nofp/libm.a
/usr/arm-none-eabi/lib/thumb/v7e-m+fp/softfp/libnosys.a
/usr/arm-none-eabi/lib/thumb/v7e-m+fp/softfp/libc.a
/usr/arm-none-eabi/lib/thumb/v7e-m+fp/softfp/libm.a
/usr/arm-none-eabi/lib/thumb/v7e-m+fp/hard/libnosys.a
/usr/arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc.a
/usr/arm-none-eabi/lib/thumb/v7e-m+fp/hard/libm.a
/usr/arm-none-eabi/lib/thumb/v7e-m+dp/softfp/libnosys.a
/usr/arm-none-eabi/lib/thumb/v7e-m+dp/softfp/libc.a
/usr/arm-none-eabi/lib/thumb/v7e-m+dp/softfp/libm.a
/usr/arm-none-eabi/lib/thumb/v7e-m+dp/hard/libnosys.a
/usr/arm-none-eabi/lib/thumb/v7e-m+dp/hard/libc.a
/usr/arm-none-eabi/lib/thumb/v7e-m+dp/hard/libm.a
┌─[tsvetkov@anna] - [~/Documents/builds/evic_firmware/myevic] - [Sat Nov 07, 15:56]
└─[$] <git:(master*)>

That being said I'm quite lost now.. If anybody has experienced a similar issue with these packages and is aware of a solution or has an advice I'd greatly appreciate it. Let me know if additional information is needed as well



Thanks,
me

Offline

Board footer

Powered by FluxBB