gicking / STM8-SPL_SDCC_patch

Patch for STM8 Standard Peripherals Libraries
Apache License 2.0
89 stars 13 forks source link

failed to patch the latest STM8S_StdPeriph_Lib(en.stsw-stm8069.zip) #6

Closed aguegu closed 6 years ago

aguegu commented 6 years ago

With the latest download, version: 2.3.1, released on 26-April-2018,

https://my.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm8-embedded-software/stsw-stm8069.html

$ md5sum en.stsw-stm8069.zip
c413a9872b9cedb508993d05ef10f3e3  en.stsw-stm8069.zip

the patching failed.

$ ./apply_patch.sh 
patching file ./STM8S_StdPeriph_Lib/Doxyfile
File ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/inc/stm8s.h is read-only; trying to patch anyway
patching file ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/inc/stm8s.h
Hunk #1 succeeded at 85 (offset 1 line).
Hunk #2 succeeded at 143 (offset 1 line).
Hunk #3 FAILED at 165.
Hunk #4 succeeded at 182 (offset 1 line).
Hunk #5 succeeded at 2743 (offset 1 line).
Hunk #6 succeeded at 2787 (offset 1 line).
1 out of 6 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/inc/stm8s.h.rej
File ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/src/stm8s_flash.c is read-only; trying to patch anyway
patching file ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/src/stm8s_flash.c
File ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/src/stm8s_i2c.c is read-only; trying to patch anyway
patching file ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/src/stm8s_i2c.c
File ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/src/stm8s_itc.c is read-only; trying to patch anyway
patching file ./STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/src/stm8s_itc.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ADC2/ADC2_ContinuousConversion/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ADC2/ADC2_ContinuousConversion/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ADC2/ADC2_ContinuousConversion/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ADC2/ADC2_ContinuousConversion/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ADC2/ADC2_ContinuousConversion/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/AWU/AWU_ActiveHaltMode/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/AWU/AWU_ActiveHaltMode/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/AWU/AWU_ActiveHaltMode/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/AWU/AWU_ActiveHaltMode/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/AWU/AWU_ActiveHaltMode/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/BEEP/BEEP_3SignalsGeneration/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CAN/CAN_Networking/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CAN/CAN_Networking/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CAN/CAN_Networking/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CAN/CAN_Networking/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CAN/CAN_Networking/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSecuritySystem/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSecuritySystem/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSecuritySystem/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSecuritySystem/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSecuritySystem/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_ClockSelection/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_MaxSpeed/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_MaxSpeed/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_MaxSpeed/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_MaxSpeed/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/CLK/CLK_MaxSpeed/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/EXTI/EXTI_InterruptPriority/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/EXTI/EXTI_InterruptPriority/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/EXTI/EXTI_InterruptPriority/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/EXTI/EXTI_InterruptPriority/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/EXTI/EXTI_InterruptPriority/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_ByteReadWriteOperation/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_ByteReadWriteOperation/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_ByteReadWriteOperation/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_ByteReadWriteOperation/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_ByteReadWriteOperation/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_DataProgram/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_DataProgram/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_DataProgram/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_DataProgram/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_DataProgram/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_WriteWordOperation/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_WriteWordOperation/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_WriteWordOperation/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_WriteWordOperation/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/FLASH/FLASH_WriteWordOperation/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/GPIO/GPIO_Toggle/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/GPIO/GPIO_Toggle/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/GPIO/GPIO_Toggle/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/GPIO/GPIO_Toggle/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/GPIO/GPIO_Toggle/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_EEPROM/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_EEPROM/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_EEPROM/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_EEPROM/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_EEPROM/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Master/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Master/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Master/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Master/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Master/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Slave/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Slave/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Slave/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Slave/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Slave/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ITC/ITC_SoftwarePriority/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ITC/ITC_SoftwarePriority/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ITC/ITC_SoftwarePriority/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ITC/ITC_SoftwarePriority/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/ITC/ITC_SoftwarePriority/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/IWDG/IWDG_Example/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/IWDG/IWDG_Example/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/IWDG/IWDG_Example/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/IWDG/IWDG_Example/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/IWDG/IWDG_Example/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/RST/RST_IllegalOpcode/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/RST/RST_IllegalOpcode/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/RST/RST_IllegalOpcode/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/RST/RST_IllegalOpcode/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/RST/RST_IllegalOpcode/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FastCommunicationMicroSD/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FastCommunicationMicroSD/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FastCommunicationMicroSD/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FastCommunicationMicroSD/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FastCommunicationMicroSD/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FullDuplexUART1/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FullDuplexUART1/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FullDuplexUART1/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FullDuplexUART1/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_FullDuplexUART1/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_SimplexLCD/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_SimplexLCD/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_SimplexLCD/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_SimplexLCD/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/SPI/SPI_SimplexLCD/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_6Steps/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_6Steps/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_6Steps/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_6Steps/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_6Steps/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_7PWM_Output/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_7PWM_Output/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_7PWM_Output/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_7PWM_Output/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_7PWM_Output/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_ComplementarySignals_DeadTime_Break_Lock/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_ComplementarySignals_DeadTime_Break_Lock/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_ComplementarySignals_DeadTime_Break_Lock/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_ComplementarySignals_DeadTime_Break_Lock/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_ComplementarySignals_DeadTime_Break_Lock/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Input_Capture/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Input_Capture/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Input_Capture/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Input_Capture/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Input_Capture/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM1/TIM1_Sinewave_Generation/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_ActiveMode/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_ActiveMode/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_ActiveMode/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_ActiveMode/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_ActiveMode/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_OC_InactiveMode/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_PWM_DutyCycleConfiguration/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_PWM_DutyCycleConfiguration/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_PWM_DutyCycleConfiguration/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_PWM_DutyCycleConfiguration/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM2/TIM2_PWM_DutyCycleConfiguration/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM4/TIM4_TimeBase/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM4/TIM4_TimeBase/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM4/TIM4_TimeBase/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM4/TIM4_TimeBase/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM4/TIM4_TimeBase/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM5/TIM5_Synchronisation_With_TIM6/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM5/TIM5_Synchronisation_With_TIM6/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM5/TIM5_Synchronisation_With_TIM6/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM5/TIM5_Synchronisation_With_TIM6/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/TIM5/TIM5_Synchronisation_With_TIM6/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HalfDuplex/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HalfDuplex/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HalfDuplex/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HalfDuplex/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HalfDuplex/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HyperTerminal_Interrupt/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HyperTerminal_Interrupt/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HyperTerminal_Interrupt/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HyperTerminal_Interrupt/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_HyperTerminal_Interrupt/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Interrupt/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Interrupt/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Interrupt/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Interrupt/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Interrupt/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Receive/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Transmit/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Transmit/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Transmit/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Transmit/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_IrDA/Transmit/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_MultiProcessor/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_MultiProcessor/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_MultiProcessor/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_MultiProcessor/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_MultiProcessor/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Printf/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Printf/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Printf/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Printf/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Printf/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_SmartCard/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_SmartCard/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_SmartCard/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_SmartCard/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_SmartCard/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Synchronous/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Synchronous/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Synchronous/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Synchronous/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/UART1/UART1_Synchronous/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/WWDG/WWDG_Example/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/WWDG/WWDG_Example/stm8s_conf.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 36.
Hunk #5 FAILED at 58.
3 out of 5 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/WWDG/WWDG_Example/stm8s_conf.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/WWDG/WWDG_Example/stm8s_it.h
Hunk #1 FAILED at 1.
Hunk #3 FAILED at 53.
2 out of 3 hunks FAILED -- saving rejects to file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Examples/WWDG/WWDG_Example/stm8s_it.h.rej
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/readme.txt
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/SDCC/Makefile
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/SDCC/_UX_clean.sh
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/SDCC/_UX_compile_run.sh
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/SDCC/_WIN_clean.bat
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/SDCC/_WIN_compile_run.bat
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/SDCC/_WIN_upload.bat
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/stm8s_conf.h
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/stm8s_it.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_Template/stm8s_it.h
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/main.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/SDCC/Makefile
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/SDCC/_UX_clean.sh
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/SDCC/_UX_compile_run.sh
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/SDCC/_WIN_clean.bat
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/SDCC/_WIN_compile_run.bat
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/stm8s_conf.h
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/stm8s_it.c
patching file ./STM8S_StdPeriph_Lib/Project/STM8S_StdPeriph_test/stm8s_it.h
patching file ./STM8S_StdPeriph_Lib/Readme.md
aguegu commented 6 years ago

