Author Topic: SPI_SW_UPLOAD in LM3S6965  (Read 26917 times)

Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
SPI_SW_UPLOAD in LM3S6965
« on: January 08, 2009, 07:22:11 PM »
Hi,

Is there possible to make software update with SPI FLASH and LM3S6965?
How to make option SPI_SW_UPLOAD in LM3S6965?

Please help?
robo

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #1 on: January 08, 2009, 07:47:08 PM »
Hi Robo

Yes this is possible.

Check that you have the latest service pack installed: http://www.utasker.com/software/softwareV1.3.html

You can chose from the method using SPI_SW_UPLOAD, which uses the SPI FLASH exclusively for this function, or else define the SPI FLASH as file system (SPI_FILE_SYSTEM and FLASH_FILE_SYSTEM) or as extension to the file system (which can overlap between internal FLASH and external SPI FLASH).

Good luck

Regards

Mark

Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #2 on: January 08, 2009, 07:59:13 PM »
Hi Mark!

Thanks for fast reply! But I should enable SPI SOFTWARE UPDATE in uTasker code? Should I use the same boot loader minimum?

regards,
robo

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #3 on: January 08, 2009, 08:59:20 PM »
Robo

This is described briefly in http://www.utasker.com/docs/uTasker/uTaskerBoot_003.PDF

You certainly need to activate SPI_SW_UPLOAD in the boot loader project (whether the application is using this or a file system in SPI FLASH).
I would first try with SPI_SW_UPLOAD also enabled in the application since this is the simplest case.

Regards

Mark

Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #4 on: January 08, 2009, 11:38:36 PM »
Hi Mark,

I have tried to activate  #define SPI_SW_UPLOAD  and #define SPI_FLASH_ST in uTaskerBoot config.h file but then there is lot of errors...
should I add to project SPI function?

regards,
robo

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #5 on: January 09, 2009, 02:00:46 AM »
Robo

Which SP are you using and which compiler?

regards

Mark

Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #6 on: January 09, 2009, 08:42:11 AM »
Hi,

I'm using SP2...

Regards,
robo

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #7 on: January 09, 2009, 01:04:40 PM »
Hi Robo

I checked Rowley and Keil projects (SP2 - warning SP1 and SP2 need to be applied in the case of the LM3X project) and confirm this problem in both.

I suspect that SP1 - where the support was added - will be OK so you may like to go back to SP1 for this configuration. In the meantime I will need to look into this to find out why SP2 has broken the boot loader build with SPI FLASH.

Sorry.

regards

Mark


Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #8 on: January 09, 2009, 02:17:22 PM »
Hi Mark,

Thanks very much!!! I will try first with sp1 like you said.

regards,
robo

Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #9 on: January 09, 2009, 06:13:43 PM »
Hi Mark,

I have tried to biuld uTaskerBoot in SP1 with SPI_SW_UPLOAD option and it also doesn't work... there are some errors.
What could be wrong?

regards,
robo


Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #10 on: January 09, 2009, 06:47:51 PM »
Hi Robo

I just checked and also get the same behavior.

So I checked the service pack release notes and found:
SP1 - "... Firmware upload is supported from internal FLASH. ..."

SP2 - Keil boot loader added (no info about SPI FLASH boot loader support)

Therefore based on these and the fact that neither SP1 nor SP2 compiles (with Rowley or Keil) when configured with SPI_SW_UPLOAD I think that my statement that it is possible was wrong.
The code certainly has everything needed but it looks as though there is not configuration ready for it since the errors are of two kinds:
1) configuration defines (like SPI_DATA_FLASH_SIZE)
2) missing low level driver defines in LM3SXXXX_boot.h (eg. WRITE_BUFFER_1)

I am therefore sorry that my statement was wrong and I will try to get a setup tested so that this is no longer lacking in the Luminary project.

Regards

Mark

Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #11 on: January 09, 2009, 07:02:57 PM »
Hi Mark,

Thanks again for halp!
this will be very helpfull for me.

Regards
robo

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #12 on: January 27, 2009, 12:58:59 AM »
Hi Robo

Sorry about the delay but I have finally released SP3 including full SPI FLASH support (ATMEL, ST and SST) for the boot loader.
There is also a new GCC build for for boot loader which can be simply set as VisualStudio target to perform an automated post build.

See: http://www.utasker.com/forum/index.php?topic=502.0

Regards

Mark

Offline robo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: SPI_SW_UPLOAD in LM3S6965
« Reply #13 on: January 28, 2009, 03:05:17 PM »
Hi Mark!

Thats great!
I'm going to test SP3.

Regards,
robo