Can't find openocd.cfg

abhinav:
first let me tell u how much i appreciate all the pains taken by you to write reply for what all i asked.you must have been working with micro controllers for a long time.

1000 small steps will get you there :lol:

abhinav:
but any ideas how i can understand all the confusing lines of code and programs in gdb?

Well text based gdb is not the most userfriendly program out there…

that is why a lot of persons are using frontends like ddd or eclipse,

and to be honest maybe 70-95% are using a frontend.

abhinav:
you must have read many books and links when u were a beginner.

I still read a lot and google a lot and read a couple of other forums like http://stackoverflow.com/ (it’s good if you filter all the C#/.net stuff) etc etc

abhinav:
can u point me in the right direction so that i can understand atleast an error msg …

Well continue to try, and try and try again (even if you feel feel like giving up sometimes)

And don’t forget that you have choosen to start with a advanced piece of hardware :roll: (there are easier mcu:s out there, like the AVR:s)

But the Cortex-M3 is cool… 8)

jsiei97:

abhinav:
but any ideas how i can understand all the confusing lines of code and programs in gdb?

Well text based gdb is not the most userfriendly program out there…

that is why a lot of persons are using frontends like ddd or eclipse,

and to be honest maybe 70-95% are using a frontend.

So let’s use Insight instead (another gdb frontend) :idea:

Compile info can be found at the bottom of this page:

http://www.fun-tech.se/stm32/gcc/index.php

And example can be found at the bottom of this page:

http://www.fun-tech.se/stm32/OpenOCD/gdb.php

I think you will have better luck with that one 8)

BR

Johan

jsiei97:
Next step…? Don’t know.

Probably try to understand what those link scripts

Compile Olimex blinky

http://fun-tech.se/stm32/gcc/compile_blinky.php

Dissect blinky

http://fun-tech.se/stm32/OlimexBlinky/index.php

Next step…?

How about a internal print buffert that you can read with gdb,

and later get Virtual COM port to work as well…

/Johan

hi thanks i am reading through all the links you posted

hi i think i have loaded a hello world program successfully into the board using eclipse in windows system.any idea how i can see the print out put from the board on my comp in linux?

abhinav:
hi i think i have loaded a hello world program successfully into the board using eclipse in windows system.any idea how i can see the print out put from the board on my comp in linux?

Sure how about a “usb virtual com port”

There is some code linked from this page

http://www.st.com/mcu/modules.php?name= … B#Firmware

It is called STM32_USB-FS-Device_Lib.

That is my idea (have not had time to look at it thou). :roll:

BR

Johan

k for now,i need your help in a different situation.i have a display lcd from EA DOGM162L-A whose data sheet can be found at

http://nl.mouser.com/ProductDetail/ELEC … yEyQ%3d%3d

(in the documents tab).

i have to get the display to show hello world and i want to use the SPI interface to do it.so i soldered the display to the board so that i use the SPI2 interface according to page 4 of the display data sheet(3.3V SPI).

following the initialisation sequence in the data sheet,i understood i have to first write the data 55H into the display ram so that i can get the display to start.

also i have downloaded the stm32 standard peripheral library from stm site from

http://www.st.com/mcu/modules.php?name= … B#Firmware

so my present trouble is

1)how do i get the spi2 driver installed from the library i downloaded(is it necessary to install at all?)

2)once i resolve the SPI issue how can i proceed to write data 55H to display ram so that my display can come to life

3)this is the final objective, how do i get the hello world printed on the display?

i know this may not be what you are working on right now, but i thought you must have some idea about initializing new interface from your experience.please help

abhinav:
k for now,i need your help in a different situation.i have a display lcd from EA DOGM162L-A whose data sheet can be found at

Since we have walked quite far away from the first question,

I think you should create a new one under “Everything ARM and LPC” section.

And in that question only focus on the display problem.

abhinav:
so my present trouble is

1)how do i get the spi2 driver installed from the library i downloaded(is it necessary to install at all?)

The process is more like:

  1. Download

  2. unpack

  3. build in those files you need in your normal code.

So it is kind of a install, but not a normal one :wink:

I’m actually plan to looking at this part

(but I don’t have that much time right now so…)

BR

Johan

k i have started a new thread at

viewtopic.php?p=84636#84636

k after unzipping,i found .c files for various interfaces including spi.then how do i build it?there is no make file or anything with it.

also once i get it done how do i write data to display ram?

u can answer in the new thread