Topic : Rkit-STM8 2.14.0901 may be have some bugs!

Forum : ST7/STM8

Original Post
Post Information Post
March 7, 2009 - 8:06am
Guest

Hi Eric:
I had installed 16k free Rkit-STM8 2.14.0901 in windows XP. I use it to debug STM8S105K6 project. My program is below:

LENGTH equ 200h
MY_VEC segment CODE AT 8000h ;interrupt vector
RSG?CODE segment CODE

rseg RSG?CODE

STM8S_START:

DOTRAPFILL MACRO
REPT Length
nop
ENDM
ENDM

DOTRAPFILL


_dummy:
iret
;************************************************************************
; Interrupt vector
;************************************************************************

aseg MY_VEC ; Interrupt vectors start at 8000h on STM8

DB 082h, 000h ; The interrupt address in in 24-bits mode,
DW STM8S_START ; and preceded by the 82h opcode. RESET
DB 082h, 000h
DW _dummy ; TRAP Software interrupt
DB 082h, 000h
DW _dummy ; TLI External Top level Interrupt
DB 082h, 000h
DW _dummy ; AWU Auto Wake up from Halt
DB 082h, 000h
DW _dummy ; CLK Clock controller
DB 082h, 000h
DW _dummy ; EXTI0 Port A external interrupts
DB 082h, 000h
DW _dummy ; EXTI1 Port B external interrupts
DB 082h, 000h
DW _dummy ; EXTI2 Port C external interrupts
DB 082h, 000h
DW _dummy ; EXTI3 Port D external interrupts
DB 082h, 000h
DW _dummy ; EXTI4 Port E external interrupts
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; SPI End of Transfer
DB 082h, 000h
DW _dummy ; TIM1 TIM1 Update/Overflow/Underflow/Trigger/Break
DB 082h, 000h
DW _dummy ; TIM1 TIM1 Capture/Compare
DB 082h, 000h
DW _dummy ; TIM2 TIM2 Update /Overflow
DB 082h, 000h
DW _dummy ; TIM2 TIM2 Capture/Compare
DB 082h, 000h
DW _dummy ; TIM3 Update /Overflow
DB 082h, 000h
DW _dummy ; TIM3 Capture/Compare
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; I2C I2C interrupt
DB 082h, 000h
DW _dummy ; UART2 Tx complete
DB 082h, 000h
DW _dummy ; UART2 Receive Register DATA FULL
DB 082h, 000h
DW _dummy ; ADC1 ADC1 End of Conversion/Analog watchdog interrupt
DB 082h, 000h
DW _dummy ; TIM4 TIM4 Update/Overflow
DB 082h, 000h
DW _dummy ; FLASH EOP/WR_PG_DIS
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; Reserved
DB 082h, 000h
DW _dummy ; Reserved
END

After make the program, the program can be downloaded to debug in the STM8S105K.
but, When I changed the "LENGTH" from 200h to 400h in my program. the Ride show me "No reponse from DTC". WHY?

Best Regards
minyang

Replies
Post Information Post
+1
0
-1
March 9, 2009 - 2:05am
Guest

Hi :
I had found the reason is: I can't download my program over 8380h address in my stm8s105k6. If my program is smaller than 380h, the downloading is ok, when I add a "nop"
and the length over 380h,then the Ride show me "No response from DTC", I do not know
why?
minyang

+1
0
-1
March 9, 2009 - 3:20am
Guest

Hi:
By the way, I change the STM8S105K6 to STM8S207K6, the Ride can't be configed right.
the device rom start,rom size,ram start and ram size can't be input by any information.

minyang

+1
0
-1
March 9, 2009 - 10:45am
Raisonance Support Team

Hi,

The STM8S105K6 prototypes were not available when we made the latest release of Ride. (not for us at least ;) )

Here is a patch for using them:
ftp://...

I'm not sure I understand your second point about the STM8S207K6. Can you please clarify?
It's normal that you cannot change the memory parameters. That can only be done on the STM8-TEST virtual device, but this device cannot be used for hardware debugging.
But why would you want to do that?
Are the values in Ride incorrect?
Were you trying to connect to a 105 by selecting 207 in Ride? (that's not supposed to work)

Best Regards,

Vincent

+1
0
-1
March 10, 2009 - 2:43pm
Guest

Hi Vincent:
Thank you for your patch. I will check it next two days.
About my second point, I mean that I change to use the STM8S207K6 chip to instead the STM8S105k6(for debuging) in my PCB board(this two chips are pin to pin) , and then to set STM8s207K6 model for Ride, The Ride's "rom start,rom size,ram start and ram size "can't be input by any information.
Best Regards
minyang

+1
0
-1
March 11, 2009 - 5:16pm
Raisonance Support Team

Hello Minyang,

We already fixed this RAM/ROM sizes problem that appears in the Ride7 interface with some STM8 derivatives.
The fix will appear in the next RKit-STM8 release, which should be out by end of next week.

Regards,
Bruno

+1
0
-1
March 12, 2009 - 10:22am
Guest

Hi:
Your STM8s105k6 patch can download the program to debug first time only, when download second time, the ride show me some errors. it have another bug.
When I terminate first debug, and then build or make my program and download again. The Ride show me "OPI Driver Error(4) Error reported by the device"
Best Regards
minyang

+1
0
-1
March 13, 2009 - 6:47pm
Raisonance Support Team

Hi,

I don't see this problem here.

Are you programming the option bytes?

Which value?

Can you send me a project showing the problem?

Best Regards,

Vincent

+1
0
-1
March 16, 2009 - 3:21pm
Raisonance Support Team

Hi,

I made a few more tests and found a problem in the handling of the option byte in the previous patch.

I'm not sure if it's related to your problem, but anyways I advise to use these new files:
ftp://www.raisonance.com/pub/forum/STM8S105K6/patch_090316_STM8S105K6.zip

Please keep me informed.
If it does not work, please send me a project showing the problem at 'support@raisonance.com'.

Best Regards,

Vincent