Virus-V commented on issue #4336:
URL: 
https://github.com/apache/incubator-nuttx/issues/4336#issuecomment-898898312


   > I think it's not related to RF parameters, since I also flash wifi example 
from BL offical SDK, it works well. And same as acassis, I use command tool and 
not flash any other binary.
   
   The official BL SDK uses the device tree to save the RF parameter 
information, but NuttX currently does not support the device tree. Therefore, 
when linking the NuttX of BL602, the linker script will reserve 1K space at the 
beginning of 0x400 in the generated bin to save the RF parameters obtained from 
the device tree.
   
   When using the official download tool to download the code, the tool will 
automatically parse the specified device tree file and find the RF parameter, 
convert it into a TLV format raw binary data, and write it directly into the 
0x400 offset of the bin file. 
   
   As far as I know, third-party tools currently do not support automatic 
patching of TLV RF parameters in the bin file. 
   
   ```
   $ hexdump -C -s 0x400 -n 512  nuttx.bin
   00000400  42 4c 52 46 50 41 52 41  00 00 00 00 00 00 00 00  
|BLRFPARA........|
   00000410  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
|................|
   *
   00000600
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to