EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Philips Flash Utility does not program the flash

Started by noman992003 November 22, 2011
I am using this Olimex LPC-2106 Dev. board. I can download and run the program demo2106_blink_ram from the ram. But when I try program the flash with the test program demo2106_blink_flash after checking for blank flash, it would show the blue progress line but would not blink the LED. I followed the steps below:
1.I powered up the board connected the rs232 cable to computer and the board, the same cable that works with RAM operation that works. Installed the BSL jumper.
2. I browsed and selected the hex file.I blank checked the flash. I set the Xtal frequency to 14746KHz, set correct COM port.Uncheched the "use DTS/CTS" on the flash utility configuration.
3. From menu I selected "Flash Buffer Operations"
4. On the new window, I used "Load Hex File" button to load the main.hex file into the flash utility .
5.I clicked "Vector Calc" button.
6. Then I clicked "Upload TO Flash"
7. Progress bar showed it programmed a little too fast for comfort.
8. I took out the BSL jumper and pressed the reset button and Led would not blink.

please tell me what I am doing wrong.
Regards
Noman

An Engineer's Guide to the LPC2100 Series

Hi

Does the Philips Flash Utility still exist?

I would try with Flash Magic since this seems to be the standard ISP method for developers today.

When loading to the board use the "verify" option to be sure that the programmed code is correct.

If it verifies correctly but doesn't run when the ISP mode is exited it may be that the code is not configured correctly - thsi will need a debugger to be sure though.

Regards

Mark

--- In l..., "noman992003" wrote:
>
> I am using this Olimex LPC-2106 Dev. board. I can download and run the program demo2106_blink_ram from the ram. But when I try program the flash with the test program demo2106_blink_flash after checking for blank flash, it would show the blue progress line but would not blink the LED. I followed the steps below:
> 1.I powered up the board connected the rs232 cable to computer and the board, the same cable that works with RAM operation that works. Installed the BSL jumper.
> 2. I browsed and selected the hex file.I blank checked the flash. I set the Xtal frequency to 14746KHz, set correct COM port.Uncheched the "use DTS/CTS" on the flash utility configuration.
> 3. From menu I selected "Flash Buffer Operations"
> 4. On the new window, I used "Load Hex File" button to load the main.hex file into the flash utility .
> 5.I clicked "Vector Calc" button.
> 6. Then I clicked "Upload TO Flash"
> 7. Progress bar showed it programmed a little too fast for comfort.
> 8. I took out the BSL jumper and pressed the reset button and Led would not blink.
>
> please tell me what I am doing wrong.
> Regards
> Noman
>

Hi
Thanks for the hint, I will try to download Flash Magic and try again. I will check the codes and checksum. I have not worked with ARM for 3 yrs.

 
Best Wishes!
Noman
________________________________
From: Mark
To: l...
Sent: Tuesday, November 22, 2011 9:18:33 PM
Subject: [lpc2000] Re: Philips Flash Utility does not program the flash


 
Hi

Does the Philips Flash Utility still exist?

I would try with Flash Magic since this seems to be the standard ISP method for developers today.

When loading to the board use the "verify" option to be sure that the programmed code is correct.

If it verifies correctly but doesn't run when the ISP mode is exited it may be that the code is not configured correctly - thsi will need a debugger to be sure though.

Regards

Mark

--- In l..., "noman992003" wrote:
>
> I am using this Olimex LPC-2106 Dev. board. I can download and run the program demo2106_blink_ram from the ram. But when I try program the flash with the test program demo2106_blink_flash after checking for blank flash, it would show the blue progress line but would not blink the LED. I followed the steps below:
> 1.I powered up the board connected the rs232 cable to computer and the board, the same cable that works with RAM operation that works. Installed the BSL jumper.
> 2. I browsed and selected the hex file.I blank checked the flash. I set the Xtal frequency to 14746KHz, set correct COM port.Uncheched the "use DTS/CTS" on the flash utility configuration.
> 3. From menu I selected "Flash Buffer Operations"
> 4. On the new window, I used "Load Hex File" button to load the main.hex file into the flash utility .
> 5.I clicked "Vector Calc" button.
> 6. Then I clicked "Upload TO Flash"
> 7. Progress bar showed it programmed a little too fast for comfort.
> 8. I took out the BSL jumper and pressed the reset button and Led would not blink.
>
> please tell me what I am doing wrong.
> Regards
> Noman
>




An open source option to FlashMagic is lpc21isp, which now has a couple
of graphical interfaces.

