I might offer a bit work for cash

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

If Microchip can't offer a solution to my problems of calling a user defined function from with the cstartup.s file I might just throw it out here for a bit of work.  It could take minutes to do or days so I'm not sure of the compensation I should offer the willing coders. 

This topic has a solution.
Last Edited: Tue. Sep 4, 2018 - 01:23 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It was most likely not Microchip’s products involved. If you can provide the simplest example of the problem and how to recreate your simple project, then most likely myself and/or others can look at it for gratis. I might suggest zipping up the project, but that might end up being a 400MB file!

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

Hi Kartman, what is the attachment file size allowed on freaks? sorry its 10MBytes

Last Edited: Tue. Sep 4, 2018 - 01:24 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So how about you post what processor you are using so this does not become a question fest.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

Okay Freaks, you can find the software frame work here.  https://github.com/atmelcorp/atmel-software-package

If you can find a way to call a user function from cstartup.s then I'll pay £25 via paypal.  being nice here. 

 

try using the "getting-started" example.

 

 

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

It appears to be a SAM5 target.

 

Thanks for the update.

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

I use DS-5 Community Edition to compile. 

Yes, It is actually the SAMA5D44 ARM Processor.

 

You'll need to setup the Targets,

 

TARGET=sama5d4-xplained

 

and to clean

 

clean TARGET=sama5d4-xplained

Last Edited: Tue. Sep 4, 2018 - 02:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Any information required to compile the getting-started example just ask and I'll reply when I get back

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

Fianawarrior wrote:

I'll reply when I get back...

... from my world cycling trip. cheeky

Ross McKenzie ValuSoft Melbourne Australia

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

I once cycled from Cork to Killarney, was brilliant.  Anyway valusoft, should you not be working on my problem?  £25 pounds for the first one to solve it.

 

PS: Heads Up!

It compiles correctly but fails to link at the end.

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

Sorry William, I have my own issues to get on with. cheeky

Ross McKenzie ValuSoft Melbourne Australia

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

At 25 quid I wouldn't be doing it for the money. It would be called a 'love job'. I'd have to spin up a virtual machine, load up DS-5 then find and load gcc. That the 25 quid burnt right there. Assuming it went smoothly......... then there would be coming up to speed with the tools and the framework. My original assumption that it was in Atmel Studio - since I have that loaded already then it wouldn't have been much of a hurdle, so doing a compile, looking at the map file and figuring out what's what wouldn't have been too torturous.... My current advice - resume in the original thread and examine or post your map file. We haven't ruled out the most simple, most obvious issues yet apart from 'it doesn't work'!

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

It's 4:25am here, we'll get back on to it tomorrow...

Would love to wakeup to an answer cheeky

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 2

Both the gcc and iar cstartup.s files that I looked at call board_init() before main(). board_init() is a weak function defined in a board-specific board_blah.c file, which you can override. I suggest you copy the appropriate board_init() function into your own file, remove the WEAK attribute, and at the end of it this copy of the function, call your user-defined function.

 

- S

 

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

Fianawarrior wrote:
you can find the software frame work here.
You are still making this more complex than it needs to be. That is a huge software stack with a number of build targets. The "examples" directory:

 

https://github.com/atmelcorp/atm...

 

appears to have more than 50 projects that can be built so rather than just a link to the github can you say EXACTLY what it is you are trying to achieve? Which of those projects are you trying to build? Or is it even one of those? The more detail you can give the more likelihood someone is going to try to help.

 

Also does that archive contain the copy or arm-gcc required or has that been sourced from somewhere else.

 

From your other threads it's clear this is actually just a 5 minute job and I'd happily do it for free but not with such a scant engineering brief to start with.

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

mnehpets, you WIN!

I'll pm you for your paypal details.

 

 

I was close last night to getting the same answer but I never tried implementing the weak function in my code.

Thanks guys.

Last Edited: Tue. Sep 4, 2018 - 01:43 PM