Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix speech recognition application #74

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 18 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,17 @@ integration-tests:
GIT_SUBMODULE_STRATEGY: recursive

sw-vsi-configs-test:
extends:
- .build_job
tags:
- iotmsw-amd64
extends: .base-job-rules
rules:
- if: ( $SCHEDULED_JOB_TO_RUN == "sw-vsi-configs-test" )
after_script:
# test_job's `before_script` section is referenced in the `after_script` section to set the correct value for FVP_BIN variable used in testing.
# test-applications_base job's `script` section is referenced in the `after_script` section of
before_script:
- !reference [.build_job, before_script]
- !reference [.build_job, script]
script:
# test_job's `before_script` section is referenced in the `script` section to set the correct value for FVP_BIN variable used in testing.
# test-applications_base job's `script` section is referenced in the `script` section of
# this job to do the testing part after the build stage is done where the build stage is inherited
# from `.build_job`
- !reference [.test_job, before_script]
Expand Down Expand Up @@ -393,13 +397,17 @@ sw-vsi-configs-test:
GIT_SUBMODULE_STRATEGY: recursive

gnu-toolchain-test:
extends:
- .build_job
tags:
- iotmsw-amd64
extends: .base-job-rules
rules:
- if: ( $SCHEDULED_JOB_TO_RUN == "gnu-toolchain-test" )
after_script:
# test_job's `before_script` section is referenced in the `after_script` section to set the correct value for FVP_BIN variable used in testing.
# test-applications_base job's `script` section is referenced in the `after_script` section of
before_script:
- !reference [.build_job, before_script]
- !reference [.build_job, script]
script:
# test_job's `before_script` section is referenced in the `script` section to set the correct value for FVP_BIN variable used in testing.
# test-applications_base job's `script` section is referenced in the `script` section of
# this job to do the testing part after the build stage is done where the build stage is inherited
# from `.build_job`
- !reference [.test_job, before_script]
Expand Down
2 changes: 1 addition & 1 deletion applications/speech_recognition/dsp/src/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ uint32_t ulScheduler(

// Add delay to allow some time for the connectivity task
// to send and receive messages to and from the cloud.
vTaskDelay(120);
vTaskDelay(140);
}
*error=sdfError;
return(nbSchedule);
Expand Down
4 changes: 2 additions & 2 deletions bsp/corstone300/include/FreeRTOSConfig_target.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
*
* As described above, FVPs sacrifice timing accuracy to achieve fast
* simulation execution speeds. Therefore, we need this work around of setting
* `configTICK_RATE_HZ` to `300` to simulate scheduler polling rate of
* `configTICK_RATE_HZ` to `200` to simulate scheduler polling rate of
* `1000 Hz` or 1 tick per millisecond.
*
* In addition, the macro `pdMS_TO_TICKS` is defined here to match the 1 tick
* per millisecond instead of using the macro defined in
* `FreeRTOS-kernel/include/projdefs.h`
*/
#define configTICK_RATE_HZ ( ( uint32_t ) 300 )
#define configTICK_RATE_HZ ( ( uint32_t ) 200 )
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) xTimeInMs )
#define TICKS_TO_pdMS( xTicks ) ( ( uint32_t ) xTicks )
4 changes: 2 additions & 2 deletions bsp/corstone310/include/FreeRTOSConfig_target.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* As described above, FVPs sacrifice timing accuracy to achieve fast
* simulation execution speeds. Therefore, we need this work around of setting
* `configTICK_RATE_HZ` to set a higher scheduler polling rate.
* For example, setting `configTICK_RATE_HZ` to `200` simulates scheduler polling rate
* For example, setting `configTICK_RATE_HZ` to `150` simulates scheduler polling rate
* of `1000 Hz` or 1 tick per millisecond.
*
* In addition, the macro `pdMS_TO_TICKS` is defined here to match the 1 tick
* per millisecond instead of using the macro defined in
* `FreeRTOS-kernel/include/projdefs.h`
*/
#define configTICK_RATE_HZ ( ( uint32_t ) 200 )
#define configTICK_RATE_HZ ( ( uint32_t ) 150 )
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) xTimeInMs )
#define TICKS_TO_pdMS( xTicks ) ( ( uint32_t ) xTicks )
4 changes: 2 additions & 2 deletions bsp/corstone315/include/FreeRTOSConfig_target.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* As described above, FVPs sacrifice timing accuracy to achieve fast
* simulation execution speeds. Therefore, we need this work around of setting
* `configTICK_RATE_HZ` to set a higher scheduler polling rate.
* For example, setting `configTICK_RATE_HZ` to `200` simulates scheduler polling rate
* For example, setting `configTICK_RATE_HZ` to `150` simulates scheduler polling rate
* of `1000 Hz` or 1 tick per millisecond.
*
* In addition, the macro `pdMS_TO_TICKS` is defined here to match the 1 tick
* per millisecond instead of using the macro defined in
* `FreeRTOS-kernel/include/projdefs.h`
*/
#define configTICK_RATE_HZ ( ( uint32_t ) 200 )
#define configTICK_RATE_HZ ( ( uint32_t ) 150 )
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) xTimeInMs )
#define TICKS_TO_pdMS( xTicks ) ( ( uint32_t ) xTicks )
1 change: 1 addition & 0 deletions release_changes/202405161554.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
speech-recognition: Increase the block time for DSP task.
3 changes: 2 additions & 1 deletion tools/tests/test_applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def test_applications(
if index == len(pass_output):
break
for x in fail_output:
assert x not in line
if x in line:
break
current_time = timer()

assert index == len(pass_output)
3 changes: 2 additions & 1 deletion tools/tests/test_blinky_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def test_blinky_output(
if index == len(pass_output):
break
for x in fail_output:
assert x not in line
if x in line:
break
current_time = timer()

assert index == len(pass_output)
Loading