Skip to content

prudebug: Add support for AM57x #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ to install the readline library. The binary is called prudebug.

USAGE
---------------------------------------------------------------------
```
Usage: prudebug [-a pruss-address] [-u] [-m] [-p processor]
-a - pruss-address is the memory address of the PRU in ARM memory space
-u - force the use of UIO to map PRU memory space
Expand All @@ -77,6 +78,9 @@ Usage: prudebug [-a pruss-address] [-u] [-m] [-p processor]
-p - select processor to use (sets the PRU memory locations)
AM1707 - AM1707
AM335X - AM335x
AM57X1 - AM57x1
AM57X2 - AM57x2
```

Generally the -a option should not be used. If it is used, then prudebug will use the -a address for the PRU base with
the selected processor as the various PRU subsystem offsets. -u and -m control the way the PRU base address is mapped for
Expand Down
41 changes: 39 additions & 2 deletions prudbg.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
*
* PRU Debug Program
* (c) Copyright 2011, 2013 by Arctica Technologies
Expand Down Expand Up @@ -106,6 +106,44 @@ struct pdb_tag {
}
}
},
{
.processor = "AM57x1",
.short_name = "AM57X1",
.pruss_address = 0x4b200000,
.pruss_len = 0x80000,
.num_of_pruss = 2,
.offsets = {
{
.pruss_inst = 0xD000,
.pruss_data = 0x0000,
.pruss_ctrl = 0x8800
},
{
.pruss_inst = 0xE000,
.pruss_data = 0x0800,
.pruss_ctrl = 0x9000
}
}
},
{
.processor = "AM57x2",
.short_name = "AM57X2",
.pruss_address = 0x4b280000,
.pruss_len = 0x80000,
.num_of_pruss = 2,
.offsets = {
{
.pruss_inst = 0xD000,
.pruss_data = 0x0000,
.pruss_ctrl = 0x8800
},
{
.pruss_inst = 0xE000,
.pruss_data = 0x0800,
.pruss_ctrl = 0x9000
}
}
},
{ // end marker
.processor = "NONE",
.short_name = "NONE",
Expand Down Expand Up @@ -696,4 +734,3 @@ int main(int argc, char *argv[])

return 0;
}

3 changes: 2 additions & 1 deletion prudbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
// in the prudbg.c file.
#define AM1707 0
#define AM335x 1

#define AM57x1 2
#define AM57x2 3

// general settings
#define MAX_CMD_LEN 25
Expand Down