Iam using Flash LDD component for MC56f82746 DSC controller,
in that we have set Word and Get Word Apis in which Address variable is left shifting by 1, because of that left shift we are not able to at desired address location. May I know the reason behind it. And provide me the solution to write at desired address location using Word APis.
Hi,
if you define the word as:
uint32_t type is word, which is 32 bits.
uint16_t type is half-word, which is 16 bits.
uint8_t type is byte, which is 8 bits.
The DSC is half-word address, in other words, each address cell occupies half-word or 16 bits data.
But the DSP56800E/EX core supports byte pointer address, in the case, the byte point address must be left-shift one bit based on the half-word address..
Pls refer to section 6.6.1 Byte Pointers vs. Word Pointers in DSP56800ERM.pdf
Secondly, for the example, the DMA source/destination address requires byte-pointer address, left-shift is required for the half-word address.
Hope it can help you
BR
Xiangjun rong