So I still can’t figure out how to program commands for my OS in relation to flash. I am trying to find some example codes, but I can’t find any good ones, for the C Pico SDK. If you know any please help another out!
EP 1 - 2025 of Astrox Podcast/Radio releasing in less than 10 hours!
Yes an OS needs a Code Editor and a Code Runner to be considered an OS on the picocalc. It’s a coding machine. Keep up the good work, I want to try Astrox as soon as it’s a usable OS for my presious PicoCalc
Is this following part of your fat32 driver code for renaming files and directories, if so, what parameters does it require, and how does it work:
fat32_error_t fat32_rename(const char *old_path, const char *new_path)
{
if (!old_path || !*old_path || !new_path || !*new_path)
{
return FAT32_ERROR_INVALID_PARAMETER;
}
if (!fat32_is_ready())
{
return mount_status;
}
// Find the old entry
fat32_entry_t entry;
RETURN_ON_ERROR(find_entry(&entry, old_path));
// Check if new path already exists
fat32_entry_t new_entry;
fat32_error_t result = find_entry(&new_entry, new_path);
if (result == FAT32_OK)
{
return FAT32_ERROR_FILE_EXISTS; // New path already exists
}
else if (result != FAT32_ERROR_FILE_NOT_FOUND)
{
return result; // Other error
}
// Rename by deleting the old entry and creating a new one with the same start cluster
RETURN_ON_ERROR(unlink_entry(&entry));
RETURN_ON_ERROR(link_entry(&entry, new_path));
return FAT32_OK;
}
First Actual Version
Aimed release by early November.
Second Actual Version
Aimed release by end of December.
Third Actual Version
Aimed release by mid February.
Fourth Actual Version
Aimed release by mid March.
Fifth Actual Version
Aimed release by end of May.
And after here, I will invite 3 contributors other than me, to continue working on this OS, while I start porting this and working on a version for the Luckfox Lyra.
Today I am going to be working on the shift+up and shift+down command cycling while on command line. Thanks to the help of jblanked and Blair, I can now find the keycodes, and hopefully I can get this working by the end of the day.
So… cmake isn’t detected anymore on my computer, as I did some file transfers from a drive to another drive and I may have accidentally deleted some stuff (including cmake) during the transfers. Depending on how long these fixes take, the Version BETA may release on planned release date or sometime in October.
I have figured out a way to continue building, but I need to use both command line and cmake gui which makes it a little tedious, if you have any questions, feel free to ask.