Page 1 of 1

Bugs in UART and SPI Master and TCP/IP components

Posted: Sat Mar 05, 2016 3:38 pm
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 353 times

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

Posted: Mon Mar 07, 2016 6:48 pm
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.

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

Posted: Mon Mar 07, 2016 7:00 pm
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.

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

Posted: Mon Mar 07, 2016 7:10 pm
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.

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

Posted: Fri Mar 18, 2016 2:18 pm
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 313 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 5546 times
ARMandEB023_SPI.jpg
ARMandEB023_SPI.jpg (218.52 KiB) Viewed 5546 times
ARMWebServer.fcfx
(7.2 KiB) Downloaded 295 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.