Skip to content

Commit

Permalink
First Programm Example
Browse files Browse the repository at this point in the history
  • Loading branch information
avislab committed Nov 8, 2016
1 parent c0e664d commit 47b0fc4
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 81 deletions.
61 changes: 33 additions & 28 deletions Example_First_Programm/Example_First_Programm.cogui
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<workbench version="2.0">
<workbenchAdvisor/>
<window>
<fastViewData fastViewLocation="1024"/>
<fastViewData fastViewLocation="1024">
<orientation position="512" view="org.coocox.codebugger.trace.ui.traceview"/>
<orientation position="512" view="org.eclipse.debug.ui.VariableView"/>
<orientation position="512" view="org.coocox.component.ui.Help"/>
</fastViewData>
<perspectiveBar/>
<page aggregateWorkingSetId="Aggregate for window 1468404352568" focus="true" label="Workspace - CooCox CoBuilder">
<editors>
Expand All @@ -27,7 +31,7 @@
</editor>
<editor activePart="true" focus="true" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" partName="main.c" path="C:/CooCox/CoIDE/workspace/Example_First_Programm/main.c" title="main.c" tooltip="C:/CooCox/CoIDE/workspace/Example_First_Programm/main.c" workbook="DefaultEditorWorkbook">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Example_First_Programm/main.c"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="4" selectionTopPixel="0"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="700" selectionTopPixel="0"/>
</editor>
</editors>
<views>
Expand Down Expand Up @@ -310,48 +314,49 @@
<actionBarAdvisor/>
</window>
<mruList>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Example_First_Programm/main.c">
<persistable path="/Example_First_Programm/main.c"/>
<file factoryID="org.coocox.component.ui.editors.repository.RepositoryElementFactory" id="org.coocox.builder.ui.editors.repository.RepositoryBrowser" name="Repository" tooltip="Repository">
<persistable>&#x0A;<subPage/>
</persistable>
</file>
<file factoryID="org.coocox.component.ui.editors.repository.RepositoryElementFactory" id="org.coocox.builder.ui.editors.repository.RepositoryBrowser" name="Repository" tooltip="Repository">
<persistable>&#x0A;<subPage/>
</persistable>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Example_PWM_Servo/main.c">
<persistable path="/Example_PWM_Servo/main.c"/>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="core_cm3.h" tooltip="Example_PWR_Standby_RTC/cmsis/core_cm3.h">
<persistable path="/Example_PWR_Standby_RTC/cmsis/core_cm3.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_gpio.c" tooltip="Example_PWM_Sound/stm_lib/src/stm32f10x_gpio.c">
<persistable path="/Example_PWM_Sound/stm_lib/src/stm32f10x_gpio.c"/>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_exti.h" tooltip="Example_PWR_Stop/stm_lib/inc/stm32f10x_exti.h">
<persistable path="/Example_PWR_Stop/stm_lib/inc/stm32f10x_exti.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_gpio.h" tooltip="Example_PWM_Sound/stm_lib/inc/stm32f10x_gpio.h">
<persistable path="/Example_PWM_Sound/stm_lib/inc/stm32f10x_gpio.h"/>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_pwr.c" tooltip="Example_PWR_Stop/stm_lib/src/stm32f10x_pwr.c">
<persistable path="/Example_PWR_Stop/stm_lib/src/stm32f10x_pwr.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Example_PWM_Sound/main.c">
<persistable path="/Example_PWM_Sound/main.c"/>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_gpio.h" tooltip="Example_PWR_Stop/stm_lib/inc/stm32f10x_gpio.h">
<persistable path="/Example_PWR_Stop/stm_lib/inc/stm32f10x_gpio.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Example_PWM_LED/main.c">
<persistable path="/Example_PWM_LED/main.c"/>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="mp3_lib.c" tooltip="ViraMaxi/mp3_lib.c">
<persistable path="/ViraMaxi/mp3_lib.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Example_USART_DMA/main.c">
<persistable path="/Example_USART_DMA/main.c"/>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="soundmenu.h" tooltip="ViraMaxi/soundmenu.h">
<persistable path="/ViraMaxi/soundmenu.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x.h" tooltip="Example_ADCviaDMA/cmsis_boot/stm32f10x.h">
<persistable path="/Example_ADCviaDMA/cmsis_boot/stm32f10x.h"/>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="ST7920.h" tooltip="C:\CooCox\CoIDE\workspace\ViraMaxi\ST7920.h">
<persistable uri="file:/C:/CooCox/CoIDE/workspace/ViraMaxi/ST7920.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_adc.c" tooltip="Example_ADC_Injected/stm_lib/src/stm32f10x_adc.c">
<persistable path="/Example_ADC_Injected/stm_lib/src/stm32f10x_adc.c"/>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="picture_WG12864.h" tooltip="C:\CooCox\CoIDE\workspace\ViraMaxi\picture_WG12864.h">
<persistable uri="file:/C:/CooCox/CoIDE/workspace/ViraMaxi/picture_WG12864.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Example_ADC_Injected/main.c">
<persistable path="/Example_ADC_Injected/main.c"/>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="tim3.h" tooltip="C:\CooCox\CoIDE\workspace\ViraMaxi\tim3.h">
<persistable uri="file:/C:/CooCox/CoIDE/workspace/ViraMaxi/tim3.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_adc.h" tooltip="Example_ADC_watchdog/stm_lib/inc/stm32f10x_adc.h">
<persistable path="/Example_ADC_watchdog/stm_lib/inc/stm32f10x_adc.h"/>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="fly.h" tooltip="C:\CooCox\CoIDE\workspace\ViraMaxi\fly.h">
<persistable uri="file:/C:/CooCox/CoIDE/workspace/ViraMaxi/fly.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Example_ADC_watchdog/main.c">
<persistable path="/Example_ADC_watchdog/main.c"/>
<file factoryID="org.eclipse.cdt.ui.ExternalEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="display.h" tooltip="C:\CooCox\CoIDE\workspace\ViraMaxi\display.h">
<persistable path="C:\CooCox\CoIDE\workspace\ViraMaxi\display.h" project="ViraMaxi"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_adc.c" tooltip="Example_ADC_Temperature/stm_lib/src/stm32f10x_adc.c">
<persistable path="/Example_ADC_Temperature/stm_lib/src/stm32f10x_adc.c"/>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="forms.h" tooltip="C:\CooCox\CoIDE\workspace\ViraMaxi\forms.h">
<persistable uri="file:/C:/CooCox/CoIDE/workspace/ViraMaxi/forms.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f10x_adc.c" tooltip="Example_ADC_Temperature/stm_lib/src/stm32f10x_adc.c">
<persistable path="/Example_ADC_Temperature/stm_lib/src/stm32f10x_adc.c"/>
Expand Down
25 changes: 24 additions & 1 deletion Example_First_Programm/Example_First_Programm.comarker
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<breakpoints/>
<breakpoints>
<breakpoint enabled="false" persistant="true" registered="true">
<resource path="/" type="8"/>
<marker charStart="-1" lineNumber="-1" type="org.eclipse.cdt.debug.core.cAddressBreakpointMarker">
<attrib name="enabled" value="false"/>
<attrib name="org.eclipse.cdt.debug.core.condition" value=""/>
<attrib name="org.eclipse.cdt.debug.core.address" value="0x0000000008000aaa"/>
<attrib name="org.eclipse.debug.core.id" value="org.eclipse.cdt.debug.core"/>
<attrib name="workingset_name" value=""/>
<attrib name="org.eclipse.cdt.debug.core.installCount" value="0"/>
<attrib name="type" value="org.eclipse.cdt.debug.core.cAddressBreakpointMarker"/>
<attrib name="persistant" value="true"/>
<attrib name="org.eclipse.cdt.debug.core.breakpointType" value="0"/>
<attrib name="workingset_id" value="org.eclipse.debug.ui.breakpointWorkingSet"/>
<attrib name="message" value="Address breakpoint: [address: 0x0000000008000aaa]"/>
<attrib name="registered" value="true"/>
<attrib name="charStart" value="-1"/>
<attrib name="path" value="/"/>
<attrib name="charEnd" value="-1"/>
<attrib name="org.eclipse.debug.core.enabled" value="false"/>
<attrib name="org.eclipse.cdt.debug.core.ignoreCount" value="0"/>
</marker>
</breakpoint>
</breakpoints>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
:100290003B681A1D3A607A68111D796012681A600D
:1002A0003B680C4A9342F3D30B480C494FF00002D1
:1002B0008842B8BF40F8042BFADBFFF727FF00F0B5
:1002C000CFF800BF0837BD4680BD00BF0805000855
:1002C000CFF800BF0837BD4680BD00BFE804000876
:1002D000000000200000002000000020000000209E
:1002E00080B400AFFEE700BF80B489B000AF786093
:1002F00039600023FB6100233B610023BB610023C5
Expand All @@ -69,16 +69,14 @@
:100430003B68DB78482B05D1BB69083301229A4021
:100440007B681A61BB690133BB61BB69072BC1D9EA
:100450007B687A695A6000BF2437BD4680BC70470C
:1004600080B582B000AF0121102000F02FF84FF4CA
:1004600080B582B000AF0121102000F01FF84FF4DA
:1004700000533B801023FB700323BB703B4619469F
:100480001148FFF731FF104A0F4BDB6883F400532C
:100480000948FFF731FF084A074BDB6883F4005344
:10049000D36000237B6002E07B6801337B607B6874
:1004A000B3F5801FF8DB084A074BDB6883F4005381
:1004B000D36000237B6002E07B6801337B607B6854
:1004C000B3F5801FF8DBDEE70010014080B483B095
:1004D00000AF78600B46FB70FB78002B06D0094913
:1004E000084B9A697B6813438B6106E00549054B0D
:1004F0009A697B68DB4313408B6100BF0C37BD46B4
:0805000080BC704700100240AE
:1004A000B3F5801FF8DBEEE70010014080B483B0A5
:1004B00000AF78600B46FB70FB78002B06D0094933
:1004C000084B9A697B6813438B6106E00549054B2D
:1004D0009A697B68DB4313408B6100BF0C37BD46D4
:0804E00080BC704700100240CF
:0400000508000000EF
:00000001FF
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Linker script and memory map

