-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting
- Strange make error
- MSB-A2 is unflashable
- Cannot move location counter backwards
- Wrong permission error at make flash
- Flashing stops working
- Undefined references
- How to break in gdb at the current position
When I run make
in the RIOT repository, I get something like:
mkdir -p
mkdir: missing operand
Try 'mkdir --help' for more information.
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
What am I missing?
You have to run make
from within your application directory, not directly from the RIOT repository.
My MSB-A2 hangs in a reset loop and remains unflashable. How can I recover this node?
Please visit How to Recover a unflashable MSB-A2
The linker says something like RIOT/cpu/lpc2387/linkerscript.x:221 cannot move location counter backwards (from 4000fb4c to 4000ec98)
. What's wrong?
Your application is too big and won't fit into RAM or the ROM of the target platform.
The flashtool says something like You don't have permission to access /dev/ttyUSB0
. What's wrong?
You need to edit your udev rules.
First create a group for your serial device (e.g. serial
) and add the current user.:
addgroup serial
usermod -a -G serial ${USER}
Then use lsusb
to find out the Vendor and Product ID for your device.
Afterwards, add the following line to the file /etc/udev/44-serial.rules
(replace <idVendor>
and <idProduct>
with the previously determined IDs, respectively).
ATTR{idVendor}=="<idVendor>", ATTR{idProduct}=="<idProduct>", GROUP="plugdev", MODE="0664"
Reload udev rules:
udevadm control --reload-rules
Flashing of a device somehow does not work although it should / did before.
Try a different USB port/hub or a shorter cable.
Building my application I receive a strange linker warning about undefined references although the corresponding module should be built. For example some like this:
/home/foobar/RIOT/examples/default/bin/native/nativenet.a(interface.o): In function `_nativenet_send_data':
interface.c:(.text+0x474): undefined reference to `netdev_get_hlist_len'
collect2: error: ld returned 1 exit status
Due to inconsistencies in the Make build system, it may happen that some dependencies are not build correctly after an error or misconfiguration. In order to build everything unconditionally it's safe to call make -B clean all
.
How can I break at the current position in gdb
? Hitting Ctrl+C gives me a ^CRemote connection closed
.
Try to use make debug-server
and make debug
in another terminal window. Otherwise Ctrl+C is passed through to the gdb server and kills it.
RIOT - The friendly Operating System for the Internet of Things
Homepage | [GitHub] (https://github.com/RIOT-OS/) | Developers Mailing List | Users Mailing List | Twitter @RIOT_OS
- Family: ARM
- Board: Airfy Beacon
- Board: Arduino Due
- Board: CC2538DK
- Board: CC2650STK
- Board: HikoB Fox
- Board: IoT LAB M3
- Board: LimiFrog-v1
- Board: mbed_lpc1768
- Board: MSB-IoT
- Board: MSBA2
- Board: Nucleo-L1
- Board: Nucleo-F334
- Board: Nucleo-F303
- Board: Nucleo-F091
- Board: Mulle
- Board: OpenMote
- Board: PCA1000x (nRF51822 Development Kit)
- Board: Phytec phyWAVE-KW22
- Board: RFduino
- Board: SAMR21-xpro
- Board: SAML21-xpro
- Board: Spark Core
- Board: STM32F0discovery
- Board: STM32F3discovery
- Board: STM32F4discovery
- Board: UDOO
- Board: yunjia-nrf51822
- Board: Zolertia remote
- Family: ATmega
- Board: Arduino Mega2560
- Family: MSP430
- Board: MSB-430H
- Board: TelosB
- Board: WSN430
- Board: Zolertia Z1
- Board: eZ430-Chronos
- Family: native
- Board: native
- Family: x86
- Board: Intel Galileo