Hi, here is the error I get when I run the command “make program-dfu”:
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x08005000, size = 78172
Download [ ] 0% 0 bytesdfu-util: Page at 0x08005000 is not writeable
make: *** [program-dfu] Error 74
Any ideas what the problem is? I am compiling on Mac OS.
When I run command "make program-dfu" PLATFORM=photon
, I get this error:
make[1]: *** No rule to make target `../../../build/target/user/platform-6-m-lto/src/libuser.a', needed by `../../../build/target/user-part/platform-6-m-lto/user-part.elf'. Stop.
make: *** [modules/photon/user-part] Error 2
UPDATE: I ran both "make"
and "make program-dfu"
with "PLATFORM=photon"
and it says the file downloaded successfully but gives both errors afterwards:
Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 4084
Download [=========================] 100% 4084 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status
make[1]: *** [program-dfu] Error 74
make: *** [modules/photon/user-part] Error 2