GUI Flash Tool Error -1073741819

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

GUI Flash Tool Error -1073741819

1,487 Views
rex_lam
Contributor IV

I have run into an issue with flashing to the LPC54S018J4M spifi flash on the NXP eval board. The IDE is MCUXpresso v11.3.0. Here is the error from the GUI flash tool console:

Opening flash driver LPC540xx_SPIFI_SFDP.cfx (already resident)
Using SOFT reset to run the flash driver
Flash variant 'JEDEC_SFDP_EF4016' detected (4MB = 64*64K at 0x10000000)
Writing 15112 bytes to address 0x10000000 in Flash
1 of 1 ( 0) Writing sectors 0-0 at 0x10000000 with 15112 bytes
( 0) at 10000000: 0 bytes - 0/15112
Unable to perform operation!
Command failed with exit code -1073741819

It had been working fine for weeks, and all I did was add some code to update some housekeeping data in a struct in .data that is 0x50 in size at address 0x18. It consistently fails to flash when I compile in the code that updates the data in my main loop. When I remove this block of code, it consistently succeeds in flashing the program. I don't think my code has anything to do with the error, and would like to understand more about exit code -1073741819. Does anyone know what might have caused this error?

Additional information: The same code compiled with -O2 flashes to the MCU fine, but fails when compiled with -Os. -1073741819 could be 0xC0000005, which is access violation on Windows, the host OS I am running on.

0 Kudos
3 Replies

1,464 Views
rex_lam
Contributor IV

My board is LPC54S018M-EVK and the GUI tool picked LPC540xx_SPIFI_SFDP.cfx, which seems to be the right driver for the board. Is there a different flash driver I should try? If so, how do I specify a different driver? Why does -Os trigger this problem?

0 Kudos

1,461 Views
converse
Senior Contributor V

It's a crash, so who knows what causes it? This needs to be reproduced and fixed by somebody in NXP - don't hold your breath!

Sounds like you have the right flash driver selected. 

I guess, you'll have to build without -Os until NXP fix the crash.

0 Kudos

1,469 Views
converse
Senior Contributor V

It looks like redlinkserv crashed. I would guess (from the messages) that there is a problem with the Flash driver. Are you using the correct driver for your board?

Looks like you have found some workarounds...

0 Kudos