Skip to content

teachop/mruby-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

###Build mruby & STM32CubeF4 libraries for STM32F429I-DISCO

  • In a parent directory clone the mruby-cube repository.
  • Clone the mruby repository into the same parent folder.
  • Extract STM32Cube_FW_F4_xxxx into the same parent folder.
  • Rename this STM32Cube_FW_F4_xxxx folder to STM32CubeF4.
  • Warning there are dos-only backslash paths in stmicro bsp files :( They need fixed before building. There is a hack-ish task for doing this in the Rakefile.
  • Within the mruby-cube folder, build everything using rake.
$ cd mruby-cube
$ rake

###Flash Programming the kit On Mac OS X Mavericks, to interface to the kit built-in jtag port, use the stlink utility.

$ brew install libusb autogen automake wget pkg-config [ as needed... ]
$ git clone https://github.com/texane/stlink.git
$ cd stlink
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install

Do a quick test to be sure stlink finds the board. Use ctrl-C to exit st-util.

$ st-util
2014-06-07T08:51:21 INFO src/stlink-usb.c: -- exit_dfu_mode
2014-06-07T08:51:21 INFO src/stlink-common.c: Loading device parameters....
2014-06-07T08:51:21 INFO src/stlink-common.c: Device connected is: F42x and F43x device, id 0x10036419
2014-06-07T08:51:21 INFO src/stlink-common.c: SRAM size: 0x30000 bytes (192 KiB), Flash: 0x200000 bytes (2048 KiB) in pages of 16384 bytes
Chip ID is 00000419, Core ID is  2ba01477.
Target voltage is 2883 mV.
Listening at *:4242...

For simply flashing the discovery kit, the command format is as follows. STM32F4 flash starts at 0x0800 0000 (this kit has 2Megs).

# st-flash [--reset] {read|write} path addr <size>
$ st−flash write output.bin 0x8000000

####References

About

Use mruby and stm32cubef4 hal on stm32f429i-disco

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages