nrf: support for SoftDevice s140 PCA10056 board#723
Conversation
That's correct. The flash size is fixed for a major revision number and the RAM size is application-dependent. However, it's currently fixed in TinyGo. Sources: |
|
Would this be the same basic setup to use with the reel board if loaded with the s140 softdevice? |
And that value is 0x20000000 + 0x000039c0 as in S132? Also, can you please explain why is fixed in TinyGo? Is it fixed by choice or some other factors?
Sure.
It should be (tm). I have also an nRF52840-mdk board that i would like to have S140 working on it but needs a bit of work as in creating a single .hex file since the bootloader is CMSIS-DAP and |
The RAM used/required by the SoftDevice can be configured, but must be set at compile time (because it is part of the linker script). Ideally you could configure this per application and eventually support for this should be added, but until then I think it's best to pick a reasonable number and use that. 0x39c0 (~14.4kB) should definitely be enough. The amount of RAM required varies by application because different applications may use different features of the SoftDevice. This is configured when the SoftDevice is initialized, but at the moment go-bluetooth uses a fixed configuration with a fixed amount of memory required.
I believe you can also flash the SoftDevice using OpenOCD (it certainly worked on nrf51 devices). After that, you can just use |
|
@aykevl Thank you for the information and for the pointers. Everything is clear now. |
|
Thank you for this contribution, merged now. |
|
Yay! My first contribution to TinyGo!! The first of many i hope :) |
My source for the linker script file are the ble examples in nRF5 SDK v16.0.0. I am not sure if the values are correct but for the FLASH_TEXT the value is the same in all examples for pca10056. Now for the RAM origin seems to be application dependent. Is this correct?