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

Direct test mode for DK nRF5340 :: Illegal value 0x21001238 written to register 66 (MSP_NS) ignored

Hi,

I am using nRF 5340DK borad, trying to flash Direct test mode sample "nordic,nrf5340-dk-nrf5340-cpunet". My aim is the enable direct test mode on the nrF board in order to test Constant tone extension features of BT 5.1 specs.

I downlaoded the direct test mode code from examples samples , it compiled successfully but when zephyr.elf file is downloaded to nRF 5340DK board it gives this error

Illegal value 0x21001238 written to register 66 (MSP_NS) ignored

Can you suggest alternative way to flash right firmware to test.

Can Nordic support team or someone please upload possibly the DTM firmware .elf or .hex or .bin file with your working setup.

Please also find attached snapshots for your reference. Can you please guide how can i get DTM on nRF 5340 or some issue in my setup will be appreciated.

thanks

Parents
  • Hi, 

    The support staff is reduced during the summer holidays, and you may experience delayed answers.

    I see the same issue on Segger, but our segger expert is on vacation. I will contact him when he is back in the office. 

    I would suggest you use west to build and program the DTM sample. You could open command prompt from the tool manager:

    Locate under  NCS\v1.6.0\nrf\samples\bluetooth\direct_test_mode and execute:

    west build -b nrf5340dk_nrf5340_cpunet && west flash --recover

    Locate under NCS\v1.6.0\nrf\samples\nrf5340\empty_app_core
    west build -b nrf5340dk_nrf5340_cpuapp && west flash --recover

    Then, you could test the DTM now. 

    -Amanda 

  • Hi Amanda,

    I tried exact steps as you mentioned and also were successfull, firstly i had to install nrf command tools and set correct environment paths manually.

    Flasing of both steps was success : attached PIC

    but still DTM commands are not working, can you help please. Are USB pins correctly configured in default project as nRF5340 DK board , can it be issue ?? How can i check

    on Board i see following

    TXD P.020 andP1.01

    RXD P.022 and P1.00

    are these pins same in the default program ?

    thanks

  • Hi,

    KVo said:
    Is it possible, some how to get solution also using the Segger embedded studio, which previously gave register 66 error.

    Our segger expert is working on it. Please give us time. I will update the solution in the case. Sorry for any inconvenience. 

    -Amanda H. 

  • Hi Amanda,

    As from above, you suggest using 'west' to build the code and download to nRF5340-DK board.

     would suggest you use west to build and program the DTM sample. You could open command prompt from the tool manager:

    Locate under  NCS\v1.6.0\nrf\samples\bluetooth\direct_test_mode and execute:

    west build -b nrf5340dk_nrf5340_cpunet && west flash --recover

    Locate under NCS\v1.6.0\nrf\samples\nrf5340\empty_app_core
    west build -b nrf5340dk_nrf5340_cpuapp && west flash --recover

    Then, you could test the DTM now. 

    Do you have experience on DTM code when using Segger Embedded Studio for both code?

    BR, Charles

  • Hi Charles, 

    There is the known issue while programming netcore with SES. Therefore, I suggest to use west build and flash for the DTM example in this post.  

    Regards, 
    Amanda 

  • Hi Amanda,

    I follow your suggestion but fail.

    Locate under  NCS\v1.6.0\nrf\samples\bluetooth\direct_test_mode and execute:

    west build -b nrf5340dk_nrf5340_cpunet && west flash --recover

    Below is my procedure.

    in toolchain, run git-cmd.cmd to enter DOS prompt.

    Then, locate direct test mode.

    Then execute below:

    west build -b nrf5340dk_nrf5340_cpunet && west flash --recover

    It fails and have below screen shot. Do you have any suggestion to me?

  • Then, i try another Application code.

    locate empty_app_core

    Then execute below:

    west build -b nrf5340dk_nrf5340_cpuapp && west flash --recover

    It seems it can compile the code but fail to download it with below screen shot. Do you have any suggestion or comment to me?

    BR, Charles

Reply Children
No Data
Related