Hello, I try to use ULINK2 /ULINK ME to write my code into the internal flash of the controller. In a second step I want to debug the code using ULINK2 oder ULINK ME
I use the ULINK2 in other projects and it works as expected. In the "Cortex-M Target Driver Setup" ULINK2 detects the Device (ICODE=0x4BA00477) But when I try to "load" my program I see a message "Full chip erase in the bottom line of uVision and a blue progress bar. But finally I get an error message "Flash Timeout. Reset the target and try it again" When I configure "Erase Sectors" instead of "Erase Full chip" and start "load" I get the error message after ~3seconds, no progress bar.
I can program the compiled code via serial port using FlashMagic, then the code works as expected. Small problem with FlashMAgic: "Full chip erases" works fine, "Sector erase" does not.
Are there any known problems? Did anyone successfully program the LPC4074 using ULINK2?
Small problem with FlashMAgic: "Full chip erases" works fine, "Sector erase" does not.
This does point to a probable cause. The usual reason a chip refuses sector erase, but does allow chip erase, is that some flash security mechanism has been activated.
Hello,
I still have no solution for my problem. I cannot flash the device using ULINK2 (nor ULINK ME)
0) Could someone confirm: The Programming Algorithm for LPC4074FBD80 is "LPC17xx IAP 128kB, Flash Address range is 0-1ffffh, RAM for Algo is 0x20000000, Size:0xfe0"
1) I can program the chip using Flashmagic (which uses ISP mode)
2) I have written my own bootloader to reprogram the chip via CAN and use the IAP commands - this works fine
3) I have modified the flash code that ULINK sends to the chip to preform the flash programming. I have modified the timeouts for sector erase to 3 seconds and chip erase to 30 seconds. I see that the time until µVision now aborts is increased. This indictes that the flash routines are successfully transfered to the chip and they do something.
4) In the Cortex Driver Setup a device is found: IDCODE 0x4BA00477 ARM CoreSight JTAG-DP IRLen 4 Is this correct?
5) When I start the debugger (Load Application at startup is disabled) it seems that I can see the content of the flash. I have disabled the cache options. Does this mean that whatever I see in the memory window is read back from the chip?
Any help is welcome.
Contact Keil support with this issue, this is not Keil support.