rt-thread icon indicating copy to clipboard operation
rt-thread copied to clipboard

DAC project to oscilloscope with issue: undefined reference to 'snif'. I have HANMATEK dos1102

Open neuberfran opened this issue 3 years ago • 2 comments

This is my project with issue:

https://github.com/neuberfran/CH32V307VCT6/blob/main/User/main.c

My project is based on this: https://github.com/lbthomsen/CH32V307V-EVT-R1/tree/master/oscillator and this: https://stm32world.com/wiki/CH32_Oscillator

issue:

c:/mounriver2/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./Debug/debug.o: in function `_write':
C:\MRS_DATA\workspace\CH32V307VCT6\obj/../Debug/debug.c:152: multiple definition of `_write'; ./lib/debug.o:C:\MRS_DATA\workspace\CH32V307VCT6\obj/../lib/debug.c:90: first defined here
c:/mounriver2/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./Debug/debug.o: in function `_sbrk':
C:\MRS_DATA\workspace\CH32V307VCT6\obj/../Debug/debug.c:185: multiple definition of `_sbrk'; ./lib/debug.o:C:\MRS_DATA\workspace\CH32V307VCT6\obj/../lib/debug.c:123: first defined here
c:/mounriver2/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: ./User/main.o: in function `update_dac_buffer':
C:\MRS_DATA\workspace\CH32V307VCT6\obj/../User/main.c:36: undefined reference to `sinf'
c:/mounriver2/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: C:\MRS_DATA\workspace\CH32V307VCT6\obj/../User/main.c:37: undefined reference to `sinf'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:56: CH32V307VCT6.elf] Error 1
****

image

neuberfran avatar Sep 22 '22 22:09 neuberfran

How about RT-Thread Studio?

BernardXiong avatar Oct 06 '22 15:10 BernardXiong

@BernardXiong What? I don't understood

neuberfran avatar Oct 06 '22 19:10 neuberfran

https://github.com/RT-Thread/rt-thread/issues/6871

neuberfran avatar Jan 22 '23 18:01 neuberfran

https://github.com/RT-Thread/rt-thread/issues/6881

neuberfran avatar Feb 05 '23 13:02 neuberfran

It error is if sinf(var) bud if sinf([number]) error desapears.

igorschip avatar Apr 21 '24 08:04 igorschip