WIZnet Developer Forum

Issues with programming wizwiki-w7500p using J-Link

Hi everyone,
I have issues with programming wizwiki-w7500p board using the SWD header. If I compile the software in Keil (5) to bin and upload using DAP everything works as expected, which is good, but if I want to flash the software directly from Keil IDE I get the following errors:

[code]Load “C:\workspace\W7500P_Test\Objects\W7500P_Test.axf”

  • JLink Info: Device “CORTEX-M0” selected.
    Set JLink Project File to “C:\workspace\W7500P_Test\JLinkSettings.ini”
  • JLink Info: Device “CORTEX-M0” selected.

JLink info:

DLL: V5.10d, compiled Dec 9 2015 12:49:14
Firmware: J-Link Lite-Cortex-M V8 compiled Aug 20 2015 17:57:19
Hardware: V8.00
S/N : 518005690
Feature(s) : GDB

  • JLink Info: Found SWD-DP with ID 0x0BB11477
  • JLink Info: Found Cortex-M0 r0p0, Little endian.
  • JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
  • JLink Info: CoreSight components:
  • JLink Info: ROMTbl 0 @ E00FF000
  • JLink Info: ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB008 SCS
  • JLink Info: ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 000BB00A DWT
  • JLink Info: ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 000BB00B FPB
    ROMTableAddr = 0xE00FF000

Target info:

Device: ARMCM0
VTarget = 3.293V
State of Pins:
TCK: 0, TDI: 0, TDO: 1, TMS: 0, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG speed: 1000 kHz

