[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    erase/write flash error when flash-addr-width > 32bit on windows
From:       "=?utf-8?B?QWNlbHVmZnk=?=" <wangyanwen () nucleisys ! com>
Date:       2024-01-16 5:30:30
Message-ID: tencent_245D1A9A59ED78E41614CBE0 () qq ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

The error log is as follows, of course I added some print.



Error message
...Info : Valid NUSPI on device Nuclei SoC SPI Flash at address 0xfa0000000 with \
spictrl regbase at 0xf8b120000 Info : Nuclei SPI controller version 0x00010207
Info : Found flash device 'win w25q128fv/jv' (ID 0x001840ef)
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
Error: xxxx sizeof:4
Error: xxxx packet:vFlashErase:0000000fa0000000,00010000
Error: xxxx addr:ffffffff
Error: No flash at address 0xffffffff
Error: flash_erase returned -4




I made the changes and it works fine with flash, I'm not sure if a similar problem \
exists within openocd.


The&nbsp;unsigned long type on windows is defined as 4 bytes

https://learn.microsoft.com/en-us/cpp/cpp/data-type-ranges?view=msvc-170


[Attachment #5 (text/html)]

<div style="font-size: 14.6667px;" data-mail-from="wemail-pc"><div><span \
style="background-color: rgba(0, 0, 0, 0); font-size: 14.6667px;">The error log is as \
follows, of course I added some print.</span><br></div><div><br></div><div>Error \
message</div><div><i>...</i><div><i>Info : Valid NUSPI on device Nuclei SoC SPI Flash \
at address 0xfa0000000 with spictrl regbase at 0xf8b120000</i></div><div><i>Info : \
Nuclei SPI controller version 0x00010207</i></div><div><i>Info : Found flash device \
'win w25q128fv/jv' (ID 0x001840ef)</i></div><div><i>Info : Listening on port 6666 for \
tcl connections</i></div><div><i>Info : Listening on port 4444 for telnet \
connections</i></div><div><i>Info : accepting 'gdb' connection on \
tcp/3333</i></div><div><i>Error: xxxx sizeof:4</i></div><div><i>Error: xxxx \
packet:vFlashErase:0000000fa0000000,00010000</i></div><div><i>Error: xxxx \
addr:ffffffff</i></div><div><i>Error: No flash at address \
0xffffffff</i></div><i>Error: flash_erase returned \
-4</i><br></div><div><br></div><div><p dir="auto" style="box-sizing: border-box; \
margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); \
font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,&quot;Noto \
Sans&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI \
Emoji&quot;,&quot;PingFang SC&quot;,苹方-简,&quot;Microsoft \
YaHei&quot;,微软雅黑; font-size: 14px; background-color: rgb(255, 255, 255); \
line-height: 1.43;"><span \
style="font-family:-apple-system,BlinkMacSystemFont,&quot;PingFang \
SC&quot;,&quot;Microsoft YaHei&quot;; font-size: 11pt; font-weight: normal; \
font-style: normal; text-decoration: none; color: rgb(0, 0, 0); background-color: \
rgba(0, 0, 0, 0);">I made the changes and it works fine with flash, I'm not sure if a \
similar problem exists within openocd.</span></p></div><div id="placehodler_pre"><p \
dir="auto" style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31, \
35, 40);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,&quot;Noto \
Sans&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI \
Emoji&quot;,&quot;PingFang SC&quot;,苹方-简,&quot;Microsoft \
YaHei&quot;,微软雅黑;font-size:14px;background-color:rgb(255, 255, \
255);line-height:1.43"><span \
style="font-family:-apple-system,BlinkMacSystemFont,&quot;PingFang \
SC&quot;,&quot;Microsoft YaHei&quot;; font-size: 11pt; color: rgb(0, 0, 0); \
background-color: rgba(0, 0, 0, 0);">T</span><span \
style="font-family:-apple-system,BlinkMacSystemFont,&quot;PingFang \
SC&quot;,&quot;Microsoft YaHei&quot;; font-size: 11pt; color: rgb(0, 0, 0); \
background-color: rgba(0, 0, 0, 0);">he</span><span \
style="font-family:-apple-system,BlinkMacSystemFont,&quot;PingFang \
SC&quot;,&quot;Microsoft YaHei&quot;; font-size: 11pt; color: rgb(0, 0, 0); \
background-color: rgba(0, 0, 0, 0);">&nbsp;unsigned long type on windows is defined \
as 4 bytes</span></p><p dir="auto" \
style="box-sizing:border-box;margin-top:0px;margin-bottom:16px;color:rgb(31, 35, \
40);font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,&quot;Noto \
Sans&quot;,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI \
Emoji&quot;,&quot;PingFang SC&quot;,苹方-简,&quot;Microsoft \
YaHei&quot;,微软雅黑;font-size:14px;background-color:rgb(255, 255, \
255);line-height:1.43"><a \
href="https://learn.microsoft.com/en-us/cpp/cpp/data-type-ranges?view=msvc-170" \
rel="nofollow" style="text-decoration-line: underline; color: var(--fgColor-accent, \
var(--color-accent-fg)); box-sizing: border-box; text-underline-offset: \
0.2rem;"><span style="font-family:-apple-system,BlinkMacSystemFont,&quot;PingFang \
SC&quot;,&quot;Microsoft \
YaHei&quot;;font-size:11pt;text-decoration-line:none;color:rgb(0, 0, \
0);background-color:rgba(0, 0, 0, \
0)">https://learn.microsoft.com/en-us/cpp/cpp/data-type-ranges?view=msvc-170</span></a></p></div><span \
id="default_wemail_sig_line_wrap"></span><div \
id="wemailsigcontent"><div><br></div><div><br></div></div></div>


["0001-server-gdb-server-fix-flash-operation-error-when-add.patch" (application/octet-stream)]



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic