bluerange-io / bluerange-mesh

BlueRange Mesh (formerly FruityMesh) - The first completely connection-based open source mesh on top of Bluetooth Low Energy (4.1/5.0 or higher)
https://bluerange.io/
Other
287 stars 109 forks source link

nRF52.h's NRF_UICR_Type doesn't have BOOTLOADERADDR #84

Closed onionhammer closed 7 years ago

onionhammer commented 7 years ago

Causes compile issue here https://github.com/mwaylabs/fruitymesh/blob/master/src/modules/Module.cpp#L68

skulblakka commented 7 years ago

I think they removed the BOOTLOADERADDR in the UICR struct and the address is now set in NRF_UICR->NRFFW[0].

However I'm not completely sure as I could not find the correct information in the SDK 11 documentation (according to the SDK 12 documentation NRF_UICR->NRFFW[0] should equal the bootloader start address). Also I'm not making use of a bootloader. While this change works without one, I don't know for sure if it works with one.

mariusheil commented 7 years ago

yes, you are right. NRF_UICR->NRFFW[0] is the correct one for the nrf52