Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Bootloader usage #1

Closed
TinManAkshay opened this issue Aug 2, 2021 · 12 comments
Closed

Bootloader usage #1

TinManAkshay opened this issue Aug 2, 2021 · 12 comments

Comments

@TinManAkshay
Copy link

TinManAkshay commented Aug 2, 2021

Hi,

I looked at your library and its pretty to understand. I'd like to test the examples on my custom board having SAMD51 MCU and Ublox NINA W152 chip (has an ESP32 core integrated).

I've been meaning to inquire regarding a bootloader being used in your examples. I've a custom board around Adafruit feather M4 express. What bootloader (.bin file) do I have to flash from the folder "AT firmware" into the wifi chip before I use one of you examples?

NOTE: - I have an UART interface capability on the wifi chip including TX, RX, CTS, RTS, DTS and DTR pins.

Thanks,
Akshay

@khoih-prog
Copy link
Owner

Hi @tcpipchip,

As you're an expert in Ublox chip, could you please help here.

Thanks and Best Regards,

@khoih-prog
Copy link
Owner

khoih-prog commented Aug 2, 2021

Just a suggestion, why don't you use much better WiFiNINA, instead of te worse AT-command Firmware?

Check this u-blox nina b #1

@TinManAkshay
Copy link
Author

Hi @khoih-prog ,

Thank you so much for the quick response. Appreciate it.

I believe WiFiNINA uses SPI interface to talk to the Ublox WiFi chip, correct? However, in our custom board, we only have UART interface to communicate with Ublox W152 chip.

So far, according to the datasheet, I am able to send AT commands to the chip and receive the responses back accordingly, using Arduino IDE. For an instance, I can connect to the Wifi network and set-up an UDP address and port number. However, I could not figure out how to send/receive the udp packets using UART interface.

On top of that, I am having an issue like as follows:

  1. I am using "Espressif esptool.py" tool and "s-center" (which is an Ublox software) to establish a contact with a device. But I cannot able to do that. Eventually, I couldn't flash a bootloader (.bin files) so that I could use existing Arduino libraries made for UART interface with AT commands like your library.

I really need a right direction to move to. I'd appreciate any sort of advice and suggestion here.

Thanks,
Akshay

@khoih-prog
Copy link
Owner

khoih-prog commented Aug 3, 2021

  1. For UDP/WebServer, you can use my other ESP8266_AT_WebServer library. Have a look at UdpSendReceive example

I believe WiFiNINA uses SPI interface

Correct. Too bad you have to use Serial and AT-command. It's much better to change the HW/SW design in order to use better SPI / WiFiNINA, if possible.

  1. Sorry, you have to do more research yourself, or post on the Arduino / Adafruit for help. There is many and very easy way to load AT-command FW onto ESP32-based boards.

The working FW for ESP32 is here

AT_version_2.1.0.0_dev.zip

or

AT_version_2.1.0.0_dev

and Instructions to load FW


I don't have time now to help you further as this is not a bug or have nothing to do with this library

Good Luck,

@khoih-prog
Copy link
Owner

Have a look at SAMD51 Itsy-Bitsy M4 using ESP8266 AT-command shield. Working OK, only worse performance than ESP32 alone.

image

@tcpipchip
Copy link

Hi
Ublox W152 chip has protect code, if you erase it, you cant more recover, i guess!
It can be used with SPI too, but now enough info about

@tcpipchip
Copy link

But, i dont know if this compatible with WIFININA software

@TinManAkshay
Copy link
Author

TinManAkshay commented Aug 3, 2021

Hi @tcpipchip ,

What do you recommend whether I should make changes to the current design and introduce SPI interface to the Ublox wifi chip? Then, use WifiNINA?

Can't I use this library with UART interface? To use this library, I've got to erase the current bootloader in the chip and flash the new one which this library requires, correct? I'm having issues to establish contact with a device while flashing the AT firmware which this library requires.

Could you please help me with more information here. I'd highly appreciate that.

Thanks,
Akshay

@TinManAkshay
Copy link
Author

Hi @khoih-prog ,

As per your last comments, could you please share what dev board or wifi chip you used to get your examples up and running?

You must have first flashed AT firmware onto the wifi chip using Espressif esptool.py before you uploaded the example.ino sketch, correct?

@TinManAkshay
Copy link
Author

Hi @khoih-prog ,

Wanted to follow-up since my last comment. Please let me know what ESP32 dev board you used for your libraries?

@khoih-prog
Copy link
Owner

Just a dirt-cheap ESP8266-01 AT-command
ESP8266-01

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants