FC8 ESP8266 init problem

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

FC8 ESP8266 init problem

Post by stefan.erni »

Hi Ben

I have a Board with a PIC32mz2048 and ESP8266.
I use the same program as I use in a STM Board.
When I init the ESP8266-component I have to do this until the ESP8266-component give a 1 back.
But thats never happen.
For controlling what the ESP8266-chip is sending back I soldert a uart parallel to the output from the ESP8266-chip.
So here the log what I received all the time... But why the ESP-component give not a 1 back?

AT+CIPMUX=0
OK
AT+RST
OK
ets Jan 8 2013,rst cause:1, boot mode:(3,7)
load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79
2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : DOUT
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
ŒâÜçÉ8‚Œò ±€ìÿ
ready

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FC8 ESP8266 init problem

Post by Benj »

Hello Stefan,

Can you attach your project file so we can investigate.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: FC8 ESP8266 init problem

Post by stefan.erni »

Hi Ben

There is a special config you have to know ....
In the project option=> general option, I used 100Mega but the board works (maybe) on 200Mega.
because the uart was in "half speed".
I think the problem is somewhere else....
Attachments
Fc8_ecg test_1.fcfx
(87.64 KiB) Downloaded 172 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: FC8 ESP8266 init problem

Post by stefan.erni »

Hi Ben

I found the problem....
The ESP8266 is using Interupts. That the pic32 is working I have to change the config to MIPS32....
Then it's working nice.

MIPS32.PNG
(149.89 KiB) Downloaded 1533 times

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: FC8 ESP8266 init problem

Post by stefan.erni »

Hi Ben

There is a small problem with the wlan Modul and PIC. If all Pic or just PIC32MZ2048ecg I dont now.

The Wlan modul can not be initialized if an IRQ has not already been initialized. Any IRQ like another UART or a timer. I suspect PIC have an all irq on / off command.
But from this problem I can do something useful right now. A timer to turn off the wifi after 10 minutes. Since the PIC also has a few 32-bit timer there are long timer practicable.
Is it possible that the FC8 supports this 32bit timer and not just the 16bit timer?
from datasheet PIC32MZ
14.0TIMER2/3, TIMER4/5, TIMER6/7, AND TIMER8/9
Four 32-bit synchronous timers are available by combining Timer2 with Timer3, Timer4 with Timer5, Timer6 with Timer7, and Timer8 with Timer9.
wlan_off.PNG
(12.15 KiB) Downloaded 1447 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FC8 ESP8266 init problem

Post by Benj »

Hello,

Thanks for letting us know.

I have hopefully now fixed the interrupt enable problem where you are using a component with RX Interrupt functionality and no other interrupts. This has now been pushed to the v8 update system.

I'll add the 32-bit timers to the list as you're right that they would be very nice to have.

stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: FC8 ESP8266 init problem

Post by stefan.erni »

Hi Ben


Perfect! it's working now without additional interrupt.

And just with a click Flowcode 8 is updated....
pushed to the v8 update system

Post Reply