Commit 632c27e8 authored by Alan Wood's avatar Alan Wood

Documentation added more to detail section

parent aca7b507
......@@ -76,17 +76,58 @@ extern uint8_t __binary_bitmap_bin_end
ms.ice_prog(&_binary_bitmap_bin_start, len);
```
running
However by running :
```
createbitmap.sh
```
does this for us, if you look inside you will see:
it does this for us, if you look inside that you will see:
```
~/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/bin/objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata bitmap.bin bitmap.o
```
This of course makes a whole load of silly assumptions about where platformio is installed among other things, hope fully you won't have to mess with it.
This of course makes a whole load of silly assumptions about where platformio is installed among other things, hope fully you won't have to mess with it. later we will integrate this into a pre-link script in python for platformio to make it easier.n After running this you may need to do a platformio run again depending if your updating Verilog and or C/C++.
Our earlier assumption was that you were also using an STLink to program myStorm (Thats how we currently develop the SDK), obviously this isn't true for everyone. So how do you upload your new minted binary without an STLink? There are two ways you can do this, the easiest is by using the built in DFU support of the STM32l476, to do this download and install [dfu-utils] (http://dfu-util.sourceforge.net/) and plug in a usb cable to myStorm (microusb) then issue the following:
```
sudo dfu-util -a 0 -d 0483:df11 -s 0x8000000:leave -D .pioenvs/nucleo_l476rg/firmware.bin
```
If you are having issues with no DFU device being found take a look at you usb:
```
dfu-util -l
```
This should list the STRM32l476
else look at :
```
lsusb
```
and you may also want to checl:
```
dmesg
```
If you see usb enumeration failures you may need to contact us on the forum, we might be able to resolve the issue depending...
Another alternative to dfu is [stm32flash](https://sourceforge.net/p/stm32flash/wiki/Home/) make sure to use the latest, I used head as the STM32476 is quite new and wasn't on some of the older dev_tables in the source. With this tool and a serial port (from say a Raspberry Pi) or a Usb-serial cable/adaptor you can then program using the uart bootloader:
```
stm32flash -b 1500000 -w .pioenvs/nucleo_l476rg/firmware.bin -v -g 0x0 /dev/ttyUSB0
```
For both the DFU and Uart bootloading make sure you have the boot jumper set like this (it's a 2mm jumper but you can get away with a 0.1" one):
```
[:]:
boot
```
```
......
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