[SOLVED] Enable and program SFlash on CYT2B73 (TRAVEO-II MCU) with J-Flash

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Enable and program SFlash on CYT2B73 (TRAVEO-II MCU) with J-Flash

    Hello,

    I'm trying to program Infineon CYT2B73CAD_M0 MCU (TRAVEO-II) with J-Link (SWD) using the J-Flash GUI, however I'm met with an error “Selected data does not fit into selected flash sectors” (see attached image). I believe it could be because of the lack of a "SFlash" region/bank (range: 0x1700_0000 to 0x1700_7FFF) (see attached image as it only shows Code flash and Work flash banks but nothing beyond).

    Additional things I attempted:

    1) Manually added a flash bank from the GUI; I get the error: “ERROR: Could not find CFI compliant flash device”.
    2) I tried with the following J-Link command string in a J-Link Script that I included in my J-Flash projec

    Source Code

    1. int ConfigTargetSettings(void) {
    2. JLINK_ExecCommand("map region 0x17000000-0x17007FFF N");
    3. return 0;
    4. }
    Unfortunately, even with the above, J-Flash complains with the same error that the “Selected data does not fit into selected flash sectors”.

    (NOTE that I'm able to *read* the memory with J-Link CLI though - see attached image)

    Questions:

    1) How do I configure J-Flash to add internal SFlash region for the MCU and be able to program it? Is there any J-Link configuration or script file you can provide which enables SFlash region for programming?
    2) If not J-Flash, can anyone please help with a J-Link CLI command to program SFlash (if somehow that would work effortlessly)
    Images
    • jflash_sflash_error.png

      18.27 kB, 399×103, viewed 65 times
    • jflash_flash_banks.png

      38.2 kB, 307×400, viewed 74 times
    • sflash_mem_read.png

      3.43 kB, 372×50, viewed 60 times

    The post was edited 3 times, last by laymanish ().

  • Hello,

    The problem has been resolved after I updated the J-Flash utility version. We were previously using J-Flash v7.88; after updating to v8.10k (latest), during project creation, we're able to select "Supervisory Flash" bank and able to seamlessly program it directly from J-Flash.
    Images
    • sflash_selection.png

      8.38 kB, 305×355, viewed 35 times
    • sflash_info_present.png

      10.72 kB, 323×393, viewed 26 times