Jump to content


Problem in HW<-->SW integration by FSL (MicroBlaze)


1 reply to this topic

#1 master

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 16 April 2010 - 08:04 AM

Hello,

I'm trying to implement a simple connection between hardware and software based on FSL.

Program is generated by Impulse Wizard, producer/consumer and HW filter (it just pass the data from the producer through the hardware to the consumer).

after synthesis the program for Spartan-3A DSP 3400A,

Software can not communicate with hardware and if I press the RST button, I will get "malloc failed!" error in the serial terminal.

I just followed the XILINX tutorial for FSL communication.


RESET pin of FSL controllers are connected to the sys_bus_reset.
Clock is connected to the 125MHZ

RESET pin of Hardware Filter is connected to the sys_periph_reset.
Clock is connected to the 62.5MHZ


Heap and Stack are set on DDR2 and size is 0x1000


Thank you in advance,
Regards

Mani

#2 etrexel

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 260 posts

Posted 24 April 2010 - 04:38 PM

Hi Mani,
It appears you may have been following the user guide for the Microblaze PSP, but it is not clear from your description what may be causing the error. Typical problems with FSL are related to clocks and/or reset polarity. The "malloc failed!" message unfortunately is fairly common especially after reset due to the malloc() library "remembering" previous allocations because the allocation table is not re-initialized on reset. Another typical cause of not seeing results is due to data stalling which may occur because the buffers in hardware are not big enough to store all the input data and the output is not being read because the Microblaze is running a single thread.

Hope that helps, if not please send a copy of your CoDeveloper and EDK projects for inspection to support@impulsec.com

Best Regards,
Ed
Ed Trexel
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users