nimaltd / HX711

HX711 driver for STM32 HAL
GNU General Public License v3.0
75 stars 16 forks source link

undefined reference to `__nop' #4

Open MarkEvens opened 1 year ago

MarkEvens commented 1 year ago

in function hx711_delay_us': undefined reference to__nop'

I have put this lib in stm32 project Drivers folder and given path properly

Having this issue can guide me on what I am doing wrong

Gocql022 commented 6 months ago

My English no so good, please translate the following text, I think it may help you(Chinese to English). undefined reference to nop'意味着没有定义nop()函数,我今天也遇到了这个问题,去网上查了下这个函数的含义,得知这是一个什么都不做只会延时(时间极其短暂)的函数,因此只需在引用了nop()的文件上面如此定义这个函数: void nop() { ; } 这样一个__nop()函数就定义好了,希望能帮到你😊