Topic : Ride7 RLINK and STM32 - how to start

Forum : ARM

Original Post
Post Information Post
January 28, 2008 - 9:57pm
Guest

Hello

I have been trying to run some applications on STM32F10X-128-EVAL kit. I can run some simple applications in RAM, but i cannot program my eval kit so it will run from flash. Documentation for ride7 is generic and it doesn't say anything about how to use it etc. Could someone give me a step-by-step guide how to program and run applications from flash, external flash ?

Regards
jackkpl

Replies
Post Information Post
+1
0
-1
January 29, 2008 - 9:36am
Guest

Hello,

whenever an ARM project is opened, the Ride7 documentation pane should be updated and display all needed information about development on ARM platforms.

You can open a sample ARM project from our examples directory (STR7, STR9 or STM32, it does not matter) and plenty of other documents should appear in the documentation pane. Then, I suggest you read the following documents:

1. "Getting Started with Ride7 for ARM"
2. "User Guide for the REva mother board"
3. "User Guide for STM32-based daughter-boards"

regards
Lionel

+1
0
-1
January 29, 2008 - 8:25pm
Guest

Hello

I have read "Getting started" before posting. I found no information on how to write ARM's flash so it will run without debugger (not from RAM). I have this board : http://www.st.com/mcu/contentid-100-110-STM3210B_EVAL.html and i cannot make it work from flash. Please give me some hints how should i program this board (is it possible from ride7 or do i need other tools?).

Regards
jackkpl

+1
0
-1
January 30, 2008 - 10:03am
Guest

Open the RLink advanced options window, uncheck the "Debug" box and validate. When you start a debug session, the flash will be programmed and the cpu resetted but not in debug mode.

You can also use the cortex_pgm.exe command-line executable found in "C:\Program Files\Raisonance\Ride\bin" or corresponding location.

Lionel

+1
0
-1
January 30, 2008 - 8:25pm
Guest

Hello

Today i tried one of Raisonance projects (USB Joystick mouse). I discovered that when i want to debug in flash i need to clear "defines" and if i want to debug in RAM i need to define VECT_TAB_RAM. Joystick mouse project works fine both in ram and in flash. I can also write flash and run it without debugging. I cannot understand though why my own project (modified example that just plays simple WAV from memory) can be debugged in RAM (VECT_TAB_RAM defined) , but i get "Out of code" in flash debug (no defines). If you could explain this to me i would be grateful.

Regards
jackkpl

Update

Finally i found my mistake. I had lines initiating Flash memory commented out (i thought these are for external I2C flash). Finally i can debug in flash...

Thank you for being patien Lionel

Regards
jackkpl