the patch works fine on version 2.3.0

$ md5sum en.stsw-stm8069.zip 
74e6fb584ab164b37542db4b0bdc7c57  en.stsw-stm8069.zip

Maybe we should specify the version for the base lib.

gicking commented 6 years ago

hello aguegu,

sorry for the issue! I wasn't aware a new SPL version has been released :-) I will try to fix the patch asap, but I am currently experiencing problems with SDCC. Specifically I cannot compile after upgrading to Ubuntu 18.04. Any idea...?

Georg

PS: good idea to mention the required SPL base version! Or better yet provide different patches for different SPL versions

aguegu commented 6 years ago

hi @gicking , it has been a while, :)

To be honest with you, I am not longer an Ubuntu fan. I have switched all my work environment to Manjaro(XFCE), so I can always get the latest updates from official repos and AUR. Both SDCC and stm8flash are supplied within AUR.

right now, I have just setup a new desktop of manjaro and have been trying to to do fresh toolchains setup. That is why I spot this issue.

My SDCC is of version 3.7.0 and built from source (the AUR way). It works fine with all my demo codes in https://github.com/aguegu/stm8demos (with 2.3.0 patched STM8S SPL)

However, these demos are simple.

gicking commented 6 years ago

hi aguegu, can you please try again and let me know if it works? Following your advice I have now added the SPL base version to the name of the patchfile. Georg

