[elektro] PIC32 memoria kezelés

Pipi lista at puzsar.hu
Wed Nov 23 23:43:44 CET 2011


2011.11.23. 23:28 keltezéssel, F-I írta:
>
> A baj, hogy a minta AN1388 PIC32 bootloader sem a BOOTFLASH-be teszi!
nem lehet hogy azért mert nem férne be minden a boot flash-be,
  emiatt az indító rész a bootflash-ban van, a többi meg a prog mem tetején


azért nézd meg ezt a MAL-ból:
xxxxx\Microchip/USB/Documentation/Getting%20Started/Getting%20Started%20-%20Running%20the%20Host%20-%20Bootloaders%20-%20Thumbdrive%20Bootloader.htm

Configuring Boot Loader and Target Application Linker Scripts for PIC32 devices
The PIC32 USB MSD Host boot loader uses the PIC32MX795F512L device by default. To use the boot loader with another PIC32 device (for example, say the PIC32MX564F128H device), the following steps 
should be followed.



For the Boot Loader application:



1.     Copy the procdefs.ld file from \Program Files\Microchip\mplabc32\v2.01\pic32mx\lib\proc\32MX564F128H folder to the boot loader project folder ( the folder that contains USB Host - Mass Storage 
Bootloader - C32.mcp file). You may have to overwrite the existing procdefs.ld file.

2.     Open the procdefs.ld file in a text editor. Change the length of the kseg0_program_mem section to 0xE000. See the figure below. This is the memory allocated for the boot loader code with 
compiler size optimization enabled. If the compiler size optimization is disabled, this number should be changed to 0x17000. If the size is not increased, the linker would indicate an error saying 
that it cannot fit the code within the specified memory region.


3.     Save and close procdefs.ld file. Build the USB Host - Mass Storage Bootloader - C32.mcp project and program the boot loader on to the device.

>
> ha letöltöd: http://www.microchip.com/mal
> nem lehet valamelyik loaderből kiokoskodni?
>
>
>


-- 
Pipi
http://www.puzsar.hu



More information about the Elektro mailing list