BLUENRG-M2SP MAC Address issue & DTM Firmware
Hello,
In one of my projects, I use BLUENRG-M2SP as a network coprocessor with a host microcontroller from STM32L0 series together. I flashed BLUENRG-M2SP with pre-compiled DTM_SPI.hex which is used by X-NUCLEO-BNRG2A1.
My application code is run by host uC. Default BLE firmware is used as I indicated (BlueNRG-1_2 DK 3.2.3\Firmware\BLE_Examples\DTM\BlueNRG-2\DTM_SPI.hex)
In this configuration, it operates as expected well.
But, I would like to use my custom Mac address. To do that I have 3 questions;
1) As I understand from application notes & community forum, to use my custom mac address, I need to write it to a specific location of flash (I have done it by BlueNRG-X Flasher Utility while flashing firmware). and then I need to read from the flash again and write it down by following: ret=aci_hal_write_config_data(CONFIG_DATA_PUBADDR_OFFSET,CONFIG_DATA_PUBAD DR_LEN, bdaddr);
am I right ?
2) If I am right, should I read the mac address (@ specific flash address) in DTM_SPI application code (in Bluenrg-2 module) or in host uC ? (Do you propose a way to do that? )
3) To test of ability of recompile DTM_SPI, I have tried to compile it in DTM_SPI configuration from STSW-BLUENRG1-DK DTM project folder (BlueNRG-1_2 DK 3.2.3\Project\BLE_Examples\DTM\MDK-ARM\BlueNRG-2\DTM.uvprojx). But, compiled hex file did not work in the module as expected before. As I said in my current operating design, I used the pre-compiled firmware (BlueNRG-1_2 DK 3.2.3\Firmware\BLE_Examples\DTM\BlueNRG-2\DTM_SPI.hex ) which is supposed to have been compiled from the same project directory.
Is there any further pre-configuration or exception ( except HS_SPEED_XTAL=HS_SPEED_XTAL_32MHZ, LS_SOURCE=LS_SOURCE_INTERNAL_RO, SMPS_INDUCTOR=SMPS_INDUCTOR_NONE) of the project to get the same firmware from the project directory?
Thank you in advance,
Regards,
Ilker B.