0x20005000 _eram = 0x20005000

.text 0x08000000 0x508
.text 0x08000000 0x4e8
*(.isr_vector)
.isr_vector 0x08000000 0x10c ..\obj\startup_stm32f10x_md.o
0x08000000 g_pfnVectors
Expand Down Expand Up @@ -199,11 +199,11 @@ Linker script and memory map
.text.GPIO_Init
0x080002e8 0x178 ..\obj\stm32f10x_gpio.o
0x080002e8 GPIO_Init
.text.main 0x08000460 0x6c ..\obj\main.o
.text.main 0x08000460 0x4c ..\obj\main.o
0x08000460 main
.text.RCC_APB2PeriphClockCmd
0x080004cc 0x3c ..\obj\stm32f10x_rcc.o
0x080004cc RCC_APB2PeriphClockCmd
0x080004ac 0x3c ..\obj\stm32f10x_rcc.o
0x080004ac RCC_APB2PeriphClockCmd
*(.init)
*(.fini)
*crtbegin.o(.ctors)
Expand All @@ -219,35 +219,35 @@ Linker script and memory map
*(.rodata*)
*(.eh_fram e*)

.glue_7 0x08000508 0x0
.glue_7 0x08000508 0x0 linker stubs
.glue_7 0x080004e8 0x0
.glue_7 0x080004e8 0x0 linker stubs

