printf not working on Zynq standalone build of examples-v2/hello/ [but printk does]

Chris Johns chrisj at rtems.org
Fri Aug 30 01:52:46 UTC 2019


On 29/8/19 10:27 pm, Andy James wrote:
> I have noticed that if I build the examples-v2/hello/ within an RTEMS bsp build
> it works fine, but if I build it standalone worth its own makefile (from
> Makefile.leaf)
> 
> It doesn’t give any output. However if  I substitute printk instead it does
> work. Is this perhaps an issue with interrupts? Does printf work on the Zynq

Maybe your clock setting need to match your hardware. In a file in your
application add something like below with your hardware settings ...

uint32_t a9mpcore_clock_periphclk(void)
{
  return XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ / 2;
}

uint32_t zynq_clock_cpu_1x(void)
{
  return 100000000U;
}

Chris



More information about the users mailing list