MXCHIP-EMW / WICED-for-EMW

Broadcom WICED patches for MXCHIP EMW wireless ARM platform. Not affiliated with MXCHIP or Broadcom
Other
55 stars 25 forks source link

Investigate SPI flash OTA support on EMW3165 #6

Closed emilf closed 9 years ago

emilf commented 9 years ago

It builds and tries to flash, but something is causing hardfaults on download_apps.

emilf commented 9 years ago

download_apps works now, uploading an update via ota_fr works.

However, the new app never boots for some reason.

So making progress slowly... it's hard to debug over hardware resets and not knowing what image is running.

emilf commented 9 years ago

Note to self... changes to wicked_apps.mk(WICED bug fix) and EMW3165.mk (for saving the wifi driver binary blob in app slot rather than internal resources, for multiapp support)

leppie commented 9 years ago

I was testing this over the weekend before my module just gave up.

SPI flash speed of 8000000 works most of the time. But also got issue running the apps after upload via web UI.

BOB62 commented 9 years ago

Get-it after a few hours of debug, you must adjust the end of sector in the waf_platform.c in the directory Stm32F4xx/WAF

define PLATFORM_APP_START_SECTOR ( FLASH_Sector_3 )

define PLATFORM_APP_END_SECTOR ( FLASH_Sector_7 ) instead of 13

emilf commented 9 years ago

OMG! Testing now... my god I've spent a lot of time on this shit.... If this works I'll build a statue in your honor

emilf commented 9 years ago

So far so good... patch coming up :)