Programming from Linux.

Have a question about Air602 WiFi Module? Ask here!

Moderators: violet, qi.liao, jellyfish

Post Reply
r.e.wolff189
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Tue Oct 02, 2018 4:58 pm

Programming from Linux.

Post by r.e.wolff189 » Wed Nov 21, 2018 5:37 am

Hi
I bought a handfull of modules, expecting to be able to program them to my liking. Of course I can add them to my project as a module and talk to them with AT commands, but in my experience with ESP8266, that is full of race conditions and weird communications errors. So I much rather have control from the CPU itself. I have lots of experience with ARM processors and ARM compilers, so no problem there.

Now I find out that the "firmware tools" zipfile does not contain any sources, but just a few windows binaries. So how do I go about programming this thing from my Linux workstation?

(I stopped using Windows sometime in the last century).

jellyfish
Pre-kindergarten
Pre-kindergarten
Posts: 25
Joined: Fri Nov 09, 2012 9:31 am

Re: Programming from Linux.

Post by jellyfish » Thu Nov 22, 2018 5:50 pm

r.e.wolff189 wrote:
Wed Nov 21, 2018 5:37 am
Hi
I bought a handfull of modules, expecting to be able to program them to my liking. Of course I can add them to my project as a module and talk to them with AT commands, but in my experience with ESP8266, that is full of race conditions and weird communications errors. So I much rather have control from the CPU itself. I have lots of experience with ARM processors and ARM compilers, so no problem there.

Now I find out that the "firmware tools" zipfile does not contain any sources, but just a few windows binaries. So how do I go about programming this thing from my Linux workstation?

(I stopped using Windows sometime in the last century).
Hi wolff,

Unfortunately, we don't have the firmware tool for linux. However you can use the serial port tool with xmodem send function.

1-send 1B (HEX), Cyclically.

1.5-Thanks andreas
quote
"Try to push the RESET button (or pull down LOW the Res-PIN on the stand-alone module)
while sending "\x1b" then you'll get the desired response."

2-When it recall "secboot running" and then with "CCCCCC...."
you can choose the firmware file, and send them under xmodem protocol

Again, we have not tested this way under linux.


Happy thanksgiving
---------------
Best Regards
Jelly

Seeed Techsupport Team

robertbaruch
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Fri Nov 02, 2018 11:35 pm

Re: Programming from Linux.

Post by robertbaruch » Sun Dec 02, 2018 3:38 am

I agree with r.e.wolff189,

without REAL tools, this device is simply a toy that can't be used... All modern SoC's support a toolchain that isn't tied to Windows... Guess it's back to the ESPXXX family until such time that there are tools available to build firmware and escape the AT+ command set of 1981...

scm
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Mon Oct 08, 2018 11:59 pm

Re: Programming from Linux.

Post by scm » Mon Dec 03, 2018 3:04 am

I'm having trouble getting the module to respond to the 1B (escape). I've sent a bunch and never receive a response from the module. Could you describe the sequence to get the module ready to accept xmodem. From there it should be easy to get a python script to do the loading under Linux.

Thanks.

tarp.andreas
Pre-kindergarten
Pre-kindergarten
Posts: 4
Joined: Mon Mar 26, 2018 7:06 pm

Re: Programming from Linux.

Post by tarp.andreas » Mon Dec 03, 2018 11:57 pm

Hello scm,
scm wrote:
Mon Dec 03, 2018 3:04 am
I'm having trouble getting the module to respond to the 1B (escape). I've sent a bunch and never receive a response from the module. Could you describe the sequence to get the module ready to accept xmodem. From there it should be easy to get a python script to do the loading under Linux.
I first had the same problem but solved it: Try to push the RESET button (or pull down LOW the Res-PIN on the stand-alone module)
while sending "\x1b" then you'll get the desired response.

jellyfish
Pre-kindergarten
Pre-kindergarten
Posts: 25
Joined: Fri Nov 09, 2012 9:31 am

Re: Programming from Linux.

Post by jellyfish » Thu Dec 06, 2018 3:35 pm

Hi andreas,

You are right, it's my bad, i should have mentioned that the reset button should be pressed after send 1B.

Thanks for your reply, i will add your notice part.
---------------
Best Regards
Jelly

Seeed Techsupport Team

Post Reply