SD Card Filesystem driver#41
Conversation
|
Hi ! I'm trying to compile this branch, but no luck so far, I cloned #ifndef MACROS_H
#define MACROS_H
//#define DEBUG_LOG 1
#define DEBUG_LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__)
#endifalso commented out //#define _MMCSD
#define _MMCSD0
#define _MMCSD1edit: changed DEBUG_LOG to #define DEBUG_LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__)but I'm getting lots of |
Probably need |
|
I think you could copy |
|
yes , I tried including stdint but then it conflicts with #ifndef __AM18X_TYPE_H__
#define __AM18X_TYPE_H__
#define __USE_STDINT_H
#ifdef __USE_STDINT_H
#include <stdint.h>to avoid the conflict and that seems to work but now it can't find RTOS |
|
As far as I can tell FreeRTOS isn't used in this PR, so you can probably just delete that |
Yes just delete freertos header. |
am18x-lib has Can you tidy up this PR so it builds and doesn't include unnecessary code please? There is no rush, I'm not sure when I'll be able to review it. |
|
any progress on this @vananasun ? it would be very useful at this point to have at least ro access to sd card |
Unfortunately not (yet), I've been very busy with life including preparing to move apartments. I kind of lost hope trying to attach a debugger, but ordered a chip to program the flash a few days ago. My idea is to write a pause in the flash boot code of my E2 so I can attach a debugger and then finally continue development. If you are keen and impatient however, I will have you know that this PR has functioning read functionality already! Caveats are:
Hope i didn't get ur hopes down Cheers, |
|
|
hi ! I just ported the code on this pr to a new branch forked from dev so it can run from DDR |
|
silly me, SDMMC READ 512 bytes f_opendir result: 0 disk_read(0, 0xc0018bd4, 24576, 1) SDPROT Transition from data transfer mode(Transfer State) to data transfer mode(Sending-data State) SDMMC READ 512 bytes [DIR] KORG |
|
Nice! Glad to see ur picking up. Ive quietly continued on the project aswell but still got trouble executing a binary from GDB :/ |
Important:
I wrote a test function in main.c
Sorry for messyness or potentially unnecessary code that might've slipped in. I hope soon we can integrate all these drivers cleanly into main branch once we have a functioning bootloader (#40) that allows for bigger code size and continue developing nice and clean. Proper serial console and error handling interface would reaally be nice to have now