Tool/software: Linux
Hi!
I've been trying to access the MCSPI0-registers listed in the L4_PER peripheral memory map in the Cortex A8-section.
#include <stdint.h> #include <stdio.h> #include <pru_cfg.h> #define PRU_ICSS_BASE (*((volatile unsigned int *)(0x00026000))) #define PRU_ICSS_SYSCFG (*((volatile unsigned int *)(0x00026004))) int main(void) { CT_CFG.SYSCFG_bit.STANDBY_INIT = 0; }
Trying to access the dereferenced pointers gives segfault, trying to set STANDBY_INIT gives segfault. Why?