These are chat archives for marvell-iot/aws_starter_sdk

28th
Sep 2017
maxdd
@maxdd
Sep 28 2017 11:03
i'm trying to implement a secure OTA started with http GET by following some examples that i received from marvell. I've seen the mw300.ld file but i've currently no idea how to edit it properly. It seems i need 36K to make it compile (384K + 36K in SRAM0 or 128K+ 36K SRAM1) but then when i flash it the mcu halted with errors
maxdd
@maxdd
Sep 28 2017 11:38
Is it common to have heap problems with just provisioning and some http handlers?
Jose Pablo Carballo
@josecarballoGL
Sep 28 2017 12:14
I don't think so, maybe you have https enabled and that would bring the ssl library in (wolfssl or cyassl), increasing footprint
maxdd
@maxdd
Sep 28 2017 12:19
Mhmm that's true i had enable it but how can i solve this then? Can you suggest me how to try to edit the ld file to increase available heap?
The courious thing is that if i compile with only the function rfget_server_mode_update(...) everything goes well i can POST a bin file on the url handler. When i use function rfget_client_mode_update(...) which i use to have the possibility to POST the url it doesn't compile
maxdd
@maxdd
Sep 28 2017 12:27

Also i see that mw300-xip.ld has this while mw300.ld doesn't

"move bss of specific librariesto SRAM0 to make space in SRAM1"
.bss_sram0 (NOLOAD):
{
_bss_sram0 = .;
libwifidriver.a:(.bss .bss.)
libmbedtls.a:(.bss .bss.)
. = ALIGN(4);
_ebss_sram0 = .;
} > SRAM0

How can i ensure i'm using the XIP version? Is XIP=1 enough?

Jose Pablo Carballo
@josecarballoGL
Sep 28 2017 13:41
If the sdk supports it, I think that "make XIP=1 ..." is enough. Not sure if the sdk of the starter kit also supports it; another technique is to use memory overlays, but I think that is a feature of Marvell's professional sdk
Natanael Espinosa
@Nspnosa
Sep 28 2017 14:52

I believe there is an error with the ALEXA tutorial with this string :

friendlyDescription: 'So that you don't have to get up to switch off the light ;)',

Also, how can I get it to work with the aws_starter_demo? What do I need to modify?

maxdd
@maxdd
Sep 28 2017 15:10
I do have access to the wmsdk, i'll try with XIP commands and reports it back
maxdd
@maxdd
Sep 28 2017 17:34
Ok XIP=1 was enough, the funny thing now though is that if i pass a non https link through http the firmware is updated correctly while i was expecting an error. If i pass a google drive file with a hardcoded github cert the connection is correctly rejected. Is it supposed to accept unsecure connection by default?
Jose Pablo Carballo
@josecarballoGL
Sep 28 2017 21:24
Glad that XIP=1 worked.. About the other question, I haven't looked at that part of the SDK to answer.. maybe someone else in the channel