Skip to content

Commit ad3c49c

Browse files
authored
Merge pull request #2726 from hathach/hil-add-ra4m1
add ra4m1 ek for hil test
2 parents 7706e6f + b35173b commit ad3c49c

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

.idea/cmake.xml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hw/bsp/ra/family.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ uint32_t board_button_read(void) {
147147
return lvl == BUTTON_STATE_ACTIVE;
148148
}
149149

150+
size_t board_get_unique_id(uint8_t id[], size_t max_len) {
151+
max_len = tu_min32(max_len, sizeof(bsp_unique_id_t));
152+
bsp_unique_id_t const *uid = R_BSP_UniqueIdGet();
153+
memcpy(id, uid->unique_id_bytes, max_len);
154+
return max_len;
155+
}
156+
150157
int board_uart_read(uint8_t *buf, int len) {
151158
(void) buf;
152159
(void) len;
@@ -169,7 +176,6 @@ void SysTick_Handler(void) {
169176
uint32_t board_millis(void) {
170177
return system_ticks;
171178
}
172-
173179
#endif
174180

175181
//--------------------------------------------------------------------+

test/hil/hil_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def main():
358358
if 'tests' in item:
359359
test_list = item['tests'] + ['board_test']
360360
else:
361-
test_list = all_tests
361+
test_list = list(all_tests)
362362

363363
# remove skip_tests
364364
if 'tests_skip' in item:

test/hil/rpi.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@
3737
"flasher": "jlink",
3838
"flasher_sn": "000611000000",
3939
"flasher_args": "-device MIMXRT1011xxx5A"
40+
},
41+
{
42+
"name": "ra4m1_ek",
43+
"uid": "152E163038303131393346E46F26574B",
44+
"tests_skip": ["cdc_msc", "cdc_msc_freertos"],
45+
"comment": "MSC is slow to enumerated #2602",
46+
"flasher": "jlink",
47+
"flasher_sn": "000831174392",
48+
"flasher_args": "-device R7FA4M1AB"
4049
}
4150
]
4251
}

0 commit comments

Comments
 (0)