cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

MaMi_1205306
Honored Contributor

Hi,

We use DFB assembler component.
So we would like to use the firmware to load any constant in DFB RAMA into any CLC in DATA RAMA.

DFB_LoadDataRAMA(int32 * ptr, uint32 *addr, uint8 size);

It is speculated to use the above API.

We read the data sheet but do not understand it.

-- uint32 * ptr : pointer on the data source to load.
-- uint32 * addr : Start address for loading data into DFB RAM A. Is this a CLC (Current Location Couter)?
-- uint8 size : The number of data words to load.

Is the above recognition correct?

Please tell us what int32 * ptr, uint32 * addr, uint8 size mean.

Do you have sample code for this API?

Regards,

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator

Hi user_236195066​,

Yes it is correct.

int32 * ptr is the pointer to the data (array) that you want to load into RAM A.

uint32* addr is the starting address  to load data in the RAM

uint8 size: no of data words to load

pastedImage_0.png

You can refer to the code example attached that uses this API to load a value into the RAM A.

Hope this helps!

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

2 Replies
BragadeeshV
Moderator
Moderator

Hi user_236195066​,

Yes it is correct.

int32 * ptr is the pointer to the data (array) that you want to load into RAM A.

uint32* addr is the starting address  to load data in the RAM

uint8 size: no of data words to load

pastedImage_0.png

You can refer to the code example attached that uses this API to load a value into the RAM A.

Hope this helps!

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

MaMi_1205306
Honored Contributor

Bragadeesh-san,

Thank you for confirming.
I also appreciate the sample code.

Regards,

0 Likes