Announcement

Collapse
No announcement yet.

Code in interrupts causing linker error {linker} invalid symbol type - for '$cb$rp'

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Code in interrupts causing linker error {linker} invalid symbol type - for '$cb$rp'

    Hi, we are trying to add some interrupt code for a timer interrupt. Below is the error and the code we are trying to compile. This is using Windows 10 64 bit. Thanks

    ||=== Build: default in Rastrum (compiler: ImageCraft AVR Compiler) ===|
    ||{linker} invalid symbol type - for '$cb$rp'|
    ||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|


    #pragma interrupt_handler timer0_ovf_isr:iv_TIM0_OVF
    void timer0_ovf_isr(void)
    {
    TCNT0 = 0x06; //reload counter value


    if (ms_timer>0) {
    ms_timer--;
    }
    }

    Also, on another topic, the C compiler shows the version as 8.27 while we have 8.28 installed.
    -D__ICC_VERSION=82700

  • #2
    What version are you using? I believe a similar bug has been fixed in the latest version.

    Comment

    Working...
    X