"hi, is there some way to..." <- > <@ezio_pan:matrix.org> hi, is there some way to access a register with u8 size raw pointer? > I enconter a problem that QUADSPI always trigger a transfering when I modify some field of QUADSPI\_CCR > I guess `stm32-rs` write entire register even I didn't modify `INSTRUCTION` field, thus tigger the transfering. > Then I try access the register with raw pointer (hoping not write `INSTRUCTION` field) > > ```rust > #[allow(non_snake_case)] > let CCR_Plus_One_addr = (qspi.ccr.as_ptr() as usize + 1) as *mut u8; > unsafe { *CCR_Plus_One_addr = 1u8 }; > ``` > > but the program just jump to `HardFault` handle. usually if register can be written in u16 or u8 mode it is specified in description of this register or peripheral