Data Injector issue

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

Moderator: Benj

Post Reply
chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Data Injector issue

Post by chipfryer27 »

Hi

Couldn't find any related posts so I was just wondering if anyone else is having issues when using the HI Injector to send data to the UART during simulation? Pretty certain I've set it up correctly but nothing gets sent. I have even opened up a previous project in which it did work, but now doesn't.

Regards

chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Re: Data Injector issue

Post by chipfryer27 »

Hi

I think this is a bug.

If I get the UART to transmit data the HI Injector receives such, but I cannot send anything from HI to the UART.

Regards

chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Re: Data Injector issue

Post by chipfryer27 »

Hi

Made up the circuit in actual hardware and did all the usual checks, all good.

It transpires that I have a problem with the UART RXINT0 function. Despite valid data appearing on the pin it doesn't realise it so does nothing.

If I create a loop that simply reads the Rx pin and retransmits whatever is there on Tx pin (software echo) I get data coming back to me so the port does work (as do settings etc) just the interrupt function doesn't.

Regards

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: Data Injector issue

Post by Benj »

Hello,

Yes the UART RX interrupt currently does not simulate. This has been on our list for a while but is tricky to sort well.

I'll have another think on it and see if there is something we can do.

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Re: Data Injector issue

Post by MJU »

If the interrupt on RX is not working in hardware this maybe the reason that some of my projects don't work.

I use this interrupt and sometimes it works and sometimes it doesn't work.
Can someone please confirm that the UART RXINT0 function in Flowcode works??
Certainly in Arduino Nano which I'm using right now.

This may be a drawback for me as I am trying to get stuff working.

chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Re: Data Injector issue

Post by chipfryer27 »

Benj wrote:Hello,

Yes the UART RX interrupt currently does not simulate. This has been on our list for a while but is tricky to sort well.

I'll have another think on it and see if there is something we can do.
Hi Benj

Just to be clear, it isn't just in simulation, the UART RXINT0 function is not working in hardware either (well at least not for me). Later tonight I'm going to try previous versions of FC to see if I can get a work around until resolved.

Regards

chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Re: Data Injector issue

Post by chipfryer27 »

Hi

Using FC7 I recreated my test program.

The simulation did not work there either, however it does work in hardware (not so with FC8).

I at least have a work around until the interrupt issue is resolved.

Regards

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: Data Injector issue

Post by Benj »

Hello,

Investigating the issue for you now in v7 and v8 by comparing the files.

The definition files for v7 and v8 are identical for the UART RX interrupt enable, v8 has proper XML syntax but other then that it's the same.

In the v8 CAL UART file we have added X2 baud support for high baud rates and also the RX/TX pins enable/disable functionality. The timings for the RX timeot have also been tweaked and I've just spotted a potential issue with an uninitialised var but nothing which I think would cause the RX not to work.

Can you post a program so I can have a look what the problem might be in v8? Also which Nano are you using the 168 or 328?

chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Re: Data Injector issue

Post by chipfryer27 »

Hi

I will send over my files later.

I'm not using Arduino, I'm using PIC and I my target was an 18F4520 (simply coz it was in easy reach).

I've heard from MJU who is using an Arduino and he has his project working now by using FC7.

Regards

chipfryer27
Valued Contributor
Valued Contributor
Posts: 618
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 184 times
Been thanked: 195 times
Contact:

Re: Data Injector issue

Post by chipfryer27 »

Hi Benj

I've just updated my other machine to use the very latest FC8 and files, the machine that I used to test with in previous post. This machine sits beside my bench and is primarily used to actually download to chip. I thought I'd done that already but it turns out I hadn't completed the task (updating to 8.2.x).

I don't know but suspect that the unknown state could be my RXINT0 interrupt issue as I can confirm it now works fine in hardware for me.

Regards

Post Reply