Delay routines (service) - Errors

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi there,

Another day trying to get along with ASF.

 

I started a completely new project, compiling successfully. By only adding the "Delay routines (service)" module with the ASF Wizard errors pop up:

Error: 'BOARD_OSC0_HZ' undeclared (first use in this function)  

 

defining it

 


#define BOARD_OSC0_HZ 1
#include <asf.h>

int main (void)
{
	/* Insert system clock initialization code here (sysclk_init()). */

	board_init();

	/* Insert application code here, after the board has been initialized. */
}

 

it then says

 

Error: '#error BOARD_OSC0_STARTUP_US must be defined by the board code

 

So, now I'm confused: Is there any implementation missing on ASF side?

 

Info - What I did:

 

  1. Setup Project: File -> New -> New Project -> GCC C ASF Board Project
    MCU: AT32UC3C1256C
     
  2. Compiled => success
     
  3. ASF Wizard: Added "Delay routines (services)"
     
  4. Compiled => 11 Errors (I described the first above!)

 

That shouldn't happen? In an other project that I am currently setting up, I already added EIC, GPIO, INTC, PM, TC, USART and Generic board support successfully without any issues until trying to add "Delay routines (services)" where even more issues occur. So whats the matter with the "Delay routines (services)" module?

 

Thx for any help.

 

cheers Nik

 

 

 

 

 

 

This topic has a solution.
Last Edited: Wed. Jul 10, 2019 - 01:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try making it as a -D not just on one file (that is "Symbols" in the AS7 project setup).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for reply. Actually I solved the problem in the most classic way to engineers. Stopped working, went for a beer... the next day the problem was solved. So I simply asking my self WTH I did spend time for the day before.angry

 

Eventually yes

 

thx

 

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

radioman85 wrote:

Thank you for reply. Actually I solved the problem in the most classic way to engineers. Stopped working, went for a beer... the next day the problem was solved. So I simply asking my self WTH I did spend time for the day before.angry

 

Eventually yes

 

thx

 

 

I used to solve perplexing problems by going out to my dock and putting my feet in the water. If that didn't help, my whole self in the water. In an hour or so, problem solved!

The largest known prime number: 282589933-1

In my humble opinion, I'm always right. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

laugh good to here