.glue_7t 0x08000508 0x0
.glue_7t 0x08000508 0x0 linker stubs
.glue_7t 0x080004e8 0x0
.glue_7t 0x080004e8 0x0 linker stubs

.vfp11_veneer 0x08000508 0x0
.vfp11_veneer 0x08000508 0x0 linker stubs
.vfp11_veneer 0x080004e8 0x0
.vfp11_veneer 0x080004e8 0x0 linker stubs

.v4_bx 0x08000508 0x0
.v4_bx 0x08000508 0x0 linker stubs
.v4_bx 0x080004e8 0x0
.v4_bx 0x080004e8 0x0 linker stubs

.iplt 0x08000508 0x0
.iplt 0x08000508 0x0 ..\obj\system_stm32f10x.o
.iplt 0x080004e8 0x0
.iplt 0x080004e8 0x0 ..\obj\system_stm32f10x.o

.rel.dyn 0x08000508 0x0
.rel.iplt 0x08000508 0x0 ..\obj\system_stm32f10x.o
.rel.dyn 0x080004e8 0x0
.rel.iplt 0x080004e8 0x0 ..\obj\system_stm32f10x.o

.ARM.extab
*(.ARM.extab* .gnu.linkonce.armextab.*)
0x08000508 __exidx_start = .
0x080004e8 __exidx_start = .

.ARM.exidx
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
0x08000508 __exidx_end = .
0x08000508 __etext = .
0x08000508 _sidata = __etext
0x080004e8 __exidx_end = .
0x080004e8 __etext = .
0x080004e8 _sidata = __etext

.data 0x20000000 0x0 load address 0x08000508
.data 0x20000000 0x0 load address 0x080004e8
0x20000000 __data_start__ = .
0x20000000 _sdata = __data_start__
*(vtable)
Expand Down Expand Up @@ -345,12 +345,12 @@ OUTPUT(Example_First_Programm.elf elf32-littlearm)
.debug_ranges 0x000000d8 0x10 ..\obj\main.o
.debug_ranges 0x000000e8 0x108 ..\obj\stm32f10x_rcc.o

