430.git
11 years agomsp4th: rewrite lookupToken()
Dan White [Mon, 13 May 2013 16:48:55 +0000 (11:48 -0500)]
msp4th: rewrite lookupToken()

Faster execution and saves 68 bytes FTW!

11 years agomsp4th: move schemm stuff to subdir
Dan White [Sun, 12 May 2013 02:59:02 +0000 (21:59 -0500)]
msp4th: move schemm stuff to subdir

11 years agomsp4th: style cleanup
Dan White [Sun, 12 May 2013 02:24:23 +0000 (21:24 -0500)]
msp4th: style cleanup

11 years agoadd notes file
Dan White [Sat, 11 May 2013 05:52:05 +0000 (00:52 -0500)]
add notes file

11 years agomsp4th: cleanup, documentation, fix live re-init
Dan White [Sat, 11 May 2013 05:49:30 +0000 (00:49 -0500)]
msp4th: cleanup, documentation, fix live re-init

11 years agomsp4th: cleanup PC version
Dan White [Sat, 11 May 2013 02:25:52 +0000 (21:25 -0500)]
msp4th: cleanup PC version

11 years agomsp4th: no need to keep pointer to config
Dan White [Sat, 11 May 2013 02:17:25 +0000 (21:17 -0500)]
msp4th: no need to keep pointer to config

11 years agomsp4th: shorten names
Dan White [Sat, 11 May 2013 01:48:44 +0000 (20:48 -0500)]
msp4th: shorten names

11 years agomsp4th: remove unnecessary cast
Dan White [Sat, 11 May 2013 00:52:08 +0000 (19:52 -0500)]
msp4th: remove unnecessary cast

11 years agomsp4th: speedup stack manipulation to *11*
Dan White [Fri, 10 May 2013 23:31:36 +0000 (18:31 -0500)]
msp4th: speedup stack manipulation to *11*

11 years agomsp4th: keep stack start in mem to avoid double-dereference
Dan White [Fri, 10 May 2013 23:30:13 +0000 (18:30 -0500)]
msp4th: keep stack start in mem to avoid double-dereference

11 years agomsp4th: ensure string arrays start as zero-length
Dan White [Fri, 10 May 2013 22:53:05 +0000 (17:53 -0500)]
msp4th: ensure string arrays start as zero-length

11 years agobootcode: interrupts are already disabled out of reset
Dan White [Fri, 10 May 2013 22:48:51 +0000 (17:48 -0500)]
bootcode: interrupts are already disabled out of reset

11 years agobootcode: update to latest version
Dan White [Fri, 10 May 2013 21:30:42 +0000 (16:30 -0500)]
bootcode: update to latest version

11 years agomsp4th: */ now returns a single 16b result
Dan White [Fri, 10 May 2013 21:28:46 +0000 (16:28 -0500)]
msp4th: */ now returns a single 16b result

Also, cleanup unnecessary casts.

11 years agomsp4th: rename exit -> bye, /% replaces / and mod
Dan White [Fri, 10 May 2013 21:27:04 +0000 (16:27 -0500)]
msp4th: rename exit -> bye, /% replaces / and mod

This saves enough space to fit in 4kB ROM.

11 years agomsp4th: config is passed as a struct
Dan White [Fri, 10 May 2013 21:21:33 +0000 (16:21 -0500)]
msp4th: config is passed as a struct

No hard-coded locations for passing config pointers.  This cleans up the linker
script.

11 years agoShow how to add a word to execute at bootup.
Dan White [Thu, 9 May 2013 20:34:35 +0000 (15:34 -0500)]
Show how to add a word to execute at bootup.

11 years agomsp4th: add 'echo' word, cleanup user-defined namespace
Dan White [Thu, 9 May 2013 20:17:33 +0000 (15:17 -0500)]
msp4th: add 'echo' word, cleanup user-defined namespace

Also allow testing of absolute address peek/poke on PC.

