I am working on a project were I am embedding a maple, the problem I am having is I don't have enough i/o. Well the new maple native solves this problem. The questions I am having are, can I leave the sram chip out, I assume I can I just want to make sure, second can I program the bootloader with the same proses?
Maple native ?
(10 posts) (5 voices)-
Posted 4 years ago #
-
I have a native and I program it just like the standard maple without flashing the sram.
Posted 4 years ago # -
Ok cool , has anyone tried uploading a new boot loader?
Posted 4 years ago # -
a "new" bootloader? The bootloader for maple native does not depend on the SRAM at all, so you should be ok there. Make sure to use the Maple Native bootloader, not the Maple bootloader, as there are some key differences: http://static.leaflabs.com/pub/leaflabs/maple-bootloader/
Posted 4 years ago # -
I should mention that the re-flashing procedure is the same.
Posted 4 years ago # -
Also, if by "leave the sram chip out" you mean "turn off the SRAM chip and use internal SRAM only", then the answer is "sort of".
You can definitely disable the FSMC to claim those GPIOs, but the heap is on the SRAM chip by default. You'll need to tweak the linker script to do this. Here's the base linker script for the Maple Native:
https://github.com/leaflabs/libmaple/blob/v0.0.12/support/ld/maple_native/flash.ld
If you comment out the lines that define "_lm_heap_start" and "_lm_heap_end", then the heap will live on the internal SRAM and you can use the pins on the FSMC header as regular GPIOs.
If that's what you mean, this would be a nice addition to the library -- maybe you'd like to send us a pull request with a "flash_no_sram.ld" linker script?
Posted 4 years ago # -
I just got my Maple Native and I'm trying to use SPI3. The docs suggest that I'll need to tap into the JTAG pads for some of the SPI3 lines. I don't see any docs that give me great confidence of the JTAG pinout, although I imagine that this one might be right (viewed from the top.)
https://github.com/leaflabs/maplenative/blob/master/schematicpdfs/mapleNative-conn.pdf
Does this represent the correct pinout?
Posted 4 years ago # -
CONN_5X2 is the JTAG connector. The Git commit tagged 'beta' contains the schematics used on the Beta release:
https://github.com/leaflabs/maplenative/blob/beta/schematicpdfs/conn.ps
Comparing with the layout (mapleNative.brd), viewing from the top is correct (the top left pad is connected to VCC).
In case you can't conveniently view PostScript, I checked, and there haven't been any changes to that portion of the schematic since then.
By the way, don't forget to disable JTAG (by calling disableDebugPorts()) before turning on SPI3.
Posted 4 years ago # -
OK. I'll take a stab at it. FWIW, I vote to have actual headers for the JTAG pins in the non-beta rev of the board.
Posted 4 years ago # -
Its definitely worth something ;) thanks for the suggestion.
Posted 4 years ago #
Reply
You must log in to post.