Commit graph

127 commits

Author SHA1 Message Date
bnewbold 800b8ca1c1 board-specifc linker scripts 2010-09-02 17:39:52 -04:00
bnewbold d6a3299168 Various fixes, working with Maple 2010-09-01 00:02:36 -04:00
bnewbold 0ccec95446 Portability fixes
Still not working but fixed a lot of merge errors
2010-08-31 22:05:39 -04:00
bnewbold 2c2812b620 added stm32loader.py upload script 2010-08-31 17:45:26 -04:00
bnewbold 02d7b08f04 Merge maple-native changes into portable
This compiles for both maple and maple_native but is untested.
2010-08-31 17:39:46 -04:00
Marti Bolivar 42fd9fdf2d Toolchain improvements
Updated Makefile to read the directory where libmaple is from the
environment variable LIBMAPLE_PATH, if it exists, defaulting to the
current working directory otherwise.

Updated reset.py to look around in /dev for the Maple serial port,
prompting the user if there appear to be multiple possibilities and
complaining if there aren't any.
2010-08-29 20:29:31 -04:00
Marti Bolivar b10ef4875f fix reset.py to work on OS X,; .gitignore leaves out ~ files; cleanup
support/make/build-rules.mk
2010-08-29 02:07:32 -04:00
bnewbold 0a6a19cf76 MEMORY_TARGET not MAPLE_TARGET 2010-08-25 18:21:51 -04:00
bnewbold db260e6c3d added stm32loader.py upload script 2010-08-25 18:12:54 -04:00
bnewbold 5f11e12d66 added libm.a to linker scripts to fix sqrt() bug
Fixes a bug noted by several users when using math functions like cos(),
sqrt(), etc in the Maple IDE. This bug did not seem to affect Makefile
compiles.
2010-08-19 16:53:56 -04:00
bnewbold 0f55cc0d89 partial progress on FSMC for SRAM 2010-08-05 21:47:22 -04:00
bnewbold ccd9833f26 Some refactoring 2010-08-05 21:43:58 -04:00
bnewbold 36b1c5e1ea latest greatest udev rule 2010-07-09 21:14:27 -04:00
Perry Hung 3aa755870a makefile: fix install target
The makefile 'install' target should upload to whatever the last build
target was, regardless of the environment's value of MAPLE_TARGET.
2010-07-08 22:27:37 -04:00
bnewbold e20771d282 more codeblocks fixes; verbose build output 2010-07-08 20:04:05 -04:00
Perry Hung 2c043efb66 make: Modularize makefiles, add dependency tracking, build-type tracking
Major build system rewrite. New and exciting:

1. Proper dependency tracking. All source files including header files
should be properly tracked and recompiled as necessary when they are
changed.

2. Build-type tracking. If the target changes from 'ram' to 'flash,'
for example, the build system will force a rebuild rather than
incorrectly link modules to a different address.

3. New targets:
   The old 'ram,' 'flash,' and 'jtag' targets have been replaced with
the environment variable MAPLE_TARGET, which controls the link address.
Users can either export it to their environment, or pass MAPLE_TARGET on
the command-line. Once this is set, sketches can be compiled with 'make
sketch,' or simply 'make.'

Note: the default is MAPLE_TARGET='flash.'

The target 'install' now automagically uploads the sketch to the board
using the appropriate method.

The 'run' target has been renamed to 'debug.' It starts an openocd gdb
server.

4. Odds and ends:
  -Verbose and 'quiet' modes. Set V=1 for verbose compilation, the default
   is quiet.
  -Object file sizes and disassembly information is generated and placed
   in build/$(BOARD).sizes and build/$(BOARD).disas, respectively.
  -Parallel make with -j should speed things up if you have multiple
   cores.
2010-06-25 21:23:04 -04:00
bnewbold cbe359ff2c codeblocks support stuff 2010-06-18 14:48:53 -04:00
bnewbold 57662f99c4 osx reset script changes 2010-06-10 13:32:29 -04:00
bnewbold d349b13258 new reset scheme, compatbile with old 2010-06-10 13:07:53 -04:00
AJM be55939829 added a somewhat broken version of the reset magic number scheme.
current version gets stuck in the isr somewhere. not sure why or where. must debug.
2010-06-09 22:25:14 -04:00
AJM 8afc89be1d first approach at modding the reset scheme
now we reset from recv bytes. After receiving the DTR/RTS toggle the next byte in from usb is parsed as the program_delay. For now, this just delays the reset for a period to close the serial port gracefully. Later, this delay will perhaps inform the bootloader of how long to live for...
2010-06-09 15:52:29 -04:00
Perry Hung e2b295651a trivial: fixed incorrect comment on jtag scan chain in openocd scripts 2010-06-05 21:46:22 -04:00
bnewbold 7824df10c4 fixed copy-to-ide linker stuff 2010-06-04 19:58:36 -04:00
bnewbold 3b11433f36 updated TODO, copy-to-ide 2010-06-04 19:05:10 -04:00
Perry Hung 1a908d88b8 fix botched merge from linker-refactor 2010-05-28 22:52:53 -04:00
Perry Hung 6434610803 Moved reset script to support directory
For kicks.
2010-05-28 05:24:21 -04:00
Perry Hung acf8b5476f udev rule symlink
new udev rule, adds a symlink to /dev/maple
2010-05-28 03:08:36 -04:00