11 years agobootcode: update to full-featured msp4th rcf-ini-submit
Dan White [Thu, 9 May 2013 02:50:22 +0000 (21:50 -0500)]
bootcode: update to full-featured msp4th

11 years agomsp4th: add many new functions, rename a few
Dan White [Thu, 9 May 2013 02:49:07 +0000 (21:49 -0500)]
msp4th: add many new functions, rename a few

11 years agomsp4th: add nested loop counters, loop increments/direction, byteswap
Dan White [Thu, 9 May 2013 00:36:53 +0000 (19:36 -0500)]
msp4th: add nested loop counters, loop increments/direction, byteswap

11 years agomsp4th: rename opcodes
Dan White [Wed, 8 May 2013 23:25:03 +0000 (18:25 -0500)]
msp4th: rename opcodes

11 years agomsp4th: no special (redundant) str_t type, cleanup
Dan White [Wed, 8 May 2013 21:21:16 +0000 (16:21 -0500)]
msp4th: no special (redundant) str_t type, cleanup

11 years agomsp4th: include msp4th_puts(uint8_t *s) in ROM
Dan White [Wed, 8 May 2013 19:02:53 +0000 (14:02 -0500)]
msp4th: include msp4th_puts(uint8_t *s) in ROM

Now, it merely requires putchar/getchar from the user.

11 years agobootloader: reduce delay time for flash chip wakeup
Dan White [Wed, 8 May 2013 18:55:48 +0000 (13:55 -0500)]
bootloader: reduce delay time for flash chip wakeup

Delay is sufficient for up to a 100 MHz clock.

11 years agoMerge branch 'user-defined-allocations'
Dan White [Tue, 7 May 2013 18:01:17 +0000 (13:01 -0500)]
Merge branch 'user-defined-allocations'

11 years agomsp4th: snapshot the bootrom RCF file user-defined-allocations s3/user-defined-allocations bootrom-initial-submission
Dan White [Tue, 7 May 2013 17:59:53 +0000 (12:59 -0500)]
msp4th: snapshot the bootrom RCF file

11 years agomsp4th: update docs
Dan White [Tue, 7 May 2013 17:59:03 +0000 (12:59 -0500)]
msp4th: update docs

11 years agomsp4th: also make I/O functions configurable
Dan White [Tue, 7 May 2013 16:45:09 +0000 (11:45 -0500)]
msp4th: also make I/O functions configurable

This allows grafting in an interrupt-based uart in addition to giving
different-sized program and stack spaces.

11 years agomsp4th: vector table to specify user-custom arrays
Dan White [Mon, 6 May 2013 19:20:33 +0000 (14:20 -0500)]
msp4th: vector table to specify user-custom arrays

NOTE: the test430.c PC program does not work, but a cursory usage on the actual
NS430 seems to work fine.

11 years agomsp4th: rename indices
Dan White [Mon, 6 May 2013 17:03:48 +0000 (12:03 -0500)]
msp4th: rename indices

The names are not actually pointers, just indices into their respective arrays.
Since we are using real pointers for the stacks, rename to reduce confusion.

11 years agomsp4th: stacks now use pointers and registers, and macros
Dan White [Mon, 6 May 2013 16:56:00 +0000 (11:56 -0500)]
msp4th: stacks now use pointers and registers, and macros

11 years agoflash.py: temporarily override interrupt vector table
Dan White [Mon, 6 May 2013 05:08:44 +0000 (00:08 -0500)]
flash.py: temporarily override interrupt vector table

11 years agomsp4th: cleanup
Dan White [Mon, 6 May 2013 05:08:36 +0000 (00:08 -0500)]
msp4th: cleanup

11 years agomsp4th: flash boot loader
Dan White [Mon, 6 May 2013 04:25:54 +0000 (23:25 -0500)]
msp4th: flash boot loader

make target "bootrom" sets the correct flags and uses a tweaked ldscript for
all the right locations and such.

