From 50be7abab44117ca6bc6a6bd612b190ac8084a5f Mon Sep 17 00:00:00 2001 From: Axel Olougouna Date: Fri, 24 Mar 2023 18:11:59 +0100 Subject: [PATCH] deb_Son --- soft/PjtKEIL_StepDeb_1/BacASable.uvoptx | 59 ++++++++++++++++++++++-- soft/PjtKEIL_StepDeb_1/BacASable.uvprojx | 9 +--- soft/PjtKEIL_StepDeb_1/Src/Delay.s | 5 +- soft/PjtKEIL_StepDeb_2/BacASable.uvoptx | 4 +- soft/PjtKEIL_StepDeb_2/Src/Cligno.s | 6 +-- soft/PjtKEIL_StepSon/Src/GestionSon.s | 19 +++++--- soft/PjtKEIL_StepSon/Src/principal.c | 6 +-- soft/PjtKEIL_StepSon/StepSon.uvoptx | 40 ++++++++++++++-- soft/PjtKEIL_StepSon/StepSon.uvprojx | 54 +++++++++++++++++++--- 9 files changed, 164 insertions(+), 38 deletions(-) diff --git a/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx b/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx index ed76561..78744e9 100644 --- a/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx +++ b/soft/PjtKEIL_StepDeb_1/BacASable.uvoptx @@ -10,7 +10,7 @@ *.s*; *.src; *.a* *.obj; *.o *.lib - *.txt; *.h; *.inc + *.txt; *.h; *.inc; *.md *.plm *.cpp 0 @@ -75,7 +75,7 @@ 1 0 - 1 + 0 18 @@ -153,7 +153,44 @@ -U066CFF574857847167074929 -O2254 -S0 -C0 -A0 -N00("ARM CoreSight SW-DP") -D00(1BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F10x_128.FLM -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM) - + + + 0 + 0 + 28 + 1 +
134218682
+ 0 + 0 + 0 + 0 + 0 + 1 + .\Src\principal.c + + \\BacASable\Src/principal.c\28 +
+
+ + + 0 + 1 + VarTime + + + 1 + 1 + VarTime + + + + + 1 + 7 + 0x20000000 + 0 + + 0 @@ -196,6 +233,13 @@ + + + 0 + `VarTime + FF000000000000000000000000000000F8FF0F410000000000000000000000000000000056617254696D65000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000001000000000000000000F03F1000000000000000000000000000000000000000A4030008 + + 1 0 @@ -260,7 +304,7 @@ 1 0 - 0 + 1 18 @@ -339,6 +383,13 @@ + + + 0 + 1 + VarTime + + 1 diff --git a/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx b/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx index 9c192f5..2318c0c 100644 --- a/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx +++ b/soft/PjtKEIL_StepDeb_1/BacASable.uvprojx @@ -10,7 +10,7 @@ Simu 0x4 ARM-ADS - 5060750::V5.06 update 6 (build 750)::.\ARMCC + 5060960::V5.06 update 7 (build 960)::.\ARMCC 0 @@ -424,7 +424,7 @@ CibleSondeKEIL 0x4 ARM-ADS - 5060750::V5.06 update 6 (build 750)::.\ARMCC + 5060960::V5.06 update 7 (build 960)::.\ARMCC 0 @@ -1338,11 +1338,6 @@ <Project Info> - - - - - 0 1 diff --git a/soft/PjtKEIL_StepDeb_1/Src/Delay.s b/soft/PjtKEIL_StepDeb_1/Src/Delay.s index bf49175..2eb7950 100644 --- a/soft/PjtKEIL_StepDeb_1/Src/Delay.s +++ b/soft/PjtKEIL_StepDeb_1/Src/Delay.s @@ -20,7 +20,7 @@ TimeValue equ 900000 EXPORT Delay_100ms ; la fonction Delay_100ms est rendue publique donc utilisable par d'autres modules. - + EXPORT VarTime ;Section ROM code (read only) : area moncode,code,readonly @@ -51,9 +51,10 @@ BoucleTempo subs r1,#1 str r1,[r0] + bne BoucleTempo - bx lr + bx lr ; renvoie l'adresse de VarTime à la fin de la boucle endp diff --git a/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx b/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx index db3e892..e732af2 100644 --- a/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx +++ b/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx @@ -75,7 +75,7 @@ 1 0 - 0 + 1 18 @@ -267,7 +267,7 @@ 1 0 - 1 + 0 18 diff --git a/soft/PjtKEIL_StepDeb_2/Src/Cligno.s b/soft/PjtKEIL_StepDeb_2/Src/Cligno.s index 785a6a1..e17d3c2 100644 --- a/soft/PjtKEIL_StepDeb_2/Src/Cligno.s +++ b/soft/PjtKEIL_StepDeb_2/Src/Cligno.s @@ -26,10 +26,10 @@ timer_callback proc push {lr} ldr r0,=FlagCligno - ldr r1,[r0] + ldrb r1,[r0] cbz r1, zero mov r1,#0 - str r1,[r0] + strb r1,[r0] mov r0,#1 bl GPIOB_Set @@ -38,7 +38,7 @@ timer_callback proc zero mov r1,#1 - str r1,[r0] + strb r1,[r0] mov r0,#1 bl GPIOB_Clear diff --git a/soft/PjtKEIL_StepSon/Src/GestionSon.s b/soft/PjtKEIL_StepSon/Src/GestionSon.s index 8a75b7a..a2c81c0 100644 --- a/soft/PjtKEIL_StepSon/Src/GestionSon.s +++ b/soft/PjtKEIL_StepSon/Src/GestionSon.s @@ -1,6 +1,6 @@ PRESERVE8 THUMB - + include Driver/DriverJeuLaser.inc ; ====================== zone de réservation de données, ====================================== ;Section RAM (read only) : @@ -10,7 +10,8 @@ ;Section RAM (read write): area maram,data,readwrite - +SortieSon dcw 0 +Index dcw 0 ; =============================================================================================== @@ -21,10 +22,16 @@ area moncode,code,readonly ; écrire le code ici - - - - + EXPORT CallbackSon +CallbackSon proc + + push {lr} + + pop {pc} + + + + endp END \ No newline at end of file diff --git a/soft/PjtKEIL_StepSon/Src/principal.c b/soft/PjtKEIL_StepSon/Src/principal.c index d09be75..c15045b 100644 --- a/soft/PjtKEIL_StepSon/Src/principal.c +++ b/soft/PjtKEIL_StepSon/Src/principal.c @@ -3,7 +3,7 @@ #include "DriverJeuLaser.h" - +extern void CallbackSon(void); int main(void) { @@ -14,8 +14,8 @@ int main(void) // Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers CLOCK_Configure(); - - +Timer_1234_Init_ff(TIM4, 6552); +Active_IT_Debordement_Timer(TIM4, 2, CallbackSon); //============================================================================ diff --git a/soft/PjtKEIL_StepSon/StepSon.uvoptx b/soft/PjtKEIL_StepSon/StepSon.uvoptx index a13d7da..0ca8b9b 100644 --- a/soft/PjtKEIL_StepSon/StepSon.uvoptx +++ b/soft/PjtKEIL_StepSon/StepSon.uvoptx @@ -10,7 +10,7 @@ *.s*; *.src; *.a* *.obj; *.o *.lib - *.txt; *.h; *.inc + *.txt; *.h; *.inc; *.md *.plm *.cpp 0 @@ -75,7 +75,7 @@ 1 0 - 0 + 1 18 @@ -160,7 +160,7 @@ 0 1 - 1 + 0 0 0 0 @@ -460,7 +460,7 @@ 1 0 - 1 + 0 18 @@ -666,6 +666,38 @@ + + Son + 1 + 0 + 0 + 0 + + 4 + 4 + 2 + 0 + 0 + 0 + .\Src\bruitverre.asm + bruitverre.asm + 0 + 0 + + + 4 + 5 + 2 + 0 + 0 + 0 + .\Src\GestionSon.s + GestionSon.s + 0 + 0 + + + ::CMSIS 0 diff --git a/soft/PjtKEIL_StepSon/StepSon.uvprojx b/soft/PjtKEIL_StepSon/StepSon.uvprojx index d0b5c10..c69c3c5 100644 --- a/soft/PjtKEIL_StepSon/StepSon.uvprojx +++ b/soft/PjtKEIL_StepSon/StepSon.uvprojx @@ -10,7 +10,7 @@ Simu 0x4 ARM-ADS - 5060750::V5.06 update 6 (build 750)::.\ARMCC + 5060960::V5.06 update 7 (build 960)::.\ARMCC 0 @@ -410,6 +410,21 @@ + + Son + + + bruitverre.asm + 2 + .\Src\bruitverre.asm + + + GestionSon.s + 2 + .\Src\GestionSon.s + + + ::CMSIS @@ -819,6 +834,21 @@ + + Son + + + bruitverre.asm + 2 + .\Src\bruitverre.asm + + + GestionSon.s + 2 + .\Src\GestionSon.s + + + ::CMSIS @@ -1297,6 +1327,21 @@ + + Son + + + bruitverre.asm + 2 + .\Src\bruitverre.asm + + + GestionSon.s + 2 + .\Src\GestionSon.s + + + ::CMSIS @@ -1322,12 +1367,7 @@ - <Project Info> - - - - - + StepSon 0 1