Writing memory registers

Applications, development tools, FPGA, C, WEB
Post Reply
jesuabi.LC
Posts: 3
Joined: Thu Mar 22, 2018 11:35 pm

Writing memory registers

Post by jesuabi.LC » Tue Oct 30, 2018 6:48 pm

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

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: Google [Bot] and 7 guests