normal make targets, e.g. "all", assume you are building the boot rom for
testing in RAM space.

NOTE: this requires manually setting the reset vector to 0x4000 instead of the
location gcc uses.

11 years agomsp4th: flash loader testing
Dan White [Sun, 5 May 2013 05:22:38 +0000 (00:22 -0500)]
msp4th: flash loader testing

11 years agoROM code: fixup another call address
Dan White [Sun, 5 May 2013 02:21:04 +0000 (21:21 -0500)]
ROM code: fixup another call address

11 years agomsp4th: bugfix printNumber() to handle 0x8000 -> -32768
Dan White [Fri, 3 May 2013 14:43:49 +0000 (09:43 -0500)]
msp4th: bugfix printNumber() to handle 0x8000 -> -32768

11 years agomsp4th: add script to extract opcode definitions
Dan White [Thu, 2 May 2013 20:34:49 +0000 (15:34 -0500)]
msp4th: add script to extract opcode definitions

11 years agomsp4th: properly assign 32 interrupt vectors
Dan White [Thu, 2 May 2013 20:09:06 +0000 (15:09 -0500)]
msp4th: properly assign 32 interrupt vectors

11 years agomsp4th: "uniarch" gcc style cpu specs
Dan White [Thu, 2 May 2013 20:05:47 +0000 (15:05 -0500)]
msp4th: "uniarch" gcc style cpu specs

11 years agomsp4th: opcode stack comments, use hw multiplier
Dan White [Thu, 2 May 2013 20:04:34 +0000 (15:04 -0500)]
msp4th: opcode stack comments, use hw multiplier

11 years agomsp4th: add c-function calling words
Dan White [Thu, 2 May 2013 17:44:55 +0000 (12:44 -0500)]
msp4th: add c-function calling words

added word ndrop helps speedup multiple drop calls.  premature optimization,
perhaps

11 years agomsp4th: allow case-insensitive hex digits
Dan White [Thu, 2 May 2013 16:54:52 +0000 (11:54 -0500)]
msp4th: allow case-insensitive hex digits

11 years agomsp4th: speedup pop/pushMathStack
Dan White [Thu, 2 May 2013 16:53:49 +0000 (11:53 -0500)]
msp4th: speedup pop/pushMathStack

11 years agoadd note why flash is woken up early
Dan White [Wed, 1 May 2013 23:21:24 +0000 (18:21 -0500)]
add note why flash is woken up early

11 years agoboot: directly inject bootloader asm, no functions
Dan White [Tue, 30 Apr 2013 18:40:19 +0000 (13:40 -0500)]
boot: directly inject bootloader asm, no functions

11 years agoupdate asm include system to GCC syntax
Dan White [Mon, 29 Apr 2013 19:12:06 +0000 (14:12 -0500)]
update asm include system to GCC syntax

11 years agoMerge branch 'msp4th-fixup'
Dan White [Mon, 29 Apr 2013 18:47:17 +0000 (13:47 -0500)]
Merge branch 'msp4th-fixup'

11 years agoadd generated RCF file for ROM msp4th-fixup s3/msp4th-fixup
Dan White [Mon, 29 Apr 2013 18:41:45 +0000 (13:41 -0500)]
add generated RCF file for ROM

11 years agoadd RCF generator for ROM fix
Dan White [Mon, 29 Apr 2013 18:41:26 +0000 (13:41 -0500)]
add RCF generator for ROM fix

11 years agooops, wrong address, fixup
Dan White [Mon, 29 Apr 2013 18:30:27 +0000 (13:30 -0500)]
oops, wrong address, fixup

11 years agotwo bugfixes directly to dis-assembled, annotated ROM
Dan White [Thu, 25 Apr 2013 21:02:03 +0000 (16:02 -0500)]
two bugfixes directly to dis-assembled, annotated ROM

11 years agocopy to do direct boot ROM bugfixes
Dan White [Thu, 25 Apr 2013 20:20:15 +0000 (15:20 -0500)]
copy to do direct boot ROM bugfixes

