Skip to content

Issues with writing bytes/erasing memory on NXP mk64 board using JLink #72110

Closed Answered by DerekSnell
CarloATX asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @CarloATX ,
It seems you feel the Zephyr app image in flash is causing this issue with the write commands. I would confirm that is true. If you erase the flash, power cycle the board, and then use JLink to perform the same write commands, do those writes succeed? If so, it would seem the execution of the Zephyr app is interfering with the RAMCode execution.

One thought I have is the MPU. If the Zephyr app configures the MPU to prevent execution from the RAM used by RAMCode, and the MPU is not reinitialized by the JLink, then perhaps that leads to an access violation fault, and the RAMCode cannot execute. You could test this in your Zephyr app by deselecting CONFIG_MPU=n.

Otherwise, an …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CarloATX
Comment options

Answer selected by henrikbrixandersen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants