Search found 6 matches
- Mon Oct 24, 2016 7:42 pm
- Forum: Bug Reports
- Topic: Undefined reference to _sbrk_r for variadic arguments
- Replies: 8
- Views: 9185
Re: Undefined reference to _sbrk_r for variadic arguments
Yes, it is printed. I have resolved the issue by adding --specs=nosys.specs to the compiler options, and not including syscalls.c. If I include syscalls.c the error remains.
- Mon Oct 24, 2016 7:33 pm
- Forum: Bug Reports
- Topic: Undefined reference to _sbrk_r for variadic arguments
- Replies: 8
- Views: 9185
Re: Undefined reference to _sbrk_r for variadic arguments
Thank you for your reply. I found that the problem is actually in calling vsnprintf, not va_list. If I just comment out that one line, the project compiles. I think syscalls.c is being compiled, because the error changes when I add it to the makefile.
- Mon Oct 24, 2016 10:07 am
- Forum: Bug Reports
- Topic: Undefined reference to _sbrk_r for variadic arguments
- Replies: 8
- Views: 9185
Undefined reference to _sbrk_r for variadic arguments
I'm using ChibiOS 16.1.4 on an STM32F303. I am attempting to use va_list, va_args, etc. in a function, but whenever I include <stdargs.h> and use those functions, I get the following linker errors:
/opt/homebrew-cask/Caskroom/gcc-arm-embedded/5_2-2015q4,20151219/gcc-arm-none-eabi-5_2-2015q4/bin ...
/opt/homebrew-cask/Caskroom/gcc-arm-embedded/5_2-2015q4,20151219/gcc-arm-none-eabi-5_2-2015q4/bin ...
- Thu Jul 28, 2016 7:10 am
- Forum: STM32 Support
- Topic: STM32F4 I2C Not Recognizing Ack
- Replies: 11
- Views: 6914
Re: STM32F4 I2C Not Recognizing Ack
Here is what the signals look like on a scope:
The top is SCL and the bottom is SDA. At every 9 SCL rising edge, it is clear that SDA is low, but the microcontroller still returns a no ack error.
The top is SCL and the bottom is SDA. At every 9 SCL rising edge, it is clear that SDA is low, but the microcontroller still returns a no ack error.
- Wed Jul 27, 2016 8:39 pm
- Forum: STM32 Support
- Topic: STM32F4 I2C Not Recognizing Ack
- Replies: 11
- Views: 6914
Re: STM32F4 I2C Not Recognizing Ack
I checked everything on the checklist and it seems to be correct. The receive data length is 0 because I am only sending data to the slave, not receiving any. Everything looks correct on the scope (I can attach an image later) but the code is not recognizing that the ACK bit is low.
The only ...
The only ...
- Sat Jul 23, 2016 8:02 am
- Forum: STM32 Support
- Topic: STM32F4 I2C Not Recognizing Ack
- Replies: 11
- Views: 6914
STM32F4 I2C Not Recognizing Ack
I am developing code for an STM32F405 controller to communicate with a Wireless Wii Nunchuk through I2C (I2CD1). I am unable to get ChibiOS to report a successful transaction; I2CGetErrors keeps returning 4 for No Ack. Scoping the lines, everything is getting sent as expected, and the ACK bit is low ...