smarano

Members
  • Content count

    24
  • Joined

  • Last visited

  1. Cmod A7 communication with Arduino

    my last test is : Arduino with a simple loop that send every 2 seconds "hello word" to usb host that is connected to main usb port of Cmod. Cmod has an isr that print each byte that is received. i can see the output but it is not correct. i see 0xFF for each byte that is received.
  2. Cmod A7 communication with Arduino

    No, the software work if i connect my cmod to pc directly, don't work i don't know why if i connect to pc using usb-host
  3. Cmod A7 communication with Arduino

    i try to explain my situation. 1) yes, my design has a microblaze. 2) yes i have tested the communication between pc and Cmod. In this way on the main USB port i have put an uart 16550 with 9600 baudrate. i have achived an C application that communicate with Cmod exchanging data. It work very well. 3) For internal PMod connector i mean : in the rear part of the board there is a Pmod Connectors with two pin lines, for internal pmod i mean the line closest to the buttons, and for external the other one. 4) so PC -> CMod(p) -> PC work fine and it work through the UART modules within the CMod. 5) "was your test really a PC -> CMod(L) -> P -> CMod(L) -> PC test?" yes. I use a CMod(L) to send/receive data from/to pc and use microblaze for computation, something like matrix square ecc. This realy work fine. 6) my first version of design consist in : Arduino is connected to Cmod without any logic, only with Tx and Rx connection, this connection uses pmod connectors pins. And another connection is made from PC to Cmod through main usb port (the port with ft2232h chip, the usb-uart bridge because it is faster.). Arduino does some authentication operatation and than pc do the rest of program. It work fine. Now i need to have only one connetion to the Cmod, so i need to connect my arduino to main usb port using USB-Host because ft2232h chip has two port,the first port for programming and the other one for communication. This usb-host allow me to select the right port to send data. 7) i try to explain my test better : i have three uart, 2 16550 and an uart lite. Main usb has Uart A with ISR_A() as handler, when some bit is sent to Uart_A, the ISR_A is activated in this way XUartNs550 *UartNs550Ptr = (XUartNs550 *) CallBackRef; byte = ReceiveByte(UartNs550Ptr->BaseAddress); SendByte(XPAR_PMOD_AXI_UART16550_1_BASEADDR,byte); PMOD_AXI_UART16550_1 is another 16550 uart connected to pc using a ftdi-cable, so i send data from pc to Uart_A this data is sent to Uart_B and i can read them with putty. Uart_B has a ISR_B() that does the same thing of ISR_A. So i can read data in both direction : PC<->Uart_A<->Uart_B<->PC. 8) to test the communication using usb-host i have change this design. PC is connected to Cmod through Uart_B via ftdi-cable. ISR_B is changed in "byte = ReceiveByte(UartNs550Ptr->BaseAddress); xil_printf("%x",byte);" because i need to send data to uartlite that is set as std in/out. the uartlite is connected to usb-host with two wire. Then i have connected usb-host to Uart_A (because i need to test the communication on this port, the port with ft2232h chip). So conceptually, using putty i send data, with 8 bit data, no parity and 1 stop bit at 9600 baudrate, to uart_b that take it and send them to uartlite that is connected to uart_a, everytime that some byte is sent to uart_a the led blink, so if i send A i can see the blinking but conceptually when some data arrives on uart_a the isr_a take it and send it to uart_b, in this way i should see it on my terminal. But I can see the blinking but nothins is sent to uart_b
  4. Cmod A7 communication with Arduino

    Realy thank you @D@n for reply. my design has three uart. 2 uart 16550 and an uart lite. First uart 16550 is conneted to main usb port (with ft2232h chip), the other is connected to internal pmod connectors. Uart lite is connected to external pmod connectors and is set as stdin/stdout with bsp. my first test is very simple, i have connected pc to main usb sending data and routhing them to internal pmod connectors and viceversa. It's very simple and it work fine. later i have send data to external pmod connectors through internal pmod connectors. using a ftdi for debug i can ready the right data. now, i have tried to connect PC -> C -> B -> C -> PC in this configuration : 1) an FTDI cable from pc to Internal Pmod Connectors(this has a uart 16550), The submitted data is routed to the external pmod connectors. 2) the external Pmod connectors are connected to USB-HOST. 3) USB-HOST is connected to CMOD through main usb port (the usb with double port), The submitted data is routed to the internal pmod connectors. Using putty i have opened a port to internal pmod connectors, using ftdi cable. In this way i could send and read the data processed by this uart. i can see the data flow through usb-host to cmod because i can see the leds blinking but i can't read anything with internal pmod. is something like : the data is send but ft2232h can't read them. any suggestion?
  5. Cmod A7 communication with Arduino

    I think that this can't resolve my problem. there is an updating, if i set packet interface on Uart Host something change on my CMOD. Infact data is send to cmod (leds blink) and i can read something. the problem is that if i send Hello Word the debug display only a 0XFF bytes. I can't undestand why Stefano
  6. Cmod A7 communication with Arduino

    hi, i have a question. I need to communicate with my Cmod A7 35T using arduino. I know that it is can't communicate directly but i found a middle chip that could be a solution. This component is : http://www.hobbytronics.co.uk/usb-host-serial with new firmware i can set on this chip the right communication port. My design is something like this, arduino send serial data to usb host that convert and send them to cmod, i have setted the right coomunication port and the right boudrate but there is an issues. I can see the datas flow (using the led) but USB-UART bridge can't read it. I set ISR with only one function that take each byte and print it. But nothing is read by uart. i don't know if i have explained the problem, but i ask some information about it. regards Stefano
  7. I have a CMOD A7 35T. I have created a design with Microblazed, two custom ip core, two UART, one SPI FLASH, an SRAM controller and a GPIO controller. I use two different clock, a 96 MHz clock for MB and a 128 MHz clock for IP Core and UART. With this settings it work perfectly, but i want to increase its performances. My idea is to use only one clock, a 128 MHz for all components. But with this settings i have a timing violation. There is something that i can do to solve this problem? WNS and TNS are negative, there are some Shyntesys or Implementations strategies that can help me? regards Stefano
  8. How to increase BRAM allocation ?

    Thank you, i need to find another way
  9. How to increase BRAM allocation ?

    I have a CMOD A7 35T. It has 225Kbyte of BRAM, but when i create a design with microblaze i can allocate only 128Kbyte. There is something that i can do to increase this space? I need more of 128Kbyte for Heap and Stack. regards Stefano
  10. Add External Ram To Cmod A7 35T

    there are so many constraints... i found a external SRAM chip, i'm thinking to weld it to my board, but i don't know if this is useful. Any suggestions about? Stefano
  11. Add External Ram To Cmod A7 35T

    i think that the only solution is to change board. But i need a compact board with spartan 7 fpga. Do you know if there are some board like XuLA2-LX25 but with spartan 7 chip? thank you so much regards stefano
  12. Add External Ram To Cmod A7 35T

    thank for the answer but there are a lot of problem in my design. 1) i can't modify the algorithm because it isn't mine.n nit uses a number of large and complex matrices and i can't modify this. 2) what does you mean ? 3) i can't use flash (ROM) because the data change at runtime. 4) unfortunately i have to discard this solution too 5) to use SD Card with my board i need to use a PMOD-SD adapter and i think that putting the heap and the stack here cut off my performances. 6) this is my last chance but i need to find a very compact board, like cmod a7, with a very big SRAM. i know that my problem isn't easy but i was hoping for a solution more feasible. Regards Stefano
  13. Add External Ram To Cmod A7 35T

    Hi, I found a problem with my design implemented on Cmod A7 35T board. I need to have more SRAM. The board has 256kb BRAM and 512Kb SRAM, but my application has a lot of malloc and calloc so i need about 15Mb of heap and stack. There is a solution for this problem? Can i add an extrernal SRAM? I realy don't know how i can solve it. Regards Stefano
  14. Add External Ram To Cmod A7 35T

    Hi, I found a problem with my design implemented on Cmod A7 35T board. I need to have more SRAM. The board has 256kb BRAM and 512Kb SRAM, but my application has a lot of malloc and calloc so i need about 15Mb of heap and stack. There is a solution for this problem? Can i add an extrernal SRAM? I realy don't know how i can solve it. Regards Stefano
  15. hi, i'm trying to create a simple desing with a microblaze and a custom IpCore with axi stream comunication, but when i try to implement it, Vivado show me the followingmessage : "[Place 30-640] Place Check : This design requires more RAMB36/FIFO cells than are available in the target device. This design requires 53 of such cell types but only 50 compatible sites are available in the target device. Please analyze your synthesis results and constraints to ensure the design is mapped to Xilinx primitives as expected. If so, please consider targeting a larger device." how i can fix it?