Page 1 of 1

Writing memory registers

Posted: Tue Oct 30, 2018 6:48 pm
by jesuabi.LC
Hi there

I'm trying to make a project that requieres me to write a 32 bit value on some register. I've been looking around some projects that use register 0x42000000, wich uses a C code for writing on it.

They used a ' *((uint32_t *)(reg))=value ' command to write on it. I took this and used it, but, it appears to be only writing the first 8 LSB on the register, if I send a value higher than 255, the register remains on 0

Is there any other way to write registers that allows to write values longer than 8 bits?

Regards

:D