Hallo Leute, ich möchte gerne Werte die im Externen SDRAM sind auf meinem USB-Stick übertragen. Für die USB Übertragung hab ich das Beispiel Projekt von Atmel übernommen und es funktioniert auch. Kann mir einer bitte sagen, was ich bei dem Write-Teil ändern muss? Vielen Dank. µC: UC3A #define MSG_TEST "Test UHI MSCT12312\n" volatile unsigned long *sdram = SDRAM; //Flankenzähler if(rot_clk_flag) { rot_clk_flag = false; if(n<sdram_size) { sdram[n]= avr32_count; n++; } if(n == sdram_size) { gpio_tgl_gpio_pin(AVR32_PIN_PA01); } //USB Speicherung if (!nav_file_create((FS_STRING) "Test.txt")) { if (fs_g_status != FS_ERR_FILE_EXIST) { if (fs_g_status == FS_LUN_WP) { // Test can be done only on no write protected device continue; } lun_state |= (1 << lun); // LUN test is done. ui_test_finish(false); // Test fail continue; } } if (!file_open(FOPEN_MODE_APPEND)) { if (fs_g_status == FS_LUN_WP) { // Test can be done only on no write protected device continue; } lun_state |= (1 << lun); // LUN test is done. ui_test_finish(false); // Test fail continue; } if (!file_write_buf((uint8_t*)MSG_TEST, sizeof(MSG_TEST))) { lun_state |= (1 << lun); // LUN test is done. ui_test_finish(false); // Test fail continue; } file_close();
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.