This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What are the var types of RAM data?

Hi Team,

Recently, I am developing spi functions. There is a function that makes me confused --"nrfx_is_in_ram".

I am not clear that what types belong to RAM data.

Can you explain to me?

In one SPI example, it seems a const type. If so, suppose that I want to transmit dynamic data. How can i do?

Best,

Gaosheng

Parents
  • Hi, 

    The reason for having a function to check if data is stored in RAM is that some peripherals (SPIM/TWIM/SPIS/TWIS/etc) support EasyDMA, to get/put data directly from/to RAM while CPU is sleeping. Data stored in flash can't be read using EasyDMA.

    Normally, data declared as 'const' is stored in flash, while other variables/buffers are stored in RAM.

    Best regards,
    Jørgen

Reply
  • Hi, 

    The reason for having a function to check if data is stored in RAM is that some peripherals (SPIM/TWIM/SPIS/TWIS/etc) support EasyDMA, to get/put data directly from/to RAM while CPU is sleeping. Data stored in flash can't be read using EasyDMA.

    Normally, data declared as 'const' is stored in flash, while other variables/buffers are stored in RAM.

    Best regards,
    Jørgen

Children
Related