cancel
Showing results for 
Search instead for 
Did you mean: 

"Read access out of stm8 address range" error during debugging

HTiwa.11
Associate II

Map file:

BYTES ; The following addresses are 8 bits long

segment byte at 0-ff 'ram0'

WORDS ; The following addresses are 16 bits long

segment byte at 100-1ff 'ram1'

WORDS ; The following addresses are 16 bits long

segment byte at 200-3ff 'stack'

WORDS ; The following addresses are 16 bits long

segment byte at 4000-427F 'eeprom'

WORDS ; The following addresses are 16 bits long

segment byte at 8080-8FFF 'rom'

WORDS ; The following addresses are 16 bits long

segment byte at 8000-807F 'vectit'

Source file:

stm8/

#include "mapping.inc"

   segment 'rom'

.main:

; sample code

CPL A

end

0 REPLIES 0