Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nRF5340 net core flash issue #1357

Open
bastreynard opened this issue Mar 31, 2022 · 3 comments
Open

nRF5340 net core flash issue #1357

bastreynard opened this issue Mar 31, 2022 · 3 comments

Comments

@bastreynard
Copy link

bastreynard commented Mar 31, 2022

I am doing some trials with PyOCD + DAP link (probe is Max32625PICO) with the dual core nRF5340. I installed the pack nrf5340_xxaa.
Flashing the APP core is no issue and everything goes well. But when trying to flash the NET core I get :
Failed to add data chunk: no memory region defined for address 0x01000000 [file_programmer]

I dived a bit in the device pack and the parser and found out the ROM region for NET core is beeing removed and not replaced by a FLASH region as it should (And as it does for the APP core)
NET:
image
APP:
image

(For a clearer view, I splitted nrf5340_xxaa into nrf5340_xxaa_APP and nrf5340_xxaa_NET in the pdsc file of the device pack but results are the same with original pdsc)

Problem seems to be in _split_flash_region_by_sector_size() where we do start = region.start + offset and start ends up equal end and as a result the FLASH region is not added. Changing this line then gives an error about the NET core RAM region:
pyocd.core.exceptions.TransferFaultError: Memory transfer fault @ 0x21000200-0x210003ff

  • Is nRF5340 really fully supported by PyOCD ?
  • If yes, what am I doing wrong ?

Thank you !

@bastreynard bastreynard changed the title nRF5340 net core flash nRF5340 net core flash issue Mar 31, 2022
@peterniebert
Copy link

I wonder about this issue too. The device pack exposes two devices, one with _APP suffix and the other with _NET, but pyocd lists just one device without suffix? And with that device it is possible to flash the APP cpu.

@GatCode
Copy link

GatCode commented Mar 18, 2023

Are there any updates? I also have the same issue.

@maxd-nordic
Copy link
Contributor

I'm working on it: #1656

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants