J-link community,
I followed wiki.segger.com/Open_Flashloader to create a customized flash loader. The SOC is nearly same as the SiFive FE310, except the RAM/Flash address are different.
QSPI flash controller address: 0x15000
QSPI flash XIP address: 0x20000
Attached is my project for the flash loader. In the debug configuration, I can see the flash content are correctly loaded. But when I create the Release version and try it, I got the error:
======================
J-Link>r
Reset delay: 0 ms
Reset type Normal: Resets core & peripherals using <ndmreset> bit in <dmcontrol> debug register.
RISC-V: Performing reset via <ndmreset>
J-Link>loadfile D:/source/n100-sdk/software/hello_world/hello_world.hex
Downloading file [D:/source/n100-sdk/software/hello_world/hello_world.hex]...
Unspecified error -1
J-Link>erase
Erasing device...
Erasing done.
J-Link>loadfile D:/source/n100-sdk/software/hello_world/hello_world.hex
Downloading file [D:/source/n100-sdk/software/hello_world/hello_world.hex]...
Unspecified error -1
======================
when I follow the "Troubleshoot" on the same page, by excluding codes related to flash operation, J-link commander will exit automatically when connect the target.
It is my first time to write a flash loader. There may be some something wrong with my understanding.
BR
/Li
I followed wiki.segger.com/Open_Flashloader to create a customized flash loader. The SOC is nearly same as the SiFive FE310, except the RAM/Flash address are different.
QSPI flash controller address: 0x15000
QSPI flash XIP address: 0x20000
Attached is my project for the flash loader. In the debug configuration, I can see the flash content are correctly loaded. But when I create the Release version and try it, I got the error:
======================
J-Link>r
Reset delay: 0 ms
Reset type Normal: Resets core & peripherals using <ndmreset> bit in <dmcontrol> debug register.
RISC-V: Performing reset via <ndmreset>
J-Link>loadfile D:/source/n100-sdk/software/hello_world/hello_world.hex
Downloading file [D:/source/n100-sdk/software/hello_world/hello_world.hex]...
Unspecified error -1
J-Link>erase
Erasing device...
Erasing done.
J-Link>loadfile D:/source/n100-sdk/software/hello_world/hello_world.hex
Downloading file [D:/source/n100-sdk/software/hello_world/hello_world.hex]...
Unspecified error -1
======================
when I follow the "Troubleshoot" on the same page, by excluding codes related to flash operation, J-link commander will exit automatically when connect the target.
It is my first time to write a flash loader. There may be some something wrong with my understanding.
BR
/Li