블로그 이미지
progh2
지루한 것에서 벗어나 재미난 것 속으로 풍덩~☆

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

Notice

Recent Post

Recent Comment

Archive

거의 유일무이한 팜 프로그래밍 책인 Palm OS Programming 책을 보고
따라하다보면 아마도 최초로 겪는 일은
윈도우 XP에서 요상한 에러를 내서 짜증내면서 포기하는 일을 처음 겪고,
윈도우98 등 구형 O/S를 찾아서 설치하게 될 것입니다. -_-
어쩔 수 없죠. 이 개발툴이 윈95, 98, NT에서 돌아가게 만들었다니...
호환성 모드도 제대로 작동 못하는 녀석은 방법이 없는..

저는 노트북에 딸려온 윈미에다 설치했습니다. 윈98이나 윈미나 그게 그거니..
(...윈미땅님아 조용히 있어 주세요 )

정말 활동적인 어바웃 -_-. 즐~

까탈스러운 코드워리어 6 라이트님(...)


그래서 책에 나온 불칠전한 지시대로 머리를 굴려가며 따라하다보면
첫 작업부터 에러를 때려줍니다.

일단 디버깅을 위한 콘솔모드 진입에 관한 부분인데,
콘솔문자(오메가라고 할까요? 필기체로i 문자) + .. + 2 로 들어가라고 하는데
이것에 관한 내용은 이전이전 포스팅에 남겼으니 참고하시고,
근본적으로 제가 가진 SJ33은 usb 연결이라
시리얼 포트 연결만을 제공했던 구형 팜을 염두해서 만들어진 이 코드워리어 6 lite에서는
어찌 실행할 방법이 없더군요.
코드워리어9에서는 가능한 것 같던데... 뭐 일단 급한 것은 아니니
좀 더 익숙해지고 넘어가도 상관없다 생각해서 이 부분은 패스.

그 다음 예제.
오, 첫 예제입니다. 헬로~ 버튼을 만들어 보는 예제군요.
역시나 불친절한 설명대로 따닥따닥 따라해서 두근두근거리며
Make 버튼을 눌러주면 땅~ 때려주는 에러.

시작하자마자 에러 메시지가!

starter.tmp 파일 에러에유~


네. 역시 시작하자마자 불친절한 에러가 땅하고 뜹니다.
책에는 이런 내용에 대해서는 다루지 않고 있고..
이 책을 봤을 다른 분들은 어떻게 해결했을지? -_-;;
이리저리 메뉴 굴리며 찾아봐도 생뚱맞고 어찌해야할지 알 수 없는 에러에
난감해하다 구글신님께 여쭤봤습니다.

...하지만 그다지 도움될만한 내용은 없더군요.
다만 한국에서 저랑 비슷한 상황을 겪은 분들이 많다는 것 -_-;
그래서 클리앙도 뒤져보고, kpug도 뒤져보고..하다가 kpug의 개발자 게시판에서
해답을 알아냈습니다. -_-+

장대원이란 분이 쓰신 답변글에 대답이 나와 있더군요.
그래서 그분 말대로

설명메뉴 위의 메뉴

프로젝트 이름마다 Setting 앞의 이름이 바뀌어서 이렇게 표현할 수 밖에..


설정메뉴 바로 위의 메뉴로 들어가서

68K Target

68K Target 항목의 "File Name"과


rez post linker 설정

rez post linker 설정에서 "Mac Resource Files"을


위 화면처럼 같게 설정해줍니다. 기본 설정으로는 다르게 되어있습니다.
어째서 이러한 내용이 책에는 빠져있는 것인지 좀 궁금하군요.
임시로 생성되는 파일인듯하니 적당한 이름으로 만들어주면 될 것 같습니다.
posted by progh2

팜 디바이스에서 콘솔모드를 불러오는 방법

this is the list of specials shortcuts

.1
The device enters debugger mode and waits for a debugger such as Palm OS Debugger or Metrowerks CodeWarrior to connect. The device appears frozen and unresponsive, awaiting commands from the debugger.
On old 68k monochrome handhelds a square begins flashing in the top left corner of the display. Some color handhelds display a colored line at the bottom of the screen. All other handhelds will not indicate that they are in debugger mode.

