How the Flash Programmer works?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How the Flash Programmer works?

2,877件の閲覧回数
fiskom
Contributor I
Hello again,

I want to execute my code without BDM. So I have to flash my Code into FLASH. But you know, I'm a newbie:
I've read the article "Flash Programmer" in CodeWarrior Help System, all my settings are as told. Only this message appears after pressing "program"-button :
"0x00004438 bytes of Target Memory at 0x20000500 is not within flash boundaries."
My Question: What does it mean? I want to write to the FLASH and not the RAM (which is addressed at 0x20000000).
I click on "Details" -> ": No Error"
Now I thought, I am able to use my EVB without the BDM. But if I plugged off the BDM-USB cable the "red" LED at the RESET-Button started to glow and wont stop until I replugged the BDM-cable.
I have turned off the supply-voltage and immediately turned it on again. I thought now, my code would be executed automatically (BDM not connected at this moment). But if my code would run, the LEDs should turn off and i should gain i message via UART, which all works fine in BDM-debug-mode.
I am astonished, because I have tested other IDEs ,e.g. pemicro's pkgcfz, in my opinion, its an ugly software, but I was easily able to bring my code into FLASH.

Please help. And Thanks in Advance

ADDITIONAL:
Still use the free CodeWarrior version, but my Code has only 21 files with 96K and 16K of Data.
ラベル(1)
タグ(1)
0 件の賞賛
4 返答(返信)

713件の閲覧回数
fiskom
Contributor I
I test a lot of different *.lcf-Files (with the noun FLASH in its filename), but it wont work.
This is the error, i gain from the flash programmer:

" Flash Programmer: Flash driver reports the following error(s): Chip reported error during program "
0 件の賞賛

713件の閲覧回数
mjbcswitzerland
Specialist V
Hi

Check out the following tutorial:
http://www.utasker.com/docs/M5223X/uTaskerV1.2-Tutorial-M5223X.PDF
On pages 7 and 8 there is also a step by step programming guide using CW6.3 and CF Flasher V3.3.1 which may help you.
The tutorial is for the M5223X but the uTasker runs also on the M5213 and programming is identical - I use also the M5213EVB with it.

Regards

0 件の賞賛

713件の閲覧回数
J2MEJediMaster
Specialist I
How are you setting up the interrupt vector so that on a processor reset, it will jump to the start of your code?

---Tom
0 件の賞賛

713件の閲覧回数
fiskom
Contributor I
I think, I need another ".lcf"-file, because I have these "M5213EVB_SRAM.lcf" and the "M5213EVB_FLASH.lcf". Until now, i always targetted the SRAM.lcf. If I want to use the FLASH.lcf, there appears an error, because he couldn't find "__start" with "Exception Vector Name: Address Error".
Where is my fault?

Please help me
0 件の賞賛