I found that the current version of FlashMagic (V13.50) corrupts location 0x001C on bank B if "Activate Bank A" is checked. FlashMagic erases the chosen Flash blocks, then programs bank A, then programs bank B and then sends the ISP command to activate bank A. According to the NXP user manual this ISP activation command generates and writes the correct vector table checksum on location 0x001C for bank A and at the same time writes an invalid checksum (in fact 0x00000000) on location 0x001C on bank B. Dependant on what code is located at 0x001C this leads to the program to behave falsely or even crash. Actually this is not a fault in FlashMagic itself, rather a bug in the design of the ISP command, but FlashMagic should work around it. I suggest Flashmagic to change the order of operation: Erase the chosen sectors on the bank to be activated, program the bank to be activated, activate the bank, erase the chosen sectors on the other bank, program the other bank.
With older versions of FlashMagic (V9.80) one has to execute FlashMagic twice. One instance set to bank A and bank activation checked, the other instance set to bank B and bank activation unchecked. This process avoids corrupting the non-activated Flash bank and has worked fine for me. Surprisingly neither version 13.50 nor version 9.80 shows an error when the corrupted code is verified. Obviously code location 0x001C is spared for verification on both banks.
Last post by piano301 - February 16, 2023, 04:04:33 AM
Flash Magic used to be able to see the COM port for Ulink Pro USB debug interface on Windows 7. But COM ports look to be unavailable in general, unless the manufacturer now supplies a specific Virtual Com Port driver for their device. Can Flash Magic be made to "see" the Ulink Pro as a native USB device (i.e. not via a com port) ? Is there any generic way to make the Ulink Pro appear as a COM port in windows 10 or 11 ? Cheers, Stephen
I would like to bootload over a one-wire connection. but I got the need to control the direction from the computer. I thought I could use the RTS, but it seems that its not working, because it don't toggle for every message. Maybe you could make a new feature?
Last post by nefty - January 30, 2023, 12:49:17 AM
I want to write to LPC802M001JDH20 using the MCU-LINK SWD interface. When I type the following command line from the Windows command prompt, I get the response "ERROR: Unable to communicate. No serial number for interface". What is wrong with my command line? Can someone please tell me what is wrong with my command line? By the way, I can write from the GUI.
Response: FlashMagic 13.50 build 6367 (c) Embedded Systems Academy, Inc. 2001-2022, All Rights Reserved ARM7 UART Driver 5.06.6367 Cortex UART Driver 8.71.6367 Cortex Packet UART Driver 2.35.6367 External Memory Driver 2.20.6367 CAN Driver 3.36.6367 ARM7 Ethernet Driver 2.25.6367 Cortex Ethernet Driver 3.05.6367 USB Driver 3.02
Use -h to get some help
STATUS: Connecting to #Ygc (first found)... ERROR: Unable to communicate. No serial number for interface -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Last post by MV-Ware - January 19, 2023, 01:45:09 PM
Hi, I developed a board with the NXP LPC55S69. I have already developed a program with the Xpresso IDE. My applications runs fine withe the Segger Jlink Debuger on the SWD port.
I added the USB connection on USB1 of the device in the design. I installed latest Flashmagic: 13.50 build 6367, it has USB driver 3.02 on windows 10
I enable the ISP with a jumper. Connect the USB ; from PC to my board. (Which also powers my PCB,) I followed the setup of flashmagic: select USB LPC55S69. A hex file. Device LPC55S69 (USB, LPC5500) Interface tiegf6JWnvo5 (USB Bootloader) reading Signatures works. reading sectors data works erasing sectors works. But programming works not: (pressing START) LPC55S69(USB, LPC5500) Operation Failed. (programming - failed to send data to the device)
In the Preferences: hardware tab shows the UART selection bullets (as if the programmer will use UART? ) other tabs are default.
What is going wrong here? or do I do somthing wrong? I enables debug mode, but can not find the debug file.