Welcome, Guest

Author Topic: MSD with PIC18F4550(PIC-USB-STK)  (Read 2098 times)

alejandrofg

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
MSD with PIC18F4550(PIC-USB-STK)
« on: September 08, 2015, 02:46:54 AM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1812
  • Karma: +46/-2
Re: MSD with PIC18F4550(PIC-USB-STK)
« Reply #1 on: September 09, 2015, 03:22:17 PM »
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:

Code: [Select]
#if 0
that has to be changed to
 
Code: [Select]
#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
 
Code: [Select]
#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

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: MSD with PIC18F4550(PIC-USB-STK)
« Reply #2 on: September 10, 2015, 05:59:05 PM »
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.