Keil™, An ARM® Company

Discussion Forum

program faulr?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Author
Marleen ten Broeke
Posted
27-Aug-2008 02:36
Toolset
ARM
New! program faulr?

Hello,

I'm (still) working on a project with the LM3S811.
At first i had some problems with the compiler in uVision but that is solved now!

Now i have a different problem, when i load my project i to the memory uvision says it is done, but when i reset the evalboard it does nothing!
I also did this with a example project, same problem!

I also tried to load the file with luminary micro flash programmer but i have the same problem.
When i load a .bin file that i know is good it does work!
So programming is going oke, but i think the problem lies in creating a .bin file.

I do this in uVision by putting the following line in a user command (after build);

C:/Keil/ARM/BIN31/fromelf.exe --output blinky.bin --bin blinky.axf

can anybody tell me what i am doing wrong??

Thanks,

Author
Tamir Michael
Posted
27-Aug-2008 02:45
Toolset
ARM
New! RE: program faulr?

...but i think the problem lies in creating a .bin file.

not necessarily. have you considered that your binaries fail to start because of a software problem? have you tried your debugger with a binary that does not seem to function?

Dan moet u even geduld hebben...

Author
phlased membar
Posted
27-Aug-2008 02:51
Toolset
ARM
New! Dan moet u even geduld hebben...

hibble bobble babble kibble!

Author
Per Westermark
Posted
27-Aug-2008 02:59
Toolset
ARM
New! RE: Dan moet u even geduld hebben...

Have you specified a flash project, so you don't just download to RAM?

Author
Marleen ten Broeke
Posted
27-Aug-2008 03:19
Toolset
ARM
New! RE: Dan moet u even geduld hebben...

How do i specify a flash project?

Under flash and than configure flash tools?

Thanks for all your ideas i had none!

Author
Marleen ten Broeke
Posted
27-Aug-2008 03:26
Toolset
ARM
New! RE: program faulr?

because i do not have a full version of uvision my debugger doesnÂ't work (totally).

At least that is what uvision says to me when i start a debug session.

I am pretty new to uvision and arm processors so you have to break everything in little steps for me.

I am sorry for that! I am trying to learn but uvision doesnÂ't want to work with me!! :)

Thanks for your patients!

Author
Tamir Michael
Posted
27-Aug-2008 03:34
Toolset
ARM
New! RE: program faulr?

maybe you can give some indication using a LED what your software is doing, or if it caused an exception of some kind? you can place an infinite loop in any exception handler, then send out a message using a UART, blink a LED as mentioned above, beep etc.....

Author
Marleen ten Broeke
Posted
27-Aug-2008 03:40
Toolset
ARM
New! RE: program fault?

I tried to load blinky.
This is a example project that was deliverd with the evalbord.

But the LED doesnt blink!

So i think i have to give a starting adress for programming or the creating of the bin file is not going well.

Author
Tamir Michael
Posted
27-Aug-2008 03:59
Toolset
ARM
New! RE: program fault?

a long shot, I know: have you verified that the memory layout of the demo project matches the memory on your board...?

Author
Tamir Michael
Posted
27-Aug-2008 04:01
Toolset
ARM
New! RE: program fault?

have you setup the flash correctly as Per suggested? what eval board are you using?

Author
nickbar kethef
Posted
27-Aug-2008 04:32
Toolset
ARM
New! RE: program fault?

it is a odd problem.

post the project files and all the code here and we will check it for you.

Author
Marleen ten Broeke
Posted
27-Aug-2008 04:49
Toolset
ARM
New! RE: program fault?

I dont know what Per meant so i did not do that.

You can find all the project files on this website:

http://www.circuitcellar.com/archives/viewable/Birsan207/12.html

I use the EKK-LM3S811 evalbord.

The blinky project has done it, but i do not know what i have changed.

If you want i can also post the blinky project.

Thanks already!

Author
Tamir Michael
Posted
27-Aug-2008 04:59
Toolset
ARM
New! RE: program fault?

open your 'project->options for target' dialog. then click the utilities tab, then click the settings button (for flash programming). there you will be able add flash algorithms for your specific target. without that no flash operation can succeed!

Author
Marleen ten Broeke
Posted
27-Aug-2008 05:48
Toolset
ARM
New! RE: program fault?

I tried to add flash algorithm but that is not possible.
I use luminary eval board.

I can not use ULINK because i do not have a cable for that. And i have the same problem with JTAG.
Than there are two more options; RDI interface driver and luminary eval board.

