Hello Nordic Semiconductor Support Team,
I am currently facing an issue while working with the nRF52833 microcontroller, nRF Connect SDK, and Visual Studio Code. I have made modifications to the devicetree of the "nrf52833dk_nrf52833" to accommodate our custom board.
The problem I am encountering is related to the firmware development using the simple examples provided in the nRF Connect SDK, such as "blinky," "uart," and "gpio." While these examples work flawlessly in debug mode, I am facing difficulties when trying to flash the program onto the nRF52833. After flashing, the code does not execute as expected. Furthermore, when I attempt to operate in debug mode again, the following errors are generated:
[error] [Client] - Encountered error -102: Command erase_file executed for 59 milliseconds with result -102
[error] [nRF52] - The read 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 detecting device memory block protection status!
[error] [nRF52] - Failed while erasing device. -102: JLinkARM.dll Halt returned error 1.
[error] [Worker] - JLinkARM.dll Halt returned error 1.
ERROR: JLinkARM DLL reported an error. Please try again. If the error persists, run the same command again with the argument --log, and contact Nordic Semiconductor, providing the generated log.log file.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.
FATAL ERROR: command exited with status 33: nrfjprog --program 'd:\NRF_Workspace\blinky_spi_test\build\zephyr\zephyr.hex' --sectoranduicrerase --verify -f NRF52 --snr 50128667
To successfully operate the controller in debug mode, I have to erase the chip. After stopping debugging and resetting the microcontroller, the firmware runs as expected. However, when the power is turned off and then back on, the firmware does not work.(seems to corrupt the flash memory).
However, this issue only arises when using the nRF Connect SDK with Visual Studio Code. Previously, when I was using Segger Embedded Studio and nRF5 SDK, the firmware worked perfectly fine without any issues.
Could you kindly provide me with a solution or any guidance to address this issue? If there are any specific configurations or steps that need to be taken while using the nRF Connect SDK with Visual Studio Code, please let me know.
Thank you for your time and support. I look forward to your prompt response.
Regards,
Vitthal.