Clean memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clean memory

2,337 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Tue May 28 12:09:43 MST 2013
how do I  automatic to clean the entire memory prev programming via the debug button?
The problem today is that the sectors where no program is have data and I would like to erase all the data once I click debug those.

LPCXPRESSO
LPC1114
0 Kudos
Reply
23 Replies

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Jun 28 03:07:21 MST 2013
Post #2 in this thread... At the bottom, it has a link to the command line interface.
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Fri Jun 28 02:32:06 MST 2013
What's CodeRed website link that describes this function "flash-mass"?
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Fri Jun 28 02:28:18 MST 2013
Yes, working. You know how I let this function in a line of code from main.c?
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Jun 26 00:27:07 MST 2013
It looks reasonable, but as I don't have your system in front of me, I can't tell whether it is absolutely correct. But I suppose the obvious question is -  did it actually work??

Regards,
CodeRedSupport
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Tue Jun 25 21:08:32 MST 2013
Please check if this command is correct?

http://www.localizeseuveiculo.com.br/clean3.jpg

I have to use this string full or only part of it works?
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Jun 24 00:33:05 MST 2013
You need to follow the process that has already been explained to you multiple times by multiple people! :(

1) Use the GUI flash programming tool to find out the correct  command line for your system

2) Put that command line into the pre-launch command section of the launch configuration for your project.

Please just try following the instructions - it really isn't that hard !!!!!


Regards,
CodeRedSupport
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Sun Jun 23 21:55:02 MST 2013
how do I automatic to clean the entire memory prev programming via the debug button? (no GUI)
The problem today is that the sectors where no program is have data and I would like to erase all the data once I click debug those.
If you do not know, please answer: "Do not know"
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfb on Tue Jun 18 21:16:08 MST 2013

Quote: marcossmart
which option should I use?


The Pre-Launch command

Quote: marcossmart
and what is the value to be inserted?


None of us can know for sure what the exact value should be for your particular system but you can find out for yourself what the details should be by first doing an experiment using the GUI Flash Programming tool:

http://knowledgebase.nxp.com/showpost.php?p=21050&postcount=2
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Tue Jun 18 18:49:53 MST 2013
I do not understand what you said, could answer my last question?
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by whitecoe on Mon Jun 17 23:51:24 MST 2013

Quote: marcossmart
updated to version 5.2.4, follow the screen image (www.localizeseuveiculo.com.br/clean1.jpg) does not have the "script values", which option should I use and what is the value to be inserted?



Oh come on - your screenshot even shows the "pre launch command" entry!!!   :rolleyes:
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Mon Jun 17 19:00:43 MST 2013
updated to version 5.2.4, follow the screen image (www.localizeseuveiculo.com.br/clean1.jpg) does not have the "script values", which option should I use and what is the value to be inserted?
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Jun 17 01:58:59 MST 2013

Quote: marcossmart
You're talking about this screen: www.localizeseuveiculo.com.br/clean.jpg ?
My version of LPCXpresso is 5.1.2



Yes, that's the screen. Scroll down the "script values". And update to LPCXpresso 5.2.4 too!

Regards,
CodeRedSupport
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Sun Jun 16 20:43:04 MST 2013
You're talking about this screen: www.localizeseuveiculo.com.br/clean.jpg ?
My version of LPCXpresso is 5.1.2
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jun 14 00:21:43 MST 2013
And you have  switched to the [FONT=Courier New][B]Debugger[/B][/FONT] tab, and  the scrolled down the [FONT=Courier New][B]Target configuration[/B][/FONT] sub-tab, as shown in the screenshot in the Launch Configuration FAQ?

If you can't see it listed under Target configuration options, then I would imagine you are using too old a version of LPCXpresso. You are using v5.2.4, right?

Regards,
CodeRedSupport
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Thu Jun 13 19:08:51 MST 2013
I'm not talking about GUI!

Checked all the links below, but does not erase the entire flash during debug.

accessing:
Launch Configurations => Edit => Debug Configurations
not have the option informed.
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Jun 13 03:23:43 MST 2013
Have you actually tried reading any of the referenced previous posts and the FAQs they pointed you at???? And have you followed what they say???? :(

For an LPCXpresso1114 board, the required string will most likely start "[FONT=Courier New]crt_emu_lpc11_13_nxp[/FONT]" and will have the option "[FONT=Courier New]-flash-mass[/FONT]" in it.

As previously stated the actually command will depend upon a number of factors, hence using the GUI flash programmer is the simplest way to see what is right for your host/probe/target system.

If you need more help, then tell us what you have actually done, what you saw, and what problems you hit.

Regards,
CodeRedSupport
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Wed Jun 12 07:25:54 MST 2013
Can you pass me the example of the command to be inserted?
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed Jun 12 06:57:02 MST 2013
Well the information is there in the post I pointed you at. What did you actually do? What didn't work?

The steps you need are:

1) Generate the correct flash mass erase command by doing a mass erase using the GUI flash programming tool

2) Copy that command out of the top of the log, and paste it into the "pre-launch command" field of your project's launch configuration.

For more details of each of these steps, follow the links given previously.

Regards,
CodeRedSupport
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by marcossmart on Tue Jun 11 08:23:38 MST 2013
I did not find the answer to this link my question.
Please let me know how to do to erase all memory when I run debug?

http://support.code-red-tech.com/CodeRedWiki/LaunchConfigMenu
0 Kudos
Reply

2,255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Wed May 29 07:00:14 MST 2013

Quote: marcossmart
how to have a more rapid with the debug button?


If you want to automatically mass erase the flash before programming via the debug button, you can do this by adding a "Pre launch command", as per:

http://knowledgebase.nxp.com/showpost.php?p=21050&postcount=2

Regards,
CodeRedSupport
0 Kudos
Reply