Commit 39f96060 authored by Alan Wood's avatar Alan Wood

Documentation corrections pt4

parent be25a29b
......@@ -66,7 +66,7 @@ The way myStorm currently works is as follows:
* 4 Link it all in and create the bin/hex etc..
* 5 Upload and enjoy...
If you look at the c/cpp code we have an array value (normally RO) starting at _binary_bitmap_bin_start and ending at _binary_bitmap_bin_end see the code excerpt below where we use this to program the bit file with ms.ice_prog(&_binary_bitmap_bin_start, len). The clever build step is the conversion of the bitimage output from IceStorm into a suitable object file for linking with the arm eabi toochain. This is the bit that isn't done automagically for us (yet) with platformio.
If you look at the c/cpp code we have memory pointers (normally RO) starting at _binary_bitmap_bin_start and ending at _binary_bitmap_bin_end to mark the bitimage (see the code excerpt below) where we use this to program the bit file with ms.ice_prog(). The clever build step is the conversion of the bitimage output from IceStorm into a suitable object file for linking with the arm eabi toochain. This is the bit that isn't done automagically for us (yet) with platformio.
```
extern uint8_t __binary_bitmap_bin_start
......@@ -74,9 +74,9 @@ extern uint8_t __binary_bitmap_bin_end
..
..
//Lets get the bit image size
uint32_t len = &_binary_bitmap_bin_end - &_binary_bitmap_bin_start;
//Initialise anfd program Ice40
ms.ice_prog(&_binary_bitmap_bin_start, len);
uint32_t len = &_binary_bitmap_bin_end - &_binary_bitmap_bin_start;
//Initialise anfd program Ice40
ms.ice_prog(&_binary_bitmap_bin_start, len);
```
However by running :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment