Bugs in UART and SPI Master and TCP/IP components

A forums to allow bugs and problems with Flowcode v6 to be reported and resolved.

Moderator: Benj

Post Reply
ARM
Posts: 29
Joined: Sun Oct 04, 2015 11:52 am
Been thanked: 3 times
Contact:

Bugs in UART and SPI Master and TCP/IP components

Post by ARM »

After installing FC V1.3 i got following Bugs.

-->UART1 INT no function. Same Error like FCV 1.2 (reported in 2015).

--> SPI MAster Mode 0,3 Pin clocking failure:

- SPI communication to MCP23S17 is OK.
- SPI communication to WIZnet W5100 or WIZnet W5500 not possible, because the single bits are
in Mode 0 and 3 not clocked in/Out correctly (via SPI Master Interface). (use logic analyser)

- When I insert in an empty Programm the WIZ810MJ TCP/IP or Webserver Components, communication is not possible too.

--> Because of the SPI Bug many Components (like WIZ810MJ TCP/IP or Webserver) wich
are part of Flowcode Professional are not available.
Flowcode Check.fcfx
(102.59 KiB) Downloaded 342 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: Bugs in UART and SPI Master and TCP/IP components

Post by Benj »

Hello ARM,
-->UART1 INT no function. Same Error like FCV 1.2 (reported in 2015).
I looked into this on your original thread and was unable to replicate the issue. Both UARTs were firing interrupts correctly. Do you have an example of this I can try again for you?
--> SPI MAster Mode 0,3 Pin clocking failure:
I will have a play here and see if I can get the W5100 and WIZ810MJ working on the ARM hardware but I'm not aware of any problems relating to the SPI.

ARM
Posts: 29
Joined: Sun Oct 04, 2015 11:52 am
Been thanked: 3 times
Contact:

Re: Bugs in UART and SPI Master and TCP/IP components

Post by ARM »

Hello,

UART1:
when enabling UART1 in Macro "SYS_initialise peripheral" (enable 2 Macro calls) and set PA 21 (RXD1) to ground, SPI COM to mcp23S17 and UART0 crashes. You can use the Project "Test_35" or "Flowcode check"

SPI:
SPI COM to W5500io/WIZ810MJ was tested with "send String" too, but no responce from chip. (Macro: SYS_initialise w5500, Macro: W5500 RXD Test)
When testing Ethernet adapter in Keil ide, it works without problems.

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: Bugs in UART and SPI Master and TCP/IP components

Post by Benj »

Thanks ARM,

I've collected the hardware together and will have a go first thing in the morning to see if I can find the cause of the issue.

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: Bugs in UART and SPI Master and TCP/IP components

Post by Benj »

Hello,

Right sorry for the delay taken me a while to get onto this and there was a problem with the EB031 SPI definitions that threw me sideways for a while.

Anyway here is the fixed EB031 definition file with the SPI pins fixed. I've been through and checked the other ARM targets do not have this issue.
EB031.fcdx
(17.49 KiB) Downloaded 303 times
On to the EB023 / WIZ810MJ issue I have created a simple program and it is now working very well for me using Flowcode 6.1.3 with no changes to the component or the SPI CAL layer.
ARMandEB023.jpg
ARMandEB023.jpg (71.79 KiB) Viewed 5435 times
ARMandEB023_SPI.jpg
ARMandEB023_SPI.jpg (218.52 KiB) Viewed 5435 times
ARMWebServer.fcfx
(7.2 KiB) Downloaded 287 times
If you are still having problems then is it possible for you to put together a very simple file that demonstrates the problem? The simpler the better as we can be more sure that nothing in the program is causing the issue.

Post Reply