The device must determine whether to open the USB port or the serial port. Most devices determine whether they are attached to a USB cradle and open the appropriate port. Handspring devices require a utility called DebugPrefs so you can specify which port should be used. This utility is available from Handspring's developer program.

NOTE: Debug mode drains significant battery power. You must perform a soft reset to exit this mode.

.2
The device enters console mode and waits for communication, typically from a high-level debugger.
The device must determine whether to open the USB port or the serial port. Most devices determine whether they are attached to a USB cradle and open the appropriate port. Handspring devices require a utility called DebugPrefs so you can specify which port should be used. This utility is available from Handspring's developer program.

Another convenient way to put the device in console mode is to use the sample application.

NOTE: Console mode drains significant power over time. You must perform a soft reset to exit this mode.

There is no need to enter console mode using this shortcut when running the Palm OS Emulator or the Palm OS Garnet simulators, as they always support a debugger connection..


.3
The device's automatic power-off feature is disabled.
You can still use the device's power button to power it on and off. You must perform a soft reset to exit this mode.

.4
Displays the user's name.
None

.5
Erases the user's name and user ID.
WARNING: When the device is next synchronized after using this shortcut, the HotSync Manager application thinks that it has never been synchronized before. This means that records will be duplicated unless you first perform a hard reset (press the reset button while holding the power key).

.6
Displays the Palm OS build date and build time.
None

.7
Switches between NiCd and Alkaline battery curves to allow adjustment of when the battery warnings appear.
Of limited effectiveness. Low battery warnings do not work well with NiCd batteries.

.8
Toggles the backlight mode on a Palm IIIx or Palm V.
One mode is the default backlighting mode of the Palm IIIx and Palm V where the display is inverted when the backlight is turned on. The other mode is the default backlighting mode of the Palm III where the display is not inverted when the backlight is turned on.

NOTE: Restoring a Palm IIIx or Palm V from an existing user may overwrite the shortcut database and cause this shortcut to be lost.

.9
Displays the ROM build date and build time.
This command is not available on some devices.

.t
Toggle IR test loopback mode.
This mode is useful for debugging applications that beam data. Enabling this mode causes beamed data to be immediately received on the same device (ie: the IR hardware is bypassed). This is useful for testing your beaming or exchange manager code.

NOTE: Enabling this mode will cause more stack space to be used than a normal beam.

.i
Initiates a beam receive.
Using this shortcut will cause the device to begin waiting for a beam.

.s
Infrared serial mode toggle
This shortcut toggles the output port of infrared data between the built-in IR port and the built-in serial port.
posted by progh2

SJ33 n종세트.
여기에 실린 그림은 판매하신 분이 올렸던 사진입니다. ^^;


네. 어느날 문득 지름신께서 미천한 제게 계시를 내리셨습니다(..)

처음에는 싼 아주옛날 기종으로 찾아보다가 이모중위(..)의 조언으로 스펙을 업!, SJ33 근처 기종을 찾아보던 중 상태가 좀 나쁜 실전용 중고를 구입했기에 꽤 싼 값에 살 수 있었습니다. ^^ 메모리스틱도 128메가짜리 포함(SJ33의 한계상 128메가가 한계. 전환해서 쓰는 256도 가능은 하다고...), 도합 5만원에... 여기다 은행 자금이체료 300원에 착불 택배비 4000원을 더해야 겠죠. (싸게 넘기신 판매자분께 감사를!)

대략 Spec.은 다음과 같습니다.
SJ33J(영문으로 전환)
System Information
PalmOS v.4.1
Processor: DragonBall SuperVZ
Display: 320x320, 64K Colors
Battery: 4.08V
Memory: 16MB
Exp.Card: 128MB

몇일째 리셋하고 세팅하고 설치하고 지우고 등등의 일련학습과정을 반복하면서 "PDA의 유용성"을 절감하고 있습니다. ^ㅁ^/ 처음 도착했을 때 리셋되있어서 정말 좌절했었는데, 덕분에 더 빨리 심층부까지 익히게 된 것 같습니다. (클리앙에 감사를;;)

음~ 이제는 팜용 어플을 만들어보고 싶은 욕심이 생깁니다만
어떻게 해야할지 막막하군요. -ㅁ-;
Object C를 쓴다고 듣긴 들었는데...

posted by progh2
prev 1 next