Page 1 of 1

Problem building from source

Posted: Tuesday 10. August 2021, 03:02
by hmpws
I am helping a researcher build a custom application on the OSTC4. I pulled the code from Mercurial repo and tried to build it following instructions in Detailed CPU1-Discovery Project. It failed to compile in System Workbench with many errors. Please see the screen shot linked https://imgur.com/a/eI8unIY. I have recreated the project and double checked that I have followed the instructions a couple of times.

The first error is: 'FLASH_LATENCY_8' undeclared (first use in this function) from base.c. I see that it is defined in the HAL drivers.

How can I solve this? Any help would be greatly appreciated.

Edit: I have solved the problem by using the reference project files as a start. The wiki instructions must be missing something :? !

Re: Problem building from source

Posted: Sunday 28. August 2022, 13:48
by thomas.horner
Hey @hmpws, did you manage to build using eclipse?
I'd personally prefer to have a simple Makefile as I'm not perfectly happy about the idea of having to install eclipse.