Problem building from source

The big one
Post Reply
hmpws
Posts: 1
Joined: Tuesday 10. August 2021, 02:31

Problem building from source

Post 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 :? !
thomas.horner
Posts: 10
Joined: Saturday 29. September 2018, 11:23

Re: Problem building from source

Post 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.
Post Reply