I have flashed the light_ctrl hex file in nrf52840 dongle. Flashing Have been completed sueccessfully for provisioning in nrf mesh application its not showing in the network. to connect with light switch to create a mesh.
I have flashed the light_ctrl hex file in nrf52840 dongle. Flashing Have been completed sueccessfully for provisioning in nrf mesh application its not showing in the network. to connect with light switch to create a mesh.
Should i need to flash firmware before flashing the code
Hello,
cyriactoms said:Should i need to flash firmware before flashing the code
Not really sure what you mean by this.
I have flashed the light_ctrl hex file in nrf52840 dongle.
what .hex file did you use? One that you built yourself, or a precompiled one? If you built it yourself, what SDK version were you using? Was it built particularly for the nRF52840 dongle, or the nRF52840 DK? Is it possible upload the .hex file here?
Best regards,
Edvin
I am attaching my code with build folder
https://drive.google.com/file/d/1i2O5pRRJbxJficguQxR2HObf3M2pzqfA/view?usp=drive_link
How did you flash your build\zephyr\zephyr.hex file? When I flashed it, it ran without any issues. I used the nRF Connect for Desktop -> Programmer app to program the .hex file. How did you do it?
Best regards,
Edvin
Yess i used the same for flashing it. Is it the problem with my dongle. But i am able to flash blinky example and all and its working fine. I am getting the error which i have shared in the screenshot
Can you please try to flash the attached .hex file:
And try to scan for it in the nRF Mesh app.
Do you see it? If not, can you try to scan using the nRF Connect for Desktop/iOS/Android? Do you see it there? (It should be using the advertising name "Mesh Light Fixture".
Best regards,
Edvin
After flashing the hex file you have provided. In the serial terminal i am getting it like in the screenshot i have provided earlier. Bluetooth is initialising but the mesh is not initialised. in nrf connect app it is able to connect with bluetooth but in nrf mesh app it is not showing for provision. Is it a problem regarding the dongle. i have got 3 dongles in three of them i am having the same problem.
After flashing the hex file you have provided. In the serial terminal i am getting it like in the screenshot i have provided earlier. Bluetooth is initialising but the mesh is not initialised. in nrf connect app it is able to connect with bluetooth but in nrf mesh app it is not showing for provision. Is it a problem regarding the dongle. i have got 3 dongles in three of them i am having the same problem.
Does it have any problem with the softdevices.
Hello,
Can you please try to reset the network in you nRF Mesh application?
It may differ in iOS and Android, but on iOS you'll find it under the Settings tab (in the nRF Mesh app) -> Reset Mesh Network (Forget Network).
Have you (or someone) used the dongles for a Mesh application before, and provisioned it into another Mesh network? It struck me that they may have old network data stored in the flash, which may not be overwritten by the DFU process in the nRF Connect for Desktop -> Programmer app. Unfortunately, there is no simple way of telling whether the flash has old network data present.
Let me know if resetting the Mesh network on the phone doesn't work, and I will see if I can find/write a small application that will delete the network data pages on the dongle.
Best regards,
Edvin
yess i have done reset mesh network several times but its getting the same.
Hello,
i will explian how i am flashing the code
i will build the light fixture through the vscode nrf connection vs code extension pack.
by using nrf connect desktop i will add the hex file which is builded and flash it to the dongle after making the dongle to bootloader mode.
Is this the method correct or should i need to do anything more
That is correct. The issue is that the bootloader in the dongle doesn't erase the entire flash of the dongle. Only the part that is needed for the application. The network data for a mesh network is stored at the very top of the flash, so if it was previously used for something else, then there may be old data on the top of the dongle. And since the dongle doesn't have a debugger, there is no way to delete this data.
It is of course possible to delete it, but we don't have any tools to do it. I am sorry, but I was busy the last couple of days, having to do some other stuff, so I didn't get time to write an application. I will try to do it on Monday.
Sorry for the delay.
Best regards,
Edvin