@@ -314,7 +314,9 @@ void programDataCompleteCallback(int32_t status, ARM_STORAGE_OPERATION operation
314
314
/* We come here either because of completion for program-data or as a very
315
315
* unlikely fall through from synchronous completion of program-data (above). */
316
316
317
+ #ifndef __CC_ARM
317
318
printf (" verifying programmed sector at addr %lu\n " , (uint32_t )addr);
319
+ #endif
318
320
verifyBytePattern (addr, sizeofData, BYTE_PATTERN);
319
321
++programIteration;
320
322
@@ -411,7 +413,9 @@ void programDataOptimalCompleteCallback(int32_t status, ARM_STORAGE_OPERATION op
411
413
412
414
TEST_ASSERT ((operation == ARM_STORAGE_OPERATION_ERASE) || (operation == ARM_STORAGE_OPERATION_PROGRAM_DATA));
413
415
if (operation == ARM_STORAGE_OPERATION_ERASE) {
416
+ #ifndef __CC_ARM
414
417
printf (" programming %u bytes at address %lu with pattern 0x%x\n " , sizeofData, (uint32_t )addr, BYTE_PATTERN);
418
+ #endif
415
419
status = drv->ProgramData (addr, buffer, sizeofData);
416
420
417
421
if (status < ARM_DRIVER_OK) {
@@ -427,7 +431,9 @@ void programDataOptimalCompleteCallback(int32_t status, ARM_STORAGE_OPERATION op
427
431
/* We come here either because of completion for program-data or as a very
428
432
* unlikely fall through from synchronous completion of program-data (above). */
429
433
434
+ #ifndef __CC_ARM
430
435
printf (" verifying programmed sector at addr %lu\n " , (uint32_t )addr);
436
+ #endif
431
437
verifyBytePattern (addr, sizeofData, BYTE_PATTERN);
432
438
++programIteration;
433
439
@@ -548,7 +554,9 @@ template<size_t ERASE_UNITS_PER_ITERATION>
548
554
void eraseCompleteCallback (int32_t status, ARM_STORAGE_OPERATION operation)
549
555
{
550
556
static unsigned eraseIteration = 0 ;
557
+ #ifndef __CC_ARM
551
558
printf (" erase<%u> complete callback: iteration %u\n " , ERASE_UNITS_PER_ITERATION, eraseIteration);
559
+ #endif
552
560
TEST_ASSERT_EQUAL (operation, ARM_STORAGE_OPERATION_ERASE);
553
561
554
562
/* test that the actual sector has been erased */
@@ -560,7 +568,9 @@ void eraseCompleteCallback(int32_t status, ARM_STORAGE_OPERATION operation)
560
568
const uint64_t addr = firstBlock.addr + eraseIteration * ERASE_UNITS_PER_ITERATION * firstBlock.attributes .erase_unit ;
561
569
++eraseIteration;
562
570
571
+ #ifndef __CC_ARM
563
572
printf (" testing erased sector at addr %lu\n " , (uint32_t )addr);
573
+ #endif
564
574
verifyBytePattern (addr, ERASE_UNITS_PER_ITERATION * firstBlock.attributes .erase_unit , (uint8_t )0xFF );
565
575
566
576
Harness::validate_callback ();
@@ -617,7 +627,9 @@ control_t test_erase(const size_t call_count)
617
627
618
628
void eraseChipCompleteCallback (int32_t status, ARM_STORAGE_OPERATION operation)
619
629
{
630
+ #ifndef __CC_ARM
620
631
printf (" eraseChip complete callback\n " );
632
+ #endif
621
633
TEST_ASSERT_EQUAL (status, ARM_DRIVER_OK);
622
634
TEST_ASSERT_EQUAL (operation, ARM_STORAGE_OPERATION_ERASE_ALL);
623
635
@@ -627,7 +639,9 @@ void eraseChipCompleteCallback(int32_t status, ARM_STORAGE_OPERATION operation)
627
639
uint64_t addr = firstBlock.addr ;
628
640
629
641
/* test that the flash has been erased */
642
+ #ifndef __CC_ARM
630
643
printf (" testing erased chip\n " );
644
+ #endif
631
645
unsigned index = 0 ;
632
646
static const unsigned MAX_VERIFY_ITERATIONS = 5 ;
633
647
while ((index < MAX_VERIFY_ITERATIONS) && (addr < (firstBlock.addr + firstBlock.size ))) {
@@ -780,7 +794,9 @@ void programDataWithMultipleProgramUnitsCallback(int32_t status, ARM_STORAGE_OPE
780
794
}
781
795
}
782
796
797
+ #ifndef __CC_ARM
783
798
printf (" Callback: programming %lu bytes at address %lu with pattern 0x%lx\n " , (N_UNITS * info.program_unit ), (uint32_t )firstBlock.addr , BYTE_PATTERN);
799
+ #endif
784
800
rc = drv->ProgramData (firstBlock.addr , buffer, (N_UNITS * info.program_unit ));
785
801
TEST_ASSERT (rc >= ARM_DRIVER_OK);
786
802
if (rc == ARM_DRIVER_OK) {
@@ -794,7 +810,9 @@ void programDataWithMultipleProgramUnitsCallback(int32_t status, ARM_STORAGE_OPE
794
810
795
811
TEST_ASSERT_EQUAL ((N_UNITS * info.program_unit ), status);
796
812
813
+ #ifndef __CC_ARM
797
814
printf (" Callback: verifying programmed sector at addr %lu\n " , (uint32_t )firstBlock.addr );
815
+ #endif
798
816
if (info.program_unit >= sizeof (BYTE_PATTERN)) {
799
817
verifyBytePattern (firstBlock.addr , (N_UNITS * info.program_unit ), BYTE_PATTERN);
800
818
} else {
0 commit comments