Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216150

Forum Post: Running Piccolo F28026 from Flash

$
0
0

I have spoken to you guys before about this. I want to run a program from flash memory. I haven't been successful in the past. I have learned a few new things about it but now I wanna run an example. I saw the folllowing lines and i want to verify them with you guys:

//! -# Change the linker cmd file to reflect the flash memory map.
//! -# Make sure any initialized sections are mapped to Flash.
//! In SDFlash utility this can be checked by the View->Coff/Hex
//! status utility. Any section marked as "load" should be
//! allocated to Flash.
//! -# Make sure there is a branch instruction from the entry to Flash
//! at 0x3F7FF6 to the beginning of code execution. This example
//! uses the DSP0x_CodeStartBranch.asm file to accomplish this.
//! -# Set boot mode Jumpers to "boot to Flash"
//! -# For best performance from the flash, modify the waitstates
//! and enable the flash pipeline as shown in this example.
//! Note: any code that manipulates the flash waitstate and pipeline
//! control must be run from RAM. Thus these functions are located
//! in their own memory section called ramfuncs.

// M y   c o n c e r n s  &  s t e p s //

1. - by me changing the linker file from 28026_RAM_lnk.cmd to F28026.cmd I see the allocations to FLASH instead RAM

/* Allocate program areas: */
.cinit : > FLASHA PAGE = 0
.pinit : > FLASHA, PAGE = 0
.text : > FLASHA PAGE = 0
codestart : > BEGIN PAGE = 0

do I have to check for anything else?

2.- I have added the F2802x_CodeStartBranch.asm file.

3.- I do not understand what boot mode jumpers are. This is the grayest area to me. I'm a control stick or launchpad or anything like that. How do I go about these jumpers?

4.- file:///C:/Users/Alan/Downloads/0576.Running%20from%20Internal%20Flash%20(1).pdf    <--- This thing is good at explaining how everything works but not exactly how they're related to setting up the flash

I'm trying to find out if any other steps need to be taken to boot from flash. I figured I wouldn't have to reinvent the wheel and write extensive configuration code. can someone shed any light on these parts I find ambiguous? 


Viewing all articles
Browse latest Browse all 216150

Trending Articles