1CHIP-Programmers icon indicating copy to clipboard operation
1CHIP-Programmers copied to clipboard

OTA for STM32 using GSM-GPRS module

Open sankaramp opened this issue 6 years ago • 7 comments

hello csnol,

your library driver is closely related to my requirement,first of all thanks for this. my requirement is "i want to update the firmware using GSM-GPRS module instead of yours esp8266.

can you suggest me some tips?

thanq Sankar

sankaramp avatar Oct 10 '18 09:10 sankaramp

Hi Sankaramp,

I don't know which module you used for. and I was only use AT command on Arduino Uno + SIM8xx series GSM-GPRS module. I think it is difficult If you wanna only use ONE GSM-GPRS module to flash STM32 without a Ext-MCU. you know, We need 4 GPIO pins at least and 100KB data space( to save STM32 bin file)

* 2 GPIOs for STM32's BOOT0 and RESET.
* 2 GPIOs as a  EVEN Serial port to communicate with STM32.

As far as I know, Only a GSM-GPRS module can't do it if not been hacked.

You have to add a MCU which it has 2 UARTs. one Serial control GSM-GPRS module to connect internet. other Serial to flash STM32.

Haha, only if you use it for WiFi-Less or long distance control, I really don't suggest it .

csnol avatar Oct 12 '18 06:10 csnol

hello csnol, thanx for reply,

according to your suggestion i changed my application like this. img_20181011_192440

in this, i just want to connect one GSM-GRPS module through UART2 of MCU1. from GSM i want to read " example.bin " file through OTA and store that in external SPI-FLASH memory.

when expernal SPI FLASH got new ".bin file",it should load to MCU2 through UART1 of MCU1.

NOTE: here MCU1 and MCU2 both are STM32f1series controllers.

could you please give some suggestions.

thanq, Sankar

sankaramp avatar Oct 16 '18 12:10 sankaramp

Yes, Maybe you need pull-up GPIO1 and GPIO2.

Sorry, I don't know how to code a HTTP server use AT commands.

Attention please, "double MCUs, half stabilities."

csnol avatar Oct 16 '18 14:10 csnol

Okay thanq

I just need one help in writing the code regarding "load the .bin file from spi flash to MCU2 through UART1".

Any suggestion will be helpful..

Regards, Sankar

sankaramp avatar Oct 16 '18 18:10 sankaramp

You can try the LowPowerLab/SPIflash library

https://github.com/LowPowerLab/SPIFlash

or search Winbondflash in Github.

For flash STM32 MCUs, please reference STM32 DS file and my codes. some functions be included in stm32ota.h and stm32ota.cpp

csnol avatar Oct 17 '18 10:10 csnol

hello sir,

i'm trying like this,"in application programming using SD card". is it possible? ref: https://github.com/akospasztor/stm32-bootloader https://www.st.com/content/ccc/resource/technical/document/application_note/group0/6b/6d/66/98/7d/3e/46/cc/DM00282546/files/DM00282546.pdf/jcr:content/translations/en.DM00282546.pdf

any suggestions plz

thanq Sankar

sankaramp avatar Nov 29 '18 11:11 sankaramp

HI csnol,

This is very good library, I want to use this library with STM32F303 Controller, But as you mention that this will work only on 32 pin controller but my controller 100 Pin controller. anyways I tried by whenever ESP send 7F command to init the communication it will reviced 0x00 in sbuf[0]

Could you tell help to resolve this issue. Should we have to code STM too ?

ambujsaxena1 avatar Aug 19 '19 11:08 ambujsaxena1