I have made my own NRF52832 Dev board as in the next image:
I received the board, and ICs and hand-soldered them in my home.
however, I am still a newbie in nRF SDK, I started watching https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/ video series, I have followed along, used blinky app as in the course and entered the following build configuration for the board:
after the build was successful, I used the "merged.hex" output file and I am trying to download it manually into the board using a j-link.
here is the log of me trying to download the code onto the board:
I don't know what "Error: Failed to preserve target RAM @ 0x20000000-0x2000FFFF." mean but what makes me sure the IC is working is that I can halt the CPU and get the registers content as in the following log:
UPDATE: I upgraded J-link firmware and got this error (it seems the same thing but more specific):
Fullscreen123456789101112J-Link>loadfile C:\Users\User\Downloads\merged2.hex'loadfile': Performing implicit reset & halt of MCU.Reset: Halt core after reset via DEMCR.VC_CORERESET.Reset: Reset device via AIRCR.SYSRESETREQ.Downloading file [C:\Users\User\Downloads\merged2.hex]...****** Error: Verification of RAMCode failed @ address 0x200000A4.Write: 0xBDF21C18 F0009800Read: 0x5DF21C18 F0009800Failed to prepare for programming.Failed to download RAMCode!Unspecified error -1
I tried command 'nrfjprog --recover' and got the following response
Recovering device. This operation might take 30s.
Erasing user code and UICR flash areas.
then used the command 'nrfjprog -f NRF52 --program merged.hex --sectorerase'
and got the response:Fullscreen1234567891011121314151617[ #################### ] 0.323s | Erase file - Done erasing[error] [ nRF52] - The write access failed, but no cause could be determined.[error] [ nRF52] - It may be due to an unaligned access, accessing a nonexistent memory, or a communication issue.[error] [ nRF52] - Failed while performing 'Write' operation on target address 0x00000000.-102: An unknown error.[error] [ nRF52] - Failed while reading device information.[error] [ Client] - Encountered error -102: Command program_file executed for 374 milliseconds with result -102[error] [ Worker] - An unknown error.ERROR: JLinkARM DLL reported an error. Try again. If error conditionERROR: persists, run the same command again with argument --log, contact NordicERROR: Semiconductor and provide the generated log.log file to them.NOTE: For additional output, try running again with logging enabled (--log).NOTE: Any generated log error messages will be displayed.PS C:\Users\User\Downloads> nrfjprog --recoverRecovering device. This operation might take 30s.[error] [ JLink] - DAP error while reading AIRCR.Erasing user code and UICR flash areas.
I tried to write and read into RAM memory region and it was successful:
I then tried to do the same for Flash, I couldn't read memory on the first trial, and then on the second trial I could read it successfully. I don't know what may cause that.
another update, as shown in the image, it seems as if it works with my black magic probe but doesn't work with my segger j-link: