Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
David Smith
06/27/16 09:49
Read: 377 times
Nottingham
Uk


 
#190677 - SiLabs IDE / BL51 Irritations
I'm trying to get to grips with SiLabs IDE in order to transfer my many asm source files from a very old METAI based development system to the SiLabs IDE (was warned off the Symplicity suite due to its 'c' bias).
I'm reduced to merely trying to get the Blinky.asm example to work with a second source 'init.asm' that simply sets up a serial port.
(Already got the, as provided, blinky to work fine.)
So blinky.asm has a ljmp Main at ORG 0, and I want Main (in a segment called Blink) to be at 100h.
****************************************
.
.
cseg AT 0
ljmp Main ; Locate a jump to the start of
; code at the reset vector.

Blink segment CODE

rseg Blink ; Switch to this code segment.
using 0 ; Specify register bank for the
; following program code.

Main: lcall Init_Device
anl PCA0MD, #NOT(040h) ; clear Watchdog Enable bit
etc
******************************************
Init_device is in a separate source - Init.asm - with a segment name 'init'.

Both sources assemble without error.
I'm linking with an additional directive on the BL51 linker to try to force code to 100h.
Here's the build result, with the error.

******************************************
Link in progress...
C:KeilC51BINBL51.EXE @"C:SilabsDigit3cyglink.txt"


BL51 BANKED LINKER/LOCATER V6.22 - SN: K1RIC-F0GJXZ
COPYRIGHT KEIL ELEKTRONIK GmbH 1987 - 2009
"C:SilabsDigit3F34x_Blinky.obj",
"C:SilabsDigit3Init.obj" TO "C:SilabsDigit3Digit3" RS(256) PL(68) PW(78) CODE(?PR?*?Blink(0x0100))

*** ERROR L130: NO MATCHING SEGMENT FOR WILDCARD SEGMENT NAME
SEGMENT: ?PR?*?BLINK

Program Size: data=8.0 xdata=0 code=50
LINK/LOCATE RUN COMPLETE. 0 WARNING(S), 1 ERROR(S)
********************************************

I clearly have a segment 'blink', so do you know what the linker is objecting to?

Dave

List of 3 messages in thread
TopicAuthorDate
SiLabs IDE / BL51 Irritations      David Smith      06/27/16 09:49      
   Ask SiLabs      Andy Neil      07/01/16 09:02      
   Indeed...      David Smith      07/02/16 10:18      

Back to Subject List