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

DTM test procedure over Bootloader + SoftDevice

Hello,

 

I am using nRF52840, SDK_16.0.0, S140 SoftDevice and Segger 4.16 for flashing the image.

 

1) At factory first we will load Secure Serial Bootloader and SoftDevice. Without erasing them, we want to do DTM. Whether can I load DTM package from below path using nrfutil.

                \examples\dtm\direct_test_mode\pca10056\blank\ses

 

2) As per below post can’t I use load SoftDevice along with DTM.

a) Since SoftDevice only loaded but nowhere enabled, still DTM can be loaded. Please correct my understanding.

                https://devzone.nordicsemi.com/f/nordic-q-a/42488/how-to-run-dtm-on-nrf52840-development-kit-using-mt8852b/167016#167016

                https://devzone.nordicsemi.com/f/nordic-q-a/33236/52840-dtm

 

Thanks & Regards

Vishnu Beema

Parents
  • Thank you for your inputs.

    I did few experiments. Please find my further related queries.

    1) When I load DTM hex file to nRF52840 and read memory content via nRFConnect I am seeing only MBR. If I drag the same hex file into “File memory layout” I am seeing both MBR and DTM Application.

    a) Also MBR size is different in Flash read and when hex file dragged to “File memory layout”. Why is this ?

    b) Because of this, I am not sure whether DTM application is loaded when I load DTM example via Segger.

          

    2) I merged “Secure Serial Bootloader” and SoftDevice. Now I am trying to merge DTM hex file, Bootloader settings hex file (generated from DTM application) and already “merged hex “ (Secure bootloader + SoftDevice). But I am getting error “ERROR: The hex files cannot be merged since there are conflicts”.

    a) In DTM example I am seeing FLASH_START=0x0. Do I need to change macros as below. Apart from these any other macros to be changed.

                   

            FLASH_START=0x27000

            FLASH_SIZE=0xD1000                     // 0xF8000 – 0x27000 = 856064 = 836 * 1024

            

     https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader.html&anchor=lib_bootloader_memory

    3) To cross check, I compared with ble_app_blinky. I am seeing below configurations.

    a) Why FLASH_SIZE=0xd9000 rather than 0xd1000

    b) Why to change RAM address.

     

    FLASH_START=0x27000

    FLASH_SIZE=0xd9000

    RAM_START=0x20002300

    RAM_SIZE=0x3dd00

     

    4) I merged “Secure Serial Bootloader” and SoftDevice. Instead of above step in 2, I generated DTM package. During this, I did not change any FLASH_SIZE (As is to Original DTM project) and other macros. But still I am able to generate package and able to do DFU.

    a) While merging why error got generated but while package generation, why there is no such error.

     

    Thanks & Regards

    Vishnu Beema

Reply
  • Thank you for your inputs.

    I did few experiments. Please find my further related queries.

    1) When I load DTM hex file to nRF52840 and read memory content via nRFConnect I am seeing only MBR. If I drag the same hex file into “File memory layout” I am seeing both MBR and DTM Application.

    a) Also MBR size is different in Flash read and when hex file dragged to “File memory layout”. Why is this ?

    b) Because of this, I am not sure whether DTM application is loaded when I load DTM example via Segger.

          

    2) I merged “Secure Serial Bootloader” and SoftDevice. Now I am trying to merge DTM hex file, Bootloader settings hex file (generated from DTM application) and already “merged hex “ (Secure bootloader + SoftDevice). But I am getting error “ERROR: The hex files cannot be merged since there are conflicts”.

    a) In DTM example I am seeing FLASH_START=0x0. Do I need to change macros as below. Apart from these any other macros to be changed.

                   

            FLASH_START=0x27000

            FLASH_SIZE=0xD1000                     // 0xF8000 – 0x27000 = 856064 = 836 * 1024

            

     https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_bootloader.html&anchor=lib_bootloader_memory

    3) To cross check, I compared with ble_app_blinky. I am seeing below configurations.

    a) Why FLASH_SIZE=0xd9000 rather than 0xd1000

    b) Why to change RAM address.

     

    FLASH_START=0x27000

    FLASH_SIZE=0xd9000

    RAM_START=0x20002300

    RAM_SIZE=0x3dd00

     

    4) I merged “Secure Serial Bootloader” and SoftDevice. Instead of above step in 2, I generated DTM package. During this, I did not change any FLASH_SIZE (As is to Original DTM project) and other macros. But still I am able to generate package and able to do DFU.

    a) While merging why error got generated but while package generation, why there is no such error.

     

    Thanks & Regards

    Vishnu Beema

Children
No Data
Related