diff options
| author | Evan Lojewski <github@meklort.com> | 2020-11-24 09:58:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-24 09:58:39 -0700 |
| commit | 2fc8e98fec9ebffdb8dc6600dde0b5c4ad4b7f9c (patch) | |
| tree | 2a0fc35fb144b23d34738d9e665c4d2d9b28929f /utils | |
| parent | 289c1a221a9f5dfb35b7ab883847399b6e4eb3be (diff) | |
| download | bcm5719-ortega-2fc8e98fec9ebffdb8dc6600dde0b5c4ad4b7f9c.tar.gz bcm5719-ortega-2fc8e98fec9ebffdb8dc6600dde0b5c4ad4b7f9c.zip | |
ape: Fix NVIC access. (#176)
- Regenerate headers with correct address
- Enable NVIC access using the HAL
- Enable dumping NVIC registers using bcmregtool.
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/bcmregtool/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/bcmregtool/main.cpp b/utils/bcmregtool/main.cpp index a0dcb47..0691574 100644 --- a/utils/bcmregtool/main.cpp +++ b/utils/bcmregtool/main.cpp @@ -47,6 +47,7 @@ #include <APE.h> #include <APE_APE_PERI.h> #include <APE_DEVICE.h> +#include <APE_NVIC.h> #include <HAL.hpp> #include <MII.h> #include <NVRam.h> @@ -356,6 +357,8 @@ int main(int argc, char const *argv[]) parser.add_option("--nvm").dest("nvm").set_default("0").action("store_true").help("Print NVM registers"); + parser.add_option("--nvic").dest("nvic").set_default("0").action("store_true").help("Print NVIC registers"); + parser.add_option("--unlock").dest("unlock").set_default("0").action("store_true").help("Unlock NVM and APE registers"); parser.add_option("-apereset", "--apereset").dest("apereset").set_default("0").action("store_true").help("File to boot on the APE."); @@ -765,6 +768,13 @@ int main(int argc, char const *argv[]) exit(0); } + if (options.get("nvic")) + { + NVIC.print(); + + exit(0); + } + if (options.get("network")) { RegMIIStatus_t stat; |

