1 Reply Latest reply on Feb 21, 2016 1:54 AM by user_1377889

    Programming PSoC 5LP flash with a SEGGER J-Link

    forest.crossman

      I'm having a little trouble programming the flash of the CY8C5888LTI-LP097 on my CY8CKIT-059 with my SEGGER J-Link. Specifically, SPC commands don't seem to do anything. What I would like to know is:

         
            
      • Is it absolutely necessary to enter Test mode (writing 0xEA7E30A9 to 0x40050210 within the ~400 microsecond window during startup) to be able to run SPC commands? I was under the impression that Test mode was only meant to ensure that the SWD pins would not be remapped before the debugger could connect to the chip.
      •     
      • If Test mode is necessary for device programming, are there any other ways to enter Test mode via SWD other than the ones detailed in the Device Programming Specification? For example, can I make the chip enter test mode with a SYSRESETREQ or does it have to be a "hard" reset from power-cycling or using the reset pin?
      •     
      • How is the bootloader able to reprogram the device? Does it use SPC commands or some other method?
      •    
         

      My end goal is to write a PSoC 5LP driver for OpenOCD, so I need to find a way to program my PSoC 5LP without a custom programmer, KitProg, or MiniProg3. Currently, it successfully connects to the ARM core and can read and write memory, reset and halt the processor, and can other otherwise interact with the M3 core normally--it's just having trouble with the SPC.