I wrote an interface using the FLTK libraries that is cross-platform,
and works fine for me. I put it in the lpc21isp yahoo group files
section, but you can't get there if you are not a member of that group;
so I put it on my website here: http://www.mcknight-instruments.com

Bug fixes and updates will be welcomed ;)

Moses

On 11/22/2011 08:18 PM, Mark wrote:
> Hi
>
> Does the Philips Flash Utility still exist?
>
> I would try with Flash Magic since this seems to be the standard ISP method for developers today.
>
> When loading to the board use the "verify" option to be sure that the programmed code is correct.
>
> If it verifies correctly but doesn't run when the ISP mode is exited it may be that the code is not configured correctly - thsi will need a debugger to be sure though.
>
> Regards
>
> Mark
>
> --- In l..., "noman992003" wrote:
>>
>> I am using this Olimex LPC-2106 Dev. board. I can download and run the program demo2106_blink_ram from the ram. But when I try program the flash with the test program demo2106_blink_flash after checking for blank flash, it would show the blue progress line but would not blink the LED. I followed the steps below:
>> 1.I powered up the board connected the rs232 cable to computer and the board, the same cable that works with RAM operation that works. Installed the BSL jumper.
>> 2. I browsed and selected the hex file.I blank checked the flash. I set the Xtal frequency to 14746KHz, set correct COM port.Uncheched the "use DTS/CTS" on the flash utility configuration.
>> 3. From menu I selected "Flash Buffer Operations"
>> 4. On the new window, I used "Load Hex File" button to load the main.hex file into the flash utility .
>> 5.I clicked "Vector Calc" button.
>> 6. Then I clicked "Upload TO Flash"
>> 7. Progress bar showed it programmed a little too fast for comfort.
>> 8. I took out the BSL jumper and pressed the reset button and Led would not blink.
>>
>> please tell me what I am doing wrong.
>> Regards
>> Noman
>>
>
If you tell the flash programming utility to read-back/verify, and it succeeds, then your LED blinky program fault is something else. Such as Crystal frequency, jumpers, code is invalid, etc.

thanks! I will have to check the code. I am trying to use Lynch's demo2106_blink_flash. I downloaded a second copy of it. Philps LPC2000 utility and Flash Magic both show "flash programming verified ok" and I can read the flash. I can also erase the flash with Philip utility.

Thanks again.

 
Best Wishes!
Noman
________________________________
From: "c...@gmail.com"
To: l...
Sent: Sunday, November 27, 2011 8:59:36 PM
Subject: [lpc2000] Re: Philips Flash Utility does not program the flash


 
If you tell the flash programming utility to read-back/verify, and it succeeds, then your LED blinky program fault is something else. Such as Crystal frequency, jumpers, code is invalid, etc.




Hi,

I have not used ARM with Philips Utility  to program the flash in Olimex LPC2106 boardbefore. It works well from RAM. But when I try to program the flash using the utilily with Lynch's "demo2106_blink_flash" hex codes the following way:

1.After setting BSL jumper and  From menu buffer-> Flash Buffer Operations
2. I set Select Section start: 00000000 End:000002DF
3. Then when I click "Load Hex File" button I get error "Code in Hex file exceeds Flash Limitations", would not even load

 I used to falsh magic and erased and programed the flash and verifies ok. But would not start after I take out the BSL jumper and press "Reset" button
Thanks if anyone could give me a hint.

 
Best Wishes!
Noman
________________________________
From: "c...@gmail.com"
To: l...
Sent: Sunday, November 27, 2011 8:59:36 PM
Subject: [lpc2000] Re: Philips Flash Utility does not program the flash


 
If you tell the flash programming utility to read-back/verify, and it succeeds, then your LED blinky program fault is something else. Such as Crystal frequency, jumpers, code is invalid, etc.




--- In l..., Noman Mahmood wrote:
>
> Hi,
>
> I have not used ARM with Philips Utility  to program the flash in Olimex LPC2106 boardbefore. It works well from RAM. But when I try to program the flash using the utilily with Lynch's "demo2106_blink_flash" hex codes the following way:
>
> 1.After setting BSL jumper and  From menu buffer-> Flash Buffer Operations
> 2. I set Select Section start: 00000000 End:000002DF

Where does this selection range come from? My version of a blinking LED uses 0..2AF but yours could well have a few more bytes.

Why not change the section End to 00000FFF?

