MSP peripheral register dumper
Przemek Klosowski <[email protected]> Wed, 26 Nov 2014 21:55:34 -0500
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.user |
|---|---|
| Message-ID | <CAC=1GgEc7BFruVxLY=bvpf3cgLK5+i3U_swZaPNTdw84e3F+NQ@mail.gmail.com> |
I wrote a perl script that reads MSPGCC linker script defining peripheral registers, and outputs a GDB function called 'mspview' that dumps current peripheral register values for a particular MSP chip. I use this script in a directory devoted to working on a project using a specific chip: perl periphGDB.pl /usr/msp430/lib/ldscripts/msp430fr5969/periph.x > .gdbinit Afterwards, GDB will pick up the function definition on startup; invoking the command 'mspview' will display names and values of all peripheral registers in this particular MSP chip. Hope it may be useful to someone. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users