Some notes on my latest project: Home Automation.
just a list of links for my own reference so far:
http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/CD00267113.pdf
http://www.st.com/web/en/resource/technical/document/datasheet/CD00251732.pdf
http://www.st.com/web/en/resource/technical/document/reference_manual/CD00240193.pdf
http://elk.informatik.fh-augsburg.de/pub/stm32lab/libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/Library_Examples.html
http://wiki.openwrt.org/toh/tp-link/tl-wr703n
http://wiki.openwrt.org/toh/tp-link/tl-wr710n
http://wiki.openwrt.org/doc/devel/crosscompile
http://www.maximintegrated.com/app-notes/index.mvp/id/126
http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
build .bin and .elf for microcontroller:
duncan@duncan:~/Working/git/stm32_io_unit$ make TOOLCHAIN_PATH=~/Working/EmbeddedArm/gcc-arm-none-eabi-4_8-2014q1/bin/ -f ./Makefile.Demoaddress of start of heap on microcontroller:
duncan@duncan:~/Working/git/stm32_io_unit$ /home/duncan/Working/EmbeddedArm/gcc-arm-none-eabi-4_8-2014q1/bin/arm-none-eabi-readelf -a ./Demo.elf | grep _heap [ 5] ._heap NOBITS 2000025c 01020c 000400 00 WA 0 0 1parse for start of heap on microcontroller:
duncan@duncan:~/Working/git/stm32_io_unit$ /home/duncan/Working/EmbeddedArm/gcc-arm-none-eabi-4_8-2014q1/bin/arm-none-eabi-readelf -a ./Demo.elf | grep _heap | head -n1 |awk '{ print $5; }' > heap_startreading heap from microcontroller:
root@tick:~# cat /tmp/heap_start20000294root@tick:~# st-flash read v1 /tmp/out.1 0x`cat /tmp/heap_start` 80 && hexdump -v /tmp/out.12014-05-24T13:01:25 INFO src/stlink-common.c: Loading device parameters....2014-05-24T13:01:25 INFO src/stlink-common.c: Device connected is: F1 Medium-density Value Line device, id 0x100164202014-05-24T13:01:25 INFO src/stlink-common.c: SRAM size: 0x2000 bytes (8 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 1024 bytes2014-05-24T13:01:25 INFO src/stlink-sg.c: Successfully opened a stlink v1 debugger0000000 6c65 6433 0000 0000 0000 0000 0000 00000000010 0200 0000 2900 0000 4d00 0000 0000 00400000020 6c65 6434 0000 0000 0000 0000 0000 00000000030 0100 0000 2800 0000 0100 0000 0040 01400000040 0200 0000 0000 0000 0000 0000 0000 00000000050 0000 0000 0000 0000 0000 0000 0000 00000000060 0000 0000 0000 0000 0000 0000 0000 00000000070 0000 0000 0000 0000 0000 0000 0004 00400000080