@@ -10,7 +10,12 @@ There are two possible reasons why this could happen:
...
@@ -10,7 +10,12 @@ There are two possible reasons why this could happen:
<br/>
<br/>
## Why do I not get any serial output on the platform nRF5?
## Why do I not get any serial output on the platform nRF5?
First, make sure that the GPIO configuration in your code matches the [FlockLab specifiction](https://gitlab.ethz.ch/tec/public/flocklab/wiki/-/wikis/Man/GpioAssignmentTargetAdapter). If the GPIO mapping is correct, then you need to verify that your code is properly flashed to the target device by running a simple blinky test application (check the output of the GPIO tracing). This ensures that there was no issue with the binary file conversion / upload to the target. Also, most users forget to include a bootloader / MBR in their image files. Note that FlockLab programs the nRF5 via SWD and a mass erase is performed before your code is flashed. This means you either need to make sure your code starts at address 0x0 or include the bootloader that would normally (= when you flash the dongle via USB) jump to the application code.
First, make sure that the GPIO configuration in your code matches the [FlockLab specifiction](https://gitlab.ethz.ch/tec/public/flocklab/wiki/-/wikis/Man/GpioAssignmentTargetAdapter). If the GPIO mapping is correct, then you need to verify that your code is properly flashed to the target device by running a simple blinky test application (check the output of the GPIO tracing). This ensures that there was no issue with the binary file conversion and/or upload to the target. Also, most users forget to include a bootloader / MBR in their image files. Note that FlockLab programs the nRF5 via SWD and a mass erase is performed before your code is flashed. This means you either need to make sure your code starts at address 0x0 or include the bootloader that would normally (= when you flash the dongle via USB) jump to the application code.
<br/>
## Why does the binary patching fail for the platform nRF5?
Make sure to closely follow the instructions in the [HowTo guide](https://gitlab.ethz.ch/tec/public/flocklab/wiki/-/wikis/Man/HowTo#how-to-assign-node-ids). Binary patching most likely fails because you are using a compiler that does not add content to the `.data` section in the ELF file (e.g. SEGGER compiler). You can either place the `FLOCKLAB_NODE_ID` symbol into the read-only section or try a different compiler (e.g. gcc).