Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/lab11/socitrack
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgecrw committed Jan 8, 2024
2 parents 8df2477 + 3fbd212 commit 986f5f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions doc/Testing.md → doc/AP4_Testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ Testing

make ID=c0:98:e5:42:00:ff UID
4. Program the test firmware (available BOARD_REV for apollo4 based TotTag: `EVB`, `I`, `K`, `L`, see the revision letter on the side of the TotTag name on the board; for the list of available tests, see the makefile)

make ranging_radio BOARD_REV=EVB

```bash
#test individual peripheral
make ranging_radio BOARD_REV=EVB
#test the full app
make full BOARD_REV=M
```

### Debug the boards

Expand All @@ -28,6 +31,15 @@ With the JLink debugger connected, run the following command.
jLinkSWOViewerCL -swoattach 1 -swofreq 1000000 -device AMA4B2KP-KBR -itmport 0x0

You should be seeing the debugging messages coming after that.

#### Resetting the device without restarting

JLinkExe -Device AMA4B2KP-KBR -if SWD -speed 4000 -RTTTelnetPort 9201

Then in the JLink interface, use command `r` and `g` to reset the device.

When the device is reset without restarting, the RTC value would not get lost.

#### GDB based debugging
1. In one terminal tab, run the following command to start the GDB server

Expand Down
2 changes: 1 addition & 1 deletion software/ersp/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ matplotlib==3.3.4
mccabe==0.6.1
numpy==1.22.0
Pillow==10.0.1
pycryptodomex==3.9.9
pycryptodomex==3.19.1
pylint==2.6.0
pyparsing==2.4.7
python-dateutil==2.8.1
Expand Down

0 comments on commit 986f5f6

Please sign in to comment.