11 years agouse assembly for bootloader, start cleaning up Schemm version
Dan White [Tue, 23 Apr 2013 21:12:41 +0000 (16:12 -0500)]
use assembly for bootloader, start cleaning up Schemm version

11 years agostart asm version of flash loader
Dan White [Tue, 23 Apr 2013 17:38:54 +0000 (12:38 -0500)]
start asm version of flash loader

11 years agostart flash loader code
Dan White [Sun, 21 Apr 2013 02:18:28 +0000 (21:18 -0500)]
start flash loader code

11 years agocleanup better
Dan White [Sat, 20 Apr 2013 05:40:55 +0000 (00:40 -0500)]
cleanup better

11 years agoadd SPI header
Dan White [Sat, 20 Apr 2013 05:40:07 +0000 (00:40 -0500)]
add SPI header

11 years agobetter uart namespace
Dan White [Sat, 20 Apr 2013 05:39:40 +0000 (00:39 -0500)]
better uart namespace

11 years agomsp4th: ignore comments
Dan White [Sat, 20 Apr 2013 05:38:55 +0000 (00:38 -0500)]
msp4th: ignore comments

11 years agoremove unneeded volatile specs, cleanup
Dan White [Fri, 19 Apr 2013 23:03:12 +0000 (18:03 -0500)]
remove unneeded volatile specs, cleanup

11 years agodo not track compile dependency files
Dan White [Fri, 19 Apr 2013 22:48:46 +0000 (17:48 -0500)]
do not track compile dependency files

11 years agoremove static qualifier
Dan White [Fri, 19 Apr 2013 22:22:16 +0000 (17:22 -0500)]
remove static qualifier

11 years agoFIX: correct ldscript, cleanup
Dan White [Fri, 19 Apr 2013 21:24:54 +0000 (16:24 -0500)]
FIX: correct ldscript, cleanup

11 years agoadd generated files for reference
Dan White [Sat, 13 Apr 2013 17:52:42 +0000 (12:52 -0500)]
add generated files for reference

11 years agofixup msp4th on PC testing
Dan White [Sat, 13 Apr 2013 17:51:38 +0000 (12:51 -0500)]
fixup msp4th on PC testing

11 years agoMemory dump log and checker
Dan White [Sat, 13 Apr 2013 17:47:19 +0000 (12:47 -0500)]
Memory dump log and checker

"dump-output.txt" is raw terminal output from ns430 program
"memdump.txt" is above formatted for memtest.py

use: python memtest.py main.hex memdump.txt
this reports a match

11 years agomemory testing start
Dan White [Sat, 13 Apr 2013 17:42:33 +0000 (12:42 -0500)]
memory testing start

11 years agons430: setup for ubuntu 12.04 mspgcc version
Dan White [Fri, 12 Apr 2013 22:54:16 +0000 (17:54 -0500)]
ns430: setup for ubuntu 12.04 mspgcc version

11 years agoharmonics w/ sin inputs
Dan White [Mon, 8 Apr 2013 19:03:31 +0000 (14:03 -0500)]
harmonics w/ sin inputs

11 years agosine integration start with chip 14 arb0
Dan White [Mon, 8 Apr 2013 18:04:19 +0000 (13:04 -0500)]
sine integration start with chip 14 arb0

11 years agochip 14 gm testing
Dan White [Sun, 7 Apr 2013 04:50:03 +0000 (23:50 -0500)]
chip 14 gm testing

11 years agosave chip14 tests
Dan White [Fri, 5 Apr 2013 20:04:26 +0000 (15:04 -0500)]
save chip14 tests

11 years agoplots for arb0 testing
Dan White [Fri, 5 Apr 2013 03:52:41 +0000 (22:52 -0500)]
plots for arb0 testing

11 years agoWIP reproduce arb0 setup
Dan White [Fri, 5 Apr 2013 00:06:26 +0000 (19:06 -0500)]
WIP reproduce arb0 setup

