Skip to content

Commit

Permalink
Updated with pio upload instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebiroll committed Feb 20, 2018
1 parent 7908012 commit 88f5027
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion QEMU.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Instructions are available in readme.md


# Start debubgger
esport PATH=$PATH:~/.platformio/packages/toolchain-xtensa32/bin
esport PATH=$PATH:~/.platformio/packages/toolchain-gccarmnoneeabi/bin/

/home/olas/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gdb .pioenvs/rak811/firmware.elf -ex ' target remote:1234'

Expand All @@ -28,6 +28,8 @@ esport PATH=$PATH:~/.platformio/packages/toolchain-xtensa32/bin
It starts and gets giong, emulation is not ass good as for stm32f2xx
The new files compared to the pebble emulation is called stm32l1xx

[compare makefile build with this](./parallell_run.md)

It would be nice to get debug printouts, need to investigate
UART_WaitOnFlagUntilTimeout

Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ls# RAK811 breakout board
# RAK811 breakout board

Code from here
https://github.com/RAKWireless/RAK811_BreakBoard
Expand Down Expand Up @@ -31,7 +31,14 @@ If you do not have this directory, .platformio/platforms/ststm32 try,


# To flash firmware with stm32flash
In stm32flash_src there is code to flash the device. Build with make

You can use the platformio, it comes with stlinkv2
Just move the BOOT strap one step, then

pio run --target upload


Or if you want in stm32flash_src there is code to flash the device. Build with make

./stm32flash -w .pioenvs/rak811/firmware.bin /dev/ttyUSB0
To reset and start after download, try
Expand Down
3 changes: 2 additions & 1 deletion parallell_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Here is the code,




```
0x80123dc <__libc_init_array> push {r4, r5, r6, lr} │
│0x80123de <__libc_init_array+2> movs r5, #0 │
Expand All @@ -47,3 +47,4 @@ Here is the code,
│0x80123f8 <__libc_init_array+28> asrs r4, r4, #2 │
│0x80123fa <__libc_init_array+30> cmp r5, r4
```

0 comments on commit 88f5027

Please sign in to comment.