Tuesday, December 14, 2010

building arm toolchain, compiling, and loading into flash on stm32 discovery

you need macports for this to work

to build the arm toolchain go here:
https://github.com/esden/summon-arm-toolchain

in a terminal do:
git clone https://github.com/esden/summon-arm-toolchain.git

edit summon-arm-toolchain
set SUDO=sudo
set LIBSTM32_EN=1
save and go back to terminal

follow the instructions in the README

this will take a long time and you have to type in your password a few times

add ~/sat/bin to PATH in your .bash_profile

download this: http://www.robsons.org.uk/blinky.zip

unzip it, edit Makefile and everywhere it says arm-elf change it to arm-none-eabi
make
now run openocd and telnet localhost 4444

run these commands in telnet:
halt
stm32x unlock
reset
halt
flash erase_sector 0 0 last
flash write_bank 0 ~/Downloads/blinky/blinky.bin 0
reset init

the green led should blink, the blue led should blink twice as fast, and when you hold the usr button the green led should stop blinking.

hooray!

4 comments:

  1. Hi there! Do you use Twitter? I'd like to follow you if that would be okay. I'm undoubtedly enjoying your blog and look forward to new updates. outlook sign in

    ReplyDelete
  2. We cannot and do not guarantee their applicability or accuracy in regards to your individual circumstances. canada mortgage calculator You get your new home employing a portion or each of the funds from your sale of your old home, private savings, gift money that are then combined using the reverse mortgage proceeds. mortgage payment calculator

    ReplyDelete
  3. Wagers can be placed on particular person numbers or groups of numbers on the betting structure. When the ball involves rest on the roulette wheel, the supplier locations a marker on the winning number on the table structure and pays the 메이저사이트 winning bets. It is a significant attraction in each land-based casinos and online live casino platforms.

    ReplyDelete
  4. Betting on where a ball will land on a spinning roulette wheel has captivated gamers for generations. On the one hand, 메리트카지노 roulette is a sport of chance, and no quantity of ability can change the percentages. However, expert gamers can use sure strategies to increase their possibilities of profitable.

    ReplyDelete