11 years agoarb0 works!!!
Dan White [Thu, 4 Apr 2013 20:41:18 +0000 (15:41 -0500)]
arb0 works!!!

11 years agoadd chip calibrations for 13, 14
Dan White [Thu, 4 Apr 2013 18:14:08 +0000 (13:14 -0500)]
add chip calibrations for 13, 14

11 years agotesting arb0 channel DC integration
Dan White [Thu, 28 Mar 2013 19:39:26 +0000 (14:39 -0500)]
testing arb0 channel DC integration

11 years agofixup
Dan White [Thu, 28 Mar 2013 17:10:52 +0000 (12:10 -0500)]
fixup

11 years agosave footprints sent to Markus
Dan White [Mon, 25 Mar 2013 18:16:38 +0000 (13:16 -0500)]
save footprints sent to Markus

11 years agoadd pdf of power switch sch
Dan White [Mon, 25 Mar 2013 18:14:30 +0000 (13:14 -0500)]
add pdf of power switch sch

11 years agobugfix
Dan White [Sat, 23 Mar 2013 04:09:59 +0000 (23:09 -0500)]
bugfix

11 years agoEWU research slide generation
Dan White [Fri, 1 Mar 2013 16:11:06 +0000 (10:11 -0600)]
EWU research slide generation

11 years agoadd temp testing script
Dan White [Tue, 12 Feb 2013 15:30:04 +0000 (09:30 -0600)]
add temp testing script

11 years agoSet new attribute on instance not class
Dan White [Wed, 28 Nov 2012 19:55:46 +0000 (13:55 -0600)]
Set new attribute on instance not class

11 years agowip
Dan White [Tue, 6 Nov 2012 20:56:25 +0000 (14:56 -0600)]
wip

11 years agowip
Dan White [Tue, 6 Nov 2012 17:21:07 +0000 (11:21 -0600)]
wip

11 years agoProperly close ports with provided interface
Dan White [Fri, 2 Nov 2012 23:41:03 +0000 (18:41 -0500)]
Properly close ports with provided interface

11 years agoAdd a .close() method to port interfaces
Dan White [Fri, 2 Nov 2012 23:39:58 +0000 (18:39 -0500)]
Add a .close() method to port interfaces

11 years agoProperly raise exceptions
Dan White [Fri, 2 Nov 2012 23:39:09 +0000 (18:39 -0500)]
Properly raise exceptions

11 years agoStore local ftdi module ref in I2C
Dan White [Fri, 2 Nov 2012 23:38:07 +0000 (18:38 -0500)]
Store local ftdi module ref in I2C

11 years agoUpdate py modules
Dan White [Fri, 2 Nov 2012 22:19:54 +0000 (17:19 -0500)]
Update py modules

11 years agoAdd power switch sch for documentation
Dan White [Fri, 2 Nov 2012 22:17:06 +0000 (17:17 -0500)]
Add power switch sch for documentation

11 years agoEnsure or warn about kernel USB autosuspend
Dan White [Mon, 29 Oct 2012 19:09:16 +0000 (14:09 -0500)]
Ensure or warn about kernel USB autosuspend

11 years agoEnable usage of ft4232 suspend pin
Dan White [Sun, 28 Oct 2012 01:37:26 +0000 (20:37 -0500)]
Enable usage of ft4232 suspend pin

Need to add an external circuit which switches off power to devboard when
SUSPEND pin is low.

11 years agoAdd and update calibration
Dan White [Sat, 27 Oct 2012 03:17:20 +0000 (22:17 -0500)]
Add and update calibration

11 years agofix filename construction
Dan White [Thu, 25 Oct 2012 23:03:32 +0000 (18:03 -0500)]
fix filename construction

11 years agoAdd baseline chip calibrations
Dan White [Mon, 22 Oct 2012 18:50:42 +0000 (13:50 -0500)]
Add baseline chip calibrations