26.8.1.2.1 Code

Copy-paste the following code to your user application:
uint32_t random_result;

while (true) {
    while (trng_read(&trng_instance, &random_result) != STATUS_OK) {
    }
    port_pin_toggle_output_level(LED_0_PIN);
    /* Add a short delay to see LED toggle */
    volatile uint32_t delay = 50000;
    while(delay--) {
    }
}