I can also use the flash programmer from luminary micro but that doesnt work. I have the same problem there.

Author
Tamir Michael
Posted
27-Aug-2008 05:05
Toolset
ARM
New! RE: program fault?

Marleen,
It is so incredibly refreshing to have a woman here among us droogs (assuming of course you are indeed one...). Hell the last woman I saw here was ms. embedded and something tell me she was as hairy as a bear....

Author
Marleen ten Broeke
Posted
27-Aug-2008 05:17
Toolset
ARM
New! RE: program fault?

you assumed right!

and you (the most here) are not that bad!
I learned a lot here from you guys

Author
nickbar kethef
Posted
27-Aug-2008 05:38
Toolset
ARM
New! RE: program fault?

Marleen. I am happie we can help you :)

Author
Marleen ten Broeke
Posted
28-Aug-2008 02:04
Toolset
ARM
New! RE: program fault?

I tried to add flash algorithm but that is not possible.
I use luminary eval board.

I can not use ULINK because i do not have a cable for that. And i have the same problem with JTAG.
Than there are two more options; RDI interface driver and luminary eval board.

I can also use the flash programmer from luminary micro but that doesnt work. I have the same problem there.

Author
Tamir Michael
Posted
28-Aug-2008 03:47
Toolset
ARM
New! RE: program fault?

well, if you cannot add a flash algorithm, you are unlikely to have your software uploaded correctly. but why not? I see your device in uv's list of flash devices available to me (I'm using 3.20). have you selected the correct target driver for flash programming ("configure flash menu command" menu)

Author
Marleen ten Broeke
Posted
1-Sep-2008 05:39
Toolset
ARM
New! RE: program fault?

Hello Tamir,

i do not understand you totally.
But i selected the right target (LM3S811).
I do not know how to select the correct target driver, maybe you can expend more about this?

I am afraid that my problem lies in having a eval mode.

As flash programmer i now have luminary eval board standing. unfortunaly i can not do any settings here.

Can i put a picture in this forum, so i can show you a screenshot??

Thanks,

Author
Tamir Michael
Posted
1-Sep-2008 06:09
Toolset
ARM
New! RE: program fault?

Hello Marleen,

Yes, I see what you mean. I just tried to follow my previous advise with your board selected as target - to no avail. The information message here advises me to visit http://www.luminarymicro.com/. Maybe you can find your answer there?

Note
This message was edited to correct formatting.

Author
Tamir Michael
Posted
1-Sep-2008 06:10
Toolset
ARM
New! RE: program fault?

I think they even have their own forum.

Author
Marleen ten Broeke
Posted
1-Sep-2008 07:09
Toolset
ARM
New! RE: program fault?

Thanks, i posted a question on there forum.

i still find it strange that the blinky project does not work anymore.

I hope they can give me some answers.

Author
Marleen ten Broeke
Posted
3-Sep-2008 01:17
Toolset
ARM
New! RE: program fault?

Oke, yesterday i had some problems with uvision but afer re-installing it a couple of timeÂ's it is working again!

The blinky project is now working.

But when re-build my project i get an error.
I do not know what the problem is, Maybe you guys can help?

This is the error:

Build target Target1
..
Linking...
Cortex=project.axf: Error: L6218E: Undefined symbol I2CMasterInitExpClk (reffer from osram96x16.o)
Target not created

The osram file is for the oLED display on my board.
I saw a older post on this topic but it wasnÂ't solved (and it was a different board).

Does anybody know of this problem?

Author
Hans-Bernhard Broeker
Posted
3-Sep-2008 11:51
Toolset
ARM
New! RE: program fault?

Undefined symbol I2CMasterInitExpClk (reffer from osram96x16.o)

Two things:

1) please don't re-type error messages. Copy-pasting them avoids typos like the above "reffer" instead of "referred".

2) That's a pretty clear error message. The module osram96x16 calls a function or uses a variable, named "I2CMasterInitExpClk", which doesn't exist anywhere in the code you told the linker to process. Find it and put it into the project.

Author
Marleen ten Broeke
Posted
8-Sep-2008 01:43
Toolset
ARM
New! RE: program fault?

Hello,

Thanks for all the help!

it is working now!!

I needed the latest driverlib.
When I installed these and changed the directory (in uVision) it worked!

So now i need to study the code and find out how i can let the project speak dutch! and inprove the quality of the voice.

Thanks for the help i gave me a lot of new ideas.

Next Thread | Thread List | Previous Thread Start a Thread | Settings