at90usb162 internal flash question

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Here is what I want to do can someone tell me if it is possible. I want to use this to control an instrument via a custom parallel interface and a common 40 bit driver. The thing is that I need a 1k calibration look up table that needs to be created during calibration. do I have to store that calibration table externally or is it possible to write that to the internal flash. Either where the boot loader would have been located. Or do I need to put my program where the bootloader would have been located and then use the program memory to store the calibration table.

Can someone point me to the right direction.

The usb interface would only be used for calibration and would just want to access it from a calibration program using the serial protocol.

I have access to an external spi flash that i was going to use for calibration but now im not sure it will work.

I only have 15 microseconds to do this so I have to read the parallel interface access the loockup table for a 32bit number and push it out to the driver via shift registers.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

At least the code to write the table must be in the bootloader section. It should be possible to put just the function that does the writing there.

Regards,
Steve A.

The Board helps those that help themselves.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thankyou,

Now i have to find resources on how to even put a function in the bootloader as well as how to write memory. These things were not in the data sheet. Hopefully google will be my friend today.

I am currently looking at the bootloader project included in lufa.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you use LUFA does that suggest you use avr-gcc? If so then look at boot.h and the BOOTLOADER_SECTION macro in particular, use with a - - section-start=.bootloader=0xNNNN in particular.