Skip to content
Discussion options

You must be logged in to vote

This might be working now....

import rp2
from os import uname
from time import sleep
from machine import mem32
import uctypes

DMA_BASE = 0x50000000
SECCFG_CH0 = DMA_BASE + 0x480

a = bytearray(4)
b = bytearray(4)
d = rp2.DMA()

ch_num = (uctypes.addressof(d.registers[0:1]) - DMA_BASE) // 0x40
mem32[SECCFG_CH0 + (ch_num * 4)] = 0x3

ACCESSCTRL_BASE = 0x40060000
ACCESSCTRL_PASSWORD = 0xACCE0000 #????

#PERIPH_OFFSET = 0x58 # CORESIGHT_TRACE
#PERIPH_OFFSET = 0xC0 # CLOCKS
PERIPH_OFFSET = 0xD4 # TICKS
#PERIPH_OFFSET = 0xD8 # WATCHDOG

mem32[ACCESSCTRL_BASE + PERIPH_OFFSET] = mem32[ACCESSCTRL_BASE + PERIPH_OFFSET] \
                                         | ACCESSCTRL_PASSWORD | 0x40 | 0x08
…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
6 replies
@GitHubsSilverBullet
Comment options

@mungewell
Comment options

@mungewell
Comment options

@GitHubsSilverBullet
Comment options

@mungewell
Comment options

Comment options

You must be logged in to vote
5 replies
@mungewell
Comment options

@mungewell
Comment options

@mungewell
Comment options

@mungewell
Comment options

Answer selected by mungewell
@mungewell
Comment options

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