cd /tmp git clone https://github.com/supramaterial/Runtime cd Runtime/stm32/build make sketch.cpp # edit sketch.cpp to blink a led; see below make That creates hardware/stm32f334nucleo/sketch.{hex,bin} How to flash that to the STM32F334nucleo, I don't know exactly. Lari knows, he's done that. Here is a simple sketch for a LED in pin #3 ----------------------- #include <Arduino.h> void setup() { pinMode(3, OUTPUT); } void loop() { digitalWrite(3, 1); for (volatile int i = 0; i < 10000; i++) ; digitalWrite(3, 0); for (volatile int i = 0; i < 10000; i++) ; } ------------------ YMMV. --Pekka On 2014–09–12, at 20:30 , otso@xxxxxxxxxxxx wrote: > I have some time over weekend as well as the hardware, please send me the > details of what has to be tested and how "works" is defined. I'll test it > if I get more pressing issues with the hardware in order. > > -otso > >> Could someone please test this on a real STM32F334? If it works, I'll >> merge it. >> >> --Pekka >> >> Begin forwarded message: >> >>> From: supramaterial <notifications@xxxxxxxxxx> >>> Subject: [Runtime] Added support for STM32F334 emulator (#24) >>> Date: 11 Sep 2014 1:05:12 GMT+3 >>> To: Ell-i/Runtime <Runtime@xxxxxxxxxxxxxxxxxx> >>> Reply-To: Ell-i/Runtime >>> <reply+i-42466605-35e7ed84685e7220999a32a51c47bf889c73a76d-681239@xxxxxxxxxxxxxxxx> >>> >>> Please, test on real hardware, I just tested in the emulator. >>> >>> You can merge this Pull Request by running >>> >>> git pull https://github.com/supramaterial/Runtime master >>> Or view, comment on, or merge it at: >>> >>> https://github.com/Ell-i/Runtime/pull/24 >>> >>> Commit Summary >>> >>> Add: C initialisation and headers for STM32F334 >>> Add: Emulator SCB support for STM32F334 >>> Add: Compile flags for emulator shared library for STM32F334 >>> File Changes >>> >>> M stm32/emulator/inc/SCB.h (2) >>> M stm32/make/emulator.mk (5) >>> M stm32/make/system_lib.mk (2) >>> A stm32/system/stm32/inc/system_stm32f3xx.h (76) >>> D stm32/system/stm32/src/startup_stm32f334x8.S (421) >>> A stm32/system/stm32/src/startup_stm32f334xx.c (328) >>> Patch Links: >>> >>> https://github.com/Ell-i/Runtime/pull/24.patch >>> https://github.com/Ell-i/Runtime/pull/24.diff >>> — >>> Reply to this email directly or view it on GitHub. >>> >> >> > >
Attachment:
smime.p7s
Description: S/MIME cryptographic signature