Erase Done.
Programming Done.
Contents mismatch at: 000000E4H (Flash=00H Required=FCH) !
Contents mismatch at: 000000E5H (Flash=07H Required=06H) !
Contents mismatch at: 000000E8H (Flash=20H Required=1CH) !
Contents mismatch at: 00000138H (Flash=61H Required=5FH) !
Contents mismatch at: 000005DCH (Flash=06H Required=19H) !
Contents mismatch at: 000005DDH (Flash=49H Required=21H) !
Contents mismatch at: 000005DEH (Flash=01H Required=49H) !
Contents mismatch at: 000005DFH (Flash=98H Required=01H) !
Contents mismatch at: 000005E0H (Flash=48H Required=01H) !
Contents mismatch at: 000005E1H (Flash=43H Required=98H) !
Contents mismatch at: 000005E2H (Flash=00H Required=48H) !
Contents mismatch at: 000005E3H (Flash=90H Required=43H) !
Contents mismatch at: 000005E4H (Flash=03H Required=00H) !
Contents mismatch at: 000005E5H (Flash=E0H Required=90H) !
Contents mismatch at: 000005E6H (Flash=00H Required=03H) !
Contents mismatch at: 000005E7H (Flash=BFH Required=E0H) !
Contents mismatch at: 000005E9H (Flash=98H Required=BFH) !
Contents mismatch at: 000005EAH (Flash=40H Required=00H) !
Contents mismatch at: 000005EBH (Flash=1EH Required=98H) !
Contents mismatch at: 000005ECH (Flash=00H Required=40H) !
Contents mismatch at: 000005EDH (Flash=90H Required=1EH) !
Contents mismatch at: 000005EFH (Flash=98H Required=90H) !
Contents mismatch at: 000005F1H (Flash=28H Required=98H) !
Contents mismatch at: 000005F2H (Flash=F8H Required=00H) !
Contents mismatch at: 000005F3H (Flash=D1H Required=28H) !
Contents mismatch at: 000005F4H (Flash=0CH Required=F8H) !
Contents mismatch at: 000005F5H (Flash=BDH Required=D1H) !
Contents mismatch at: 000005F6H (Flash=00H Required=0CH) !
Contents mismatch at: 000005F7H (Flash=00H Required=BDH) !
Contents mismatch at: 000005F8H (Flash=E2H Required=00H) !
Contents mismatch at: 000005F9H (Flash=04H Required=BFH) !
Contents mismatch at: 000005FBH (Flash=00H Required=BFH) !
Contents mismatch at: 000005FEH (Flash=00H Required=FFH) !
Contents mismatch at: 000005FFH (Flash=BFH Required=F7H) !
Contents mismatch at: 00000600H (Flash=00H Required=ADH) !
Contents mismatch at: 00000601H (Flash=BFH Required=FFH) !
Contents mismatch at: 00000602H (Flash=FFH Required=00H) !
Contents mismatch at: 00000603H (Flash=F7H Required=BFH) !
Contents mismatch at: 00000604H (Flash=ABH Required=00H) !
Contents mismatch at: 00000605H (Flash=FFH Required=BFH) !
Contents mismatch at: 00000608H (Flash=00H Required=01H) !
Contents mismatch at: 00000609H (Flash=BFH Required=20H) !
Contents mismatch at: 0000060AH (Flash=00H Required=74H) !
Contents mismatch at: 0000060BH (Flash=BFH Required=49H) !
Contents mismatch at: 0000060CH (Flash=01H Required=08H) !
Contents mismatch at: 0000060DH (Flash=20H Required=60H) !
Contents mismatch at: 0000060EH (Flash=74H Required=08H) !
Contents mismatch at: 0000060FH (Flash=49H Required=71H) !
Contents mismatch at: 00000610H (Flash=08H Required=11H) !
Contents mismatch at: 00000611H (Flash=60H Required=20H) !
Contents mismatch at: 00000612H (Flash=08H Required=80H) !
Contents mismatch at: 00000613H (Flash=71H Required=06H) !
Contents mismatch at: 00000614H (Flash=11H Required=FFH) !
Contents mismatch at: 00000615H (Flash=20H Required=F7H) !
Contents mismatch at: 00000616H (Flash=80H Required=9EH) !
Contents mismatch at: 00000617H (Flash=06H Required=FEH) !
Contents mismatch at: 00000618H (Flash=FFH Required=01H) !
Contents mismatch at: 00000619H (Flash=F7H Required=22H) !
Contents mismatch at: 0000061AH (Flash=9CH Required=11H) !
Contents mismatch at: 0000061BH (Flash=FEH Required=46H) !
Contents mismatch at: 0000061CH (Flash=01H Required=02H) !
Contents mismatch at: 0000061DH (Flash=22H Required=20H) !
Contents mismatch at: 0000061EH (Flash=11H Required=FFH) !
Contents mismatch at: 0000061FH (Flash=46H Required=F7H) !
Contents mismatch at: 00000620H (Flash=02H Required=3DH) !
Contents mismatch at: 00000621H (Flash=20H Required=FFH) !
Contents mismatch at: 00000622H (Flash=FFH Required=10H) !
Contents mismatch at: 00000623H (Flash=F7H Required=20H) !
Contents mismatch at: 00000624H (Flash=3BH Required=6DH) !
Contents mismatch at: 00000625H (Flash=FFH Required=49H) !
Contents mismatch at: 00000626H (Flash=10H Required=08H) !
Contents mismatch at: 00000627H (Flash=20H Required=60H) !
Contents mismatch at: 00000628H (Flash=6DH Required=01H) !
Contents mismatch at: 00000629H (Flash=49H Required=20H) !
Contents mismatch at: 0000062BH (Flash=60H Required=71H) !
Contents mismatch at: 0000062CH (Flash=01H Required=11H) !
Contents mismatch at: 0000062EH (Flash=08H Required=80H) !
Contents mismatch at: 0000062FH (Flash=71H Required=06H) !
Contents mismatch at: 00000630H (Flash=11H Required=FFH) !
Contents mismatch at: 00000631H (Flash=20H Required=F7H) !
Contents mismatch at: 00000632H (Flash=80H Required=90H) !
Contents mismatch at: 00000633H (Flash=06H Required=FEH) !
Contents mismatch at: 00000634H (Flash=FFH Required=01H) !
Contents mismatch at: 00000635H (Flash=F7H Required=22H) !
Contents mismatch at: 00000636H (Flash=8EH Required=10H) !
Contents mismatch at: 00000637H (Flash=FEH Required=21H) !
Contents mismatch at: 00000638H (Flash=01H Required=02H) !
Contents mismatch at: 00000639H (Flash=22H Required=20H) !
Contents mismatch at: 0000063AH (Flash=10H Required=FFH) !
Contents mismatch at: 0000063BH (Flash=21H Required=F7H) !
Contents mismatch at: 0000063CH (Flash=02H Required=2FH) !
Contents mismatch at: 0000063DH (Flash=20H Required=FFH) !
Contents mismatch at: 0000063EH (Flash=FFH Required=20H) !
Contents mismatch at: 0000063FH (Flash=F7H Required=20H) !
Contents mismatch at: 00000640H (Flash=2DH Required=66H) !
Contents mismatch at: 00000641H (Flash=FFH Required=49H) !
Contents mismatch at: 00000642H (Flash=20H Required=08H) !
Contents mismatch at: 00000643H (Flash=20H Required=60H) !
Contents mismatch at: 00000644H (Flash=66H Required=01H) !
Contents mismatch at: 00000645H (Flash=49H Required=20H) !
Too many errors to display !
Error: Flash Download failed - "Cortex-M0"
Flash Load finished at 21:52:05[/code]

I think thin may be related to how device is set-up in Keil, however Im not sure how to set the properties correctly. I have followed the tutorial in Wiki, but Im struggling espacially with Target Options > Debug -> Use J-Link -> Settings -> Flash Download tab. Can please anyone give me a screenshot of a working configuration?

Also Im not sure how to set the Target Options -> Target tab - especially the IROM and IRAM parts.

I dont even if the chip gets properly erased before the programming - is there a way to completely erase the flash without programming to check whether at least this can be done?

Thanks,
Marcel

hello, marcel

thank you for your interest in W7500P.

I actually could not test it, because I do not have J-Link…

But I wonder you did check this options I attached.

Should select PORT and check the compiler catch the device in JTAG Device Chain.


Then I want to guide this page for IROM and IRAM setting.

http://wizwiki.net/wiki/doku.php?id=products:w7500:documents:appnote:howtokeil

Step 7 in this page shows how to set IROM and IRAM.

I hope it will help you.

thank you

lawrence

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.