PS: I checked the Manjaro Wiki, and it looks really good. However, I also use an old Netbook, and I understand that 32-bit are no longer officially supported...?

aguegu commented 6 years ago

I have tried the patch on v2.3.1, and I got this error with SDCC 3.7.0

../../spl/STM8S_StdPeriph_Lib/Libraries/STM8S_StdPeriph_Driver/inc/stm8s.h:2798:5: error: #error traps require SDCC >=3.5, please update!

The interesting thing is that in stm8s.h, now it is

 /* traps require >=v3.5 */
 #if SDCC >= 350
   #define INTERRUPT_HANDLER_TRAP(a) void a() __trap 
 #else
   #error traps require SDCC >=3.5, please update!
 #endif 

but it is used to be

 /* traps require >=v3.4.3 */
 #if SDCC_VERSION >= 30403
   #define INTERRUPT_HANDLER_TRAP(a) void a() __trap 
 #else
   #error traps require SDCC >=3.4.3. Please update!
 #endif 

the old one works fine, I figured you missed to define SDCC or SDCC_VERSION

PS. try https://manjaro32.org ?

gicking commented 6 years ago

hi again, ad 1) in the past I defined my own SDCC_VERSION (top of stm8s.h), but then I figured I might as well use the predefined macro SDCC. Seems I was wrong... Anyway, according to the SDCC manual, the declaration of getchar() changed yet again in 3.7.0, so I need to fix that anyway and let you know

ad 2) good point, I will check that out :-)

gicking commented 6 years ago

ok, hope I found it. According to p.62 in the SDCC manual, the define SDCC is no longer supported --> I reverted back to my own SDCC_VERSION declaration (see top of stm8s.h). Could you please try again and report if it works now?

aguegu commented 6 years ago

Well, the patch works. But it requires some hacking. For some libs, I have to suffix the raw folder name with version to make the patch work. Would be better to doc it.

gicking commented 6 years ago

what exactly do you mean...? Before documenting it, I would rather (try to) fix it.

aguegu commented 6 years ago

it is simple. if you download the en.***.zip files from ST website, unzip it, and try to patch them. You would know. For example,

$ unzip en.stsw-stm8069.zip
$ mv STM8S_StdPeriph_Lib STM8S_StdPeriph_Lib_V2.3.1
$ patch -p0 < STM8S_StdPeriph_Lib_V2.3.1_sdcc.patch

if the mv step is missed, the patching would fail.

but for en.stsw-stm8030.zip, unzip it would get folder STM8TL5x_StdPeriph_Lib_V1.0.1, the patch works without mv.

gicking commented 6 years ago

sorry, didn't think of that! Now it should work...!?

aguegu commented 6 years ago

it works except for en.stsw-stm8030.zip

so we should do

$ unzip en.stsw-stm8030.zip
$ mv STM8TL5x_StdPeriph_Lib_V1.0.1 STM8TL5x_StdPeriph_Lib
$ patch -p0 < STM8-SPL_SDCC_patch/STM8TL5x_StdPeriph_Lib_V1.0.1.patch

It is ST's mistake, folder name style varies, at the first place, I agree. So we should doc it.

gicking commented 6 years ago

darn! Now it should work with the downloaded version. Can you please check again? Sorry for the fuss!

aguegu commented 6 years ago

@gicking it works fine now.