cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line Flash Programmer Question - Map directory

bruce
Associate II
Posted on July 20, 2008 at 01:14

Command Line Flash Programmer Question - Map directory

2 REPLIES 2
bruce
Associate II
Posted on May 17, 2011 at 12:40

I recently downloaded the new command line flash programmer.

And it was a struggle to get it to work. It gave the following error:

E:\Example1>make download

STMFlashLoader.exe -c --pn 4 --br 115200 -i STM32F10xxBxx -e --all -d --v --fn obj/bkpex1.s19

Connecting [OK]

Configuring [OK]

This version is not intended to support the target

Finally, I succeeded when I put my binary file in the same directory as the STMFlashLoader.exe.

After further experimentation, it seems that for me to call that program from another directory, I need to have a copy of the Map directory under the local directory I was using. Otherwise I would get the above ''not supported'' error message.

I was unable to find anything in the documentation relating to this Map directory. I was expecting some environment variable I could set or something.

Is there a way to call the command line programmer from a different directory, and still have it find the Map directory?

Thanks

lanchon
Associate II
Posted on May 17, 2011 at 12:40

not what you asked, just silly workarounds...

in the makefile you could:

cd && STMFlashLoader.exe

or you can create a batch in the path that cd's to the flashloader dir and restores current dir afterwards, something like:

cmd /c cd && STMFlashLoader.exe %*