This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Please assist me in applying for a 100KB cache on the routine asset_tracker.

1. The use of the sdk is: ncs v1.2.

2. The routine used is: asset_tracker.


3. Test failure code see annex: 4_asset_tracker_ram.

4_asset_tracker_ram.rar
4. Applying 100KB of memory on the 10_hello_world_ram is ok, the test code is attached 10_hello_world_ram.rar.

10_hello_world_ram.rar
5. If possible, please provide references for memory sram allocation.

6. If you request memory OK, the following log will appear in the test.

Parents
  • Hello, 

    Can you please provide more information on what is failing? As our team is currently understaffed due to ongoing summer vacations, we will need more information to provide quick answers. 

    Thank you! 

    Kind regards,
    Øyvind

  • 1. I need to use the function k_malloc allocate 100KB of memory out in the routine 4_asset_tracker_ram, and verify the allocation of memory with characters A and B at the beginning and end of the location availability.

    2. In the first step, I set the parameters in prj.confCONFIG_HEAP_MEM_POOL_SIZE 102400.

    3. In the second step, I compiled the project with an error as shown in the following image:

    4. Third, I know this error is with the system file:
    D:\ncs\v1.2.0\zephyr\boards\arm\nrf9160_pca10090\nrf9160_pca10090_common.dts about, but I don't know how to modify it, please help me modify this file and allocate 100KB of memory out in this routine.

Reply
  • 1. I need to use the function k_malloc allocate 100KB of memory out in the routine 4_asset_tracker_ram, and verify the allocation of memory with characters A and B at the beginning and end of the location availability.

    2. In the first step, I set the parameters in prj.confCONFIG_HEAP_MEM_POOL_SIZE 102400.

    3. In the second step, I compiled the project with an error as shown in the following image:

    4. Third, I know this error is with the system file:
    D:\ncs\v1.2.0\zephyr\boards\arm\nrf9160_pca10090\nrf9160_pca10090_common.dts about, but I don't know how to modify it, please help me modify this file and allocate 100KB of memory out in this routine.

Children
Related