Search found 699 matches

by chipfryer27
Tue May 28, 2024 10:19 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Not used FCv8 for a while, forgot to include this. Build > Project Options > Configure Screenshot 2024-05-28 215406.png Here you can select the clock source from the drop down list. What crystal are you using? It will usually be marked on the case? Didn't you mention in some post you were using a...
by chipfryer27
Tue May 28, 2024 8:53 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi I very much doubt if you have a problem with the ESP module. If you refer back to the posts you made on 22nd of May at 7:50am and 6:50pm you will see that you did at some point have a one-second flash operating correctly. What settings were you using then? Earlier I didn't have access to my PC, n...
by chipfryer27
Tue May 28, 2024 2:54 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Flowcode Wiki will explain better than I can the setting. FC has no way to know what frequency your chip runs at unless you tell it. If your clock was x-MHz but you tell it y-MHz then all timings including delays and communications will be very, very wrong. I think when you sent me a correct trac...
by chipfryer27
Tue May 28, 2024 11:24 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Please reread my earlier posts in which I state quite clearly that the delay related time settings must match the frequency of your crystal. You cannot expect to have correct timing unless they match and you cannot at all expect communications to work. Do not try random values. Find the frequency...
by chipfryer27
Tue May 28, 2024 6:10 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi In your chart "C1" you have in the esp8266 properties Reset Mode = Hardware and this is then set to be C1. This explains why you cannot see the one-second flash on pin C1 as there is conflict. In an earlier post I suggested setting Reset Mode to Software as this would free up pins and I did sugge...
by chipfryer27
Mon May 27, 2024 10:21 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi

As mentioned something isn't correct. That isn't the correct character being sent and appears to be two characters (if baud and timing are to be believed).

I need to see your FC file to check.

Regards
by chipfryer27
Mon May 27, 2024 10:05 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi

I think you have settings wrong somewhere.

If you were set to trigger on the LED going high you would capture something like I shared and the time base would show the period as one-second, not the 10mS in your display.

Can you send me the FC file?

Regards
by chipfryer27
Mon May 27, 2024 9:44 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Just a thought, did you set your scope to trigger before you ran your chart? If so you may have caught part of the initialisation sequence. Start your chart and do a single trigger on your scope. Once it captures something set it to trigger again. The next trigger it receives MUST then be part of...
by chipfryer27
Mon May 27, 2024 9:12 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi

Some progress but you need to check your settings.

Can you share a trace showing the one-second square wave AND the Tx pin? I want to see the square wave and the "blip" like in my first trace.

The character captured is not a capital u (U). Is your clock correct and what is your baud?

Regards
by chipfryer27
Mon May 27, 2024 8:36 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi If only the voltage divider on D1 then that's OK, I can understand the connection. Pin to ground via two resistors and you take readings from the junction of the two resistors. We can forget about that part now. ESP or the USB=TTL should not be connected to the microcontroller. However if you are...
by chipfryer27
Mon May 27, 2024 5:56 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Unless you clearly identify each trace I won't know what it refers to. If you reread my posts above I asked for nothing to be connected to your chip pins other than scope probes (and essential life support such as crystal etc). Is this the case or is the esp8266 module still connected? If so plea...
by chipfryer27
Sun May 26, 2024 2:02 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi This is what I'm expecting to see when you "scope" the pins. Triggering on rising edge of "LED" pin (C0). Trace-1.jpg You can see the one-second flash on the first trace and each time it rises you can see the "blip" on the second trace. In the screenshot you can see two "blips" and I have set up ...
by chipfryer27
Sun May 26, 2024 8:20 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi

OK so we can now explain the levels. Easy done and if I've not used my scope for a while I too usually have something not right :)

Regards
by chipfryer27
Sat May 25, 2024 9:46 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi In the screenshots your time base seems to be 200mS per division which means five divisions per second. Looking at your green trace you can see that each high / low change is one second in length suggesting that it is your "led" pin (C0). However I don't understand why the level of a "high" is on...
by chipfryer27
Sat May 25, 2024 7:13 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi As we are seeing unexpected things on the traces, we need to move forward a step at a time to establish where things go wrong. If you could redo the tests with nothing but the scope leads connected to the microcontroller as per above that would be a big help. I'm unfamiliar with your scope, but I...
by chipfryer27
Sat May 25, 2024 6:04 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Your microcontroller should have the following connections for these tests (other than power / crystal / programming etc) Pin 2 (D0) = Rx - unconnected Pin 3 (D1) = Tx - connect to ch2 of Scope - nothing else connected to this pin Pin 23 (C0) = connect to ch1 of Scope - nothing else connected to ...
by chipfryer27
Fri May 24, 2024 10:36 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi

I'm not familiar with your scope. Are you sure you are set to trigger on ch1 (yellow trace)?

Irrespective of such, your Tx pin trace doesn't look correct.

Can you confirm nothing other than your scope is connected to your Tx (D1) pin?

Regards
by chipfryer27
Fri May 24, 2024 8:33 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi I think I see the issue. Lets make the settings / connections as follows Flowcode ESP8266 Settings Tx = D1 Rx = Don't Care / Unconnected Reset Mode = Software ESP SendString macro Text = "U" SendCR = 0 LED Any unused pin you want e.g. C0 Ensure your clock speed matches your crystal. In your chart...
by chipfryer27
Thu May 23, 2024 7:44 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Great, all pins / connections / settings work as expected. Now we will verify component functionality. Change the flash output to a pin not being used by the ESP8266 Tx / Rx (example change to C1) Add in the ESP8266 component and in properties set it for 9600 baud with Tx on D1 (or whatever your ...
by chipfryer27
Wed May 22, 2024 5:26 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi Back at a PC. As mentioned that's a good square wave. Next we "prove" the port we will transmit on. Using your flasher chart as above, change the output to be D1 as this is the port that will eventually transmit to the ESP. You should get another nice clean square wave. Once you have that we can ...
by chipfryer27
Wed May 22, 2024 11:47 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi I'm not at my PC so can only give brief comment. That looks like a good square wave so we now know that your clock and connections are good. It is always, always worth checking these at the beginning. You cannot over emphasise how valuable this check is. Next, we will prove the port. In your flas...
by chipfryer27
Wed May 22, 2024 6:24 am
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

The LCD doesn't care what speed your controller is running at, it will work regardless of clock speed. Your FC file should be outputting the letter "U" every two seconds as you have two one second delays in the loop, and the letter "U" should have 10-bits in each "burst". Your scope doesn't suggest ...
by chipfryer27
Tue May 21, 2024 8:44 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

I just tested the controller and the indicator, everything works according to the program. It seems that you have the hardware or software to see how the esp modules work, and now you are trying to protect or hack them. :shock: It isn't working according to your scope trace and your esp isn't respo...
by chipfryer27
Tue May 21, 2024 8:39 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi the "one-second flash test" is probably the best test you can do with microcontrollers and whilst so simple is equally so very great. https://www.matrixtsl.com/wiki/index.php?title=One_second_LED_flasher You can either connect an LED or just use your scope on the pin. If a scope you should see a ...
by chipfryer27
Tue May 21, 2024 8:22 pm
Forum: Flowcode V8
Topic: Download the program for the device via the Internet.
Replies: 263
Views: 8908

Re: Download the program for the device via the Internet.

Hi

Looking at the trace you just shared has me confused if related to the FC file also included.

Have you done a one-second flash check? Just connect your scope to a pin and toggle the pin every second.

Regards