GUI Flash Tool programming external flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

GUI Flash Tool programming external flash

769 次查看
bamdadslr
Contributor II

Hi,

 

I am using MCUXpresso to program a LPC4088 using Multilink Universal Rev C probe. I am using the GUI Flash tool to do the programming. I have two questions:

1. Does the Flash tool also program the external flash? it happens so fast that make me wonder about this. if the answer is No, then how I would program the external flash? This is the message in the console for your reference:

Executing flash operation 'Program' (Program file into flash: TEST3.axf) - Tue Jul 12 09:06:34 CDT 2022
Checking MCU info...
Scanning for targets...
Executing flash action...
P&E GDB Server for Arm(R) devices, Version 8.80.00.00
Copyright 2018, P&E Microcomputer Systems Inc, All rights reserved
Loading library C:\nxp\MCUXpressoIDE_11.5.1_7266\ide\plugins\com.pemicro.debug.gdbjtag.pne_5.2.0.202203211842\win32\gdi\unit_ngs_arm_internal.dll ... Done.
Command line arguments: -interface=USBMULTILINK -port=USB1 -speed=5000 -flashobjectfile=D:\VELOX\Software\3_Coding_WorkSpace\TEST3\Debug\TEST3.axf -device=NXP_LPC40xx_LPC4088 -programmingtype=0 -runafterprogramming -startserver -singlesession -quitafterprogramming
Device selected is NXP_LPC40xx_LPC4088
User Specified Hardware Selection : Interface=USBMULTILINK and Port=USB1
Connecting to target.
Unable to load libusb0.dll
PEmicro Interface detected - Flash Version 10.84
Device is NXP_LPC40xx_LPC4088.
Mode is In-Circuit Debug.
(C)opyright 2012, P&E Microcomputer Systems, Inc. (www.pemicro.com)
API version is 101
TARGET XML PATH is C:\nxp\MCUXpressoIDE_11.5.1_7266\ide\plugins\com.pemicro.debug.gdbjtag.pne_5.2.0.202203211842\win32\gdi\P&E\supportFiles_ARM\target_v7m_vfp.xml
Server 1 running on 127.0.0.1:7224
Server 2 running on 127.0.0.1:7226
Server 3 running on 127.0.0.1:7228
Server 4 running on 127.0.0.1:7230
Server 5 running on 127.0.0.1:7232
Server 6 running on 127.0.0.1:7234
Server 7 running on 127.0.0.1:7236
Server 8 running on 127.0.0.1:7238
Server 9 running on 127.0.0.1:7240
Server 10 running on 127.0.0.1:7242
Unable to load libusb0.dll
Copyright 2022 P&E Microcomputer Systems,Inc.
Command Line :C:\nxp\MCUXpressoIDE_11.5.1_7266\ide\plugins\com.pemicro.debug.gdbjtag.pne_5.2.0.202203211842\win32\pegdbserver_console -interface=USBMULTILINK -port=USB1 -speed=5000 -flashobjectfile=D:\VELOX\Software\3_Coding_WorkSpace\TEST3\Debug\TEST3.aP
PEmicro Interface detected - Flash Version 10.84
CMD>RE
Initializing.
Target has been RESET and is active.
CMD>CM C:\nxp\MCUXpressoIDE_11.5.1_7266\ide\plugins\com.pemicro.debug.gdbjtag.pne_5.2.0.202203211842\win32\gdi\P&E\supportFiles_ARM\NXP\LPC40xx\NXP_LPC4088_1x32x128k.arp
Initializing.
Initialized.
;version 1.10, 11/04/2014, Copyright 2014 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [lpc_178x_177x_40xx_512]
;device NXP, LPC4088, 1x32x128k
;begin_cs device=$0000000, length=$00080000, ram=$10000000
Loading programming algorithm ...
WARNING - Selected .ARP file has been modified. CRC16 = $2903

Programming sequency is : erase, blank check, program, and verify {default}
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00000000-0000001B ...

block 00000020-0007C643 ...

Checksum Verification Successful. (Cumulative CRC-16=$7D8B)
Application verified in memory. No need to reprogram.
CMD>GO
Invalid command parameter:
All Servers Running
Target Disconnected.

 

2. When trying to debug my code, I get errors on different routines that are defined as __attribute to those external flash areas. They cause different type of hard faults, like access violation or coprocessor access error. When I remove the __attribute, there is no error on those routines.  So it seems there is something wrong accessing the external flash. 

I would appreciate any help.

0 项奖励
2 回复数

591 次查看
rvigneault
Contributor III

Hi!

For the first point, I am having the same problem with the GUI Flash Tool. And, be comparing my log to the one of collegues where it works, I see the following log (which you also have) that might explain the problem:

Unable to load libusb0.dll

The problem is that I don't know how to fix this error... I updated "GNU ARM PEMicro Interface Debugging Support" and even uninstalled and reinstalled MCUXpresso (I am using MCUXpresso IDE v11.6.1, which is also the version my collegue uses) but it did not help.

I posted this question directly related to this problem.

Thanks!

0 项奖励

738 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

If you want to download image to external flash, pay attention configure external flash memory ,

also choose flash driver "LPC40xx_SPIFI_GENERIC.cfx".

 
 

 

 

BR

Alice

 

 

 

 

 
 

 

0 项奖励