MSD with PIC18F4550(PIC-USB-STK)

Started by alejandrofg, September 08, 2015, 02:46:54 AM

Previous topic - Next topic

alejandrofg

Hi!!

Thanks for read me!!!Well i´m tested a MSD code for PIC-USB-STK, but the board dont run or make one action.

I´m tested another codes and the board are ok, but i cant run the MSD code complete.

Searching in internet, i´m found a one user to remake the code and run well:

http://security-corp.org/hard/diy/1870-sozdaem-usb-mass-storage-devicefleshka-na-pic18f4550-s-apparatnym-shifrovaniemopcionalno-maskirovaniem.html

Any can help me to get full file to this board????or can help me in general?


Thanks in advance.

Regards.

LubOlimex

Hello Alejandro

We've identified the problem. The code was compiled to be uploaded by the bootload to the board. In order to keep the bootloader intact specific memory regions were defined in the code.

In main.c of the MASS STORAGE demo approximately around line 62 of the code – there is - code that says:

#if 0

that has to be changed to

#if 1

– this change is required if you upload the demo code via MPLAB and a programmer tool (like in your case). If you want to upload the code via the bootloader program you should use the original value

#if 0

else when you upload the code via the bootloader it would overwrite (destroy) it.

We would update the example code and hex on the web-page of the board by the end of the week!

Thank you for the feedback – it helped us improve the demo!

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

alejandrofg

Hello:

I tested the hex file and work it.

Later i check the source code, but i´m sure its run well.

Very thanks for all and understand me.I´m newbie in this worlds :D.

Regards.