.debug_line 0x00000000 0xdf0
.debug_line 0x00000000 0xde2
.debug_line 0x00000000 0x230 ..\obj\system_stm32f10x.o
.debug_line 0x00000230 0xae ..\obj\startup_stm32f10x_md.o
.debug_line 0x000002de 0x3f8 ..\obj\stm32f10x_gpio.o
.debug_line 0x000006d6 0x227 ..\obj\main.o
.debug_line 0x000008fd 0x4f3 ..\obj\stm32f10x_rcc.o
.debug_line 0x000006d6 0x219 ..\obj\main.o
.debug_line 0x000008ef 0x4f3 ..\obj\stm32f10x_rcc.o

.debug_str 0x00000000 0xb55
.debug_str 0x00000000 0x294 ..\obj\system_stm32f10x.o
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version='1.0' encoding='UTF-8'?>
<history>
<processor signature="arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -g -nostartfiles -Map=Example_First_Programm.map -O0 --gc-sections -LC:\CooCox\CoIDE\configuration\ProgramData\Example_First_Programm -TC:\CooCox\CoIDE\configuration\ProgramData\Example_First_Programm/arm-gcc-link.ld -g">
<target file="Example_First_Programm.elf" lastModified="1566e17b398">
<source file="..\obj\system_stm32f10x.o" lastModified="1566e17a5fc"/>
<source file="..\obj\startup_stm32f10x_md.o" lastModified="1566e17a62b"/>
<source file="..\obj\stm32f10x_gpio.o" lastModified="1566e17a967"/>
<source file="..\obj\main.o" lastModified="1566e17a9b5"/>
<source file="..\obj\stm32f10x_rcc.o" lastModified="1566e17aa23"/>
<target file="Example_First_Programm.elf" lastModified="15842bccf2a">
<source file="..\obj\system_stm32f10x.o" lastModified="15842bcc6dd"/>
<source file="..\obj\startup_stm32f10x_md.o" lastModified="15842bcc70c"/>
<source file="..\obj\stm32f10x_gpio.o" lastModified="15842bcc863"/>
<source file="..\obj\main.o" lastModified="15842bcc8b2"/>
<source file="..\obj\stm32f10x_rcc.o" lastModified="15842bcc91f"/>
</target>
</processor>
</history>
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version='1.0' encoding='UTF-8'?>
<history>
<processor signature="arm-none-eabi-gcc noversion nomachine -mcpu=cortex-m3 -mthumb -Wall -ffunction-sections -g -O0 -c -DSTM32F103C8 -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -I..\..\..\workspace -I..\..\..\workspace\Example_First_Programm\cmsis_boot -I..\..\..\workspace\Example_First_Programm\stm_lib -I..\..\..\workspace\Example_First_Programm\cmsis -I..\..\..\workspace\Example_First_Programm -I..\..\..\workspace\Example_First_Programm\stm_lib\inc">
<target file="stm32f10x_rcc.o" lastModified="1566e17aa23">
<target file="stm32f10x_rcc.o" lastModified="15842bcc91f">
<source file="..\..\..\stm_lib\src\stm32f10x_rcc.c" lastModified="1566e1750a8"/>
</target>
<target file="startup_stm32f10x_md.o" lastModified="1566e17a62b">
<target file="startup_stm32f10x_md.o" lastModified="15842bcc70c">
<source file="..\..\..\cmsis_boot\startup\startup_stm32f10x_md.c" lastModified="1566e17502b"/>
</target>
<target file="system_stm32f10x.o" lastModified="1566e17a5fc">
<target file="system_stm32f10x.o" lastModified="15842bcc6dd">
<source file="..\..\..\cmsis_boot\system_stm32f10x.c" lastModified="1566e17506a"/>
</target>
<target file="main.o" lastModified="1566e17a9b5">
<source file="..\..\..\main.c" lastModified="1566e179458"/>
<target file="main.o" lastModified="15842bcc8b2">
<source file="..\..\..\main.c" lastModified="15842bcb44f"/>
</target>
<target file="stm32f10x_gpio.o" lastModified="1566e17a967">
<target file="stm32f10x_gpio.o" lastModified="15842bcc863">
<source file="..\..\..\stm_lib\src\stm32f10x_gpio.c" lastModified="1566e174ffc"/>
</target>
</processor>
Expand Down
Binary file modified Example_First_Programm/Example_First_Programm/Debug/obj/main.o
Binary file not shown.
6 changes: 0 additions & 6 deletions Example_First_Programm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,5 @@ int main(void)

/* delay */
for(i=0;i<0x100000;i++);

/* Toggle LED which connected to PC13*/
GPIOC->ODR ^= GPIO_Pin_13;

/* delay */
for(i=0;i<0x100000;i++);
}
}

0 comments on commit 47b0fc4

Please sign in to comment.