> 3. Then when I click "Load Hex File" button I get error "Code in Hex file exceeds Flash Limitations", would not even load
Look at the addresses in the hex file and see if they are out of range. The first few bytes of every line will tell the story:

:1002A00000020040FEFFFFEAFEFFFFEAFEFFFFEA5A
: <= start of record
.10 <= length of record data field
...02A0 <= load address ****
.......00 <= not used
.........00020040FEFFFFEAFEFFFFEAFEFFFFEA <= data
.........................................5A <= checksum

This is the final data record in my hex file for a blinking LED. It loads the final 16 bytes beginning at 0x02A0 so the range is 0x0000..0x02AF.

:00000001FF

This is the very last line in the hex file and it is the end of file mark. It has a data length of 0.

You can Google for 'intel hex file format' for more information.

There is a possibility that the code is still being generated for addresses outside the valid range for flash. This could be a problem in your linker script. Again, these addresses will show up in the hex file.

Richard

Hi rtstofer:
thanks! grateful to you. I will check as soon as I get a breather.

 
Best Wishes!
Noman
________________________________
From: rtstofer
To: l...
Sent: Tuesday, November 29, 2011 12:22:25 PM
Subject: [lpc2000] Re: Philips Flash Utility does not program the flash


 
--- In l..., Noman Mahmood wrote:
>
> Hi,
>
> I have not used ARM with Philips Utility  to program the flash in Olimex LPC2106 boardbefore. It works well from RAM. But when I try to program the flash using the utilily with Lynch's "demo2106_blink_flash" hex codes the following way:
>
> 1.After setting BSL jumper and  From menu buffer-> Flash Buffer Operations
> 2. I set Select Section start: 00000000 End:000002DF

Where does this selection range come from? My version of a blinking LED uses 0..2AF but yours could well have a few more bytes.

Why not change the section End to 00000FFF?

> 3. Then when I click "Load Hex File" button I get error "Code in Hex file exceeds Flash Limitations", would not even load

Look at the addresses in the hex file and see if they are out of range. The first few bytes of every line will tell the story:

:1002A00000020040FEFFFFEAFEFFFFEAFEFFFFEA5A
: <= start of record
.10 <= length of record data field
...02A0 <= load address ****
.......00 <= not used
.........00020040FEFFFFEAFEFFFFEAFEFFFFEA <= data
.........................................5A <= checksum

This is the final data record in my hex file for a blinking LED. It loads the final 16 bytes beginning at 0x02A0 so the range is 0x0000..0x02AF.

:00000001FF

This is the very last line in the hex file and it is the end of file mark. It has a data length of 0.

You can Google for 'intel hex file format' for more information.

There is a possibility that the code is still being generated for addresses outside the valid range for flash. This could be a problem in your linker script. Again, these addresses will show up in the hex file.

Richard




Hi,
rtstofer very kindly sent me the last line of HEX code from ARM demo2106_blink_flash file (led blinking) for using with Philips Lpc2000 Flash Utility tool. I believe on reset when I press the reset switch it should have jump code (B) at 0x0000 0000 address..
So if I could get the first line of hex codes at ARM 2106 flash 0x00000000 address I could compare with my downloaded hex codes.
thanks in advance!

Best Wishes!
Noman
________________________________
From: Noman Mahmood
To: "l..."
Sent: Tuesday, November 29, 2011 11:08:00 AM
Subject: Re: [lpc2000] Re: Philips Flash Utility does not program the flash


 
Hi,

I have not used ARM with Philips Utility  to program the flash in Olimex LPC2106 boardbefore. It works well from RAM. But when I try to program the flash using the utilily with Lynch's "demo2106_blink_flash" hex codes the following way:

1.After setting BSL jumper and  From menu buffer-> Flash Buffer Operations
2. I set Select Section start: 00000000 End:000002DF
3. Then when I click "Load Hex File" button I get error "Code in Hex file exceeds Flash Limitations", would not even load

 I used to falsh magic and erased and programed the flash and verifies ok. But would not start after I take out the BSL jumper and press "Reset" button
Thanks if anyone could give me a hint.

 
Best Wishes!
Noman

________________________________
From: "c...@gmail.com"
To: l...
Sent: Sunday, November 27, 2011 8:59:36 PM
Subject: [lpc2000] Re: Philips Flash Utility does not program the flash
 
If you tell the flash programming utility to read-back/verify, and it succeeds, then your LED blinky program fault is something else. Such as Crystal frequency, jumpers, code is invalid, etc.







Memfault Beyond the Launch