Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Compile error with V.2.0.8.1

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
P_Santos

Bascom Member



Joined: 07 Jul 2011
Posts: 114

PostPosted: Wed May 15, 2019 3:47 pm    Post subject: Compile error with V.2.0.8.1 Reply with quote

Hello,

In my last project i use the Bootloader that update the firmware with SD Card, it works good if compile it with BASCOM V.2.0.7.8
When compile it with the BASCOM V.2.0.8.1 it write a boot.er file with this messages

Error : 1 Line : 471 Unknown statement [LDS R30 , {Z}] , in File : C:\Users\HP\Desktop\Proj\CPU4AL\CODE_CPU4AL\Boot_CPU4AL\DOS_Boot.bas

Error : 1 Line : 472 Unknown statement [LDS R31 , {Z + 1}] , in File : C:\Users\HP\Desktop\Proj\CPU4AL\CODE_CPU4AL\Boot_CPU4AL\DOS_Boot.bas

Anyone have this experience too?
How to fix it?

Best regards
P_Santos

(BASCOM-AVR version : 2.0.8.1 , Latest : 2.0.8.1 )
Back to top
View user's profile
EDC

Bascom Expert



Joined: 26 Mar 2014
Posts: 971

poland.gif
PostPosted: Wed May 15, 2019 3:55 pm    Post subject: Reply with quote

Do you have exclamation mark (!) before every ASM AVR mnemonic?
Something like that:
Code:
Do_spm:
  Bitwait Spmcsr.0 , Reset                                  ' check for previous SPM complete
  Bitwait Eecr.1 , Reset                                    'wait for eeprom

  Z = Page                                                  'make equal to page
  Shift Z , Left , Maxwordshift                             'shift to proper place
  Z = Z + Wrd                                               'add word
!  lds r30,{Z}
!  lds r31,{Z+1}

  #if _romsize > 65536
      ! lds r24,{Z+2}
      ! sts rampz,r24                                       ' we need to set rampz also for the M128
  #endif

  Spmcsr = Spmcrval                                         'assign register
!  spm                                                      'this is an asm instruction
!  nop
!  nop
Return
Back to top
View user's profile Visit poster's website
P_Santos

Bascom Member



Joined: 07 Jul 2011
Posts: 114

PostPosted: Wed May 15, 2019 4:16 pm    Post subject: Reply with quote

Thank you EDC

Now compile without errors

Best regards
P_Santos
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum