Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - achim

#1
LPC2xxx / Re: upload to RAM *and run*
December 17, 2009, 11:43:24 PM

This is the explanation I needed. Thank you.

Nice Christmas

Achim
#2
LPC2xxx / Re: upload to RAM *and run*
December 11, 2009, 12:32:40 AM
Sorry for annoying you, Andy, but this does not answer my question.

I'm not using the FM user interface or Hyperterm or anything like that, I'm using the flashmagicarm.dll in my own program and nothing else. It looks like this (stripped to the essence):


 options.hwconfig       = FM_HWBOOTEXEC;

 presults = fm_connect(&options, sizeof(options));

 presults = fm_program ( .... ); // load LPC application to RAM

 presults = fm_reset (FM_RESET, 0x40000200, (1000 << 16)); // run application after 1 second delay

 // application takes control over the LPC

 // talk to the app using fm_raw_transmit and fm_raw_receive


The LPC hardware is not reset during all this although it takes much more than the second mentioned above.

That's not a problem, I need it exactly this way. But I'm confused because the DLL manual (ch. 4.17 - fm_reset) says something different - or I read it wrong. This is important to me because I'm developing a long-term service application and I must know whether or not I can rely on the behavior I see.

I hope you can explain. Have a nice weekend

Achim


#3
LPC2xxx / Re: upload to RAM *and run*
December 10, 2009, 02:00:53 AM

OK, I did it and it works fine. The microcontroller jumps into the RAM routine and runs it. Thank you!  :)

One more question: Are you no longer closing the COM port (as described in the manual)? My device is not reset after the delay elapses, and I read from this thread that a device reset should be a side effect of Windows closing the COM port - or did I get that wrong?

I'm not complaining about that - I prefer having full control over the reset wire, so it's even better this way. I'd just like to know.

Regards,
Achim
#4
LPC2xxx / Re: upload to RAM *and run*
December 09, 2009, 01:26:36 AM
Quote from: Andy Ayre on December 08, 2009, 10:00:33 AM
We found an issue with this. Please try version 5.44.
I did. Same behaviour, same debug output. Problem is NOT solved.

The fm_version() I can see 2.15.1834, is that correct?

Achim
#5
LPC2xxx / Re: upload to RAM and run *in ARM mode*
December 08, 2009, 09:03:37 AM
Salut, ladies and gents,

I have just started programming with the Production System, and I have the same problem as the users above: A program loaded into RAM does not start there.

My code:


// fm_connect, fm_program etc. runs fine.

presults = fm_select_debug_mode (FM_DEBUG_MODE_ON, "f:\\kram\\reset2.fmd");
presults = fm_reset (FM_RESET, 0x40000200, (1000 << 16)); // specify ARM mode and 1 second delay


I want the target to run in ARM mode but FM invokes a "Thumb" reset:


tx> U 23130\d\a
rx> U 23130\d\a
rx> 0\d\a
tx> G 1073742336 T\d\a
rx> G 1073742336 T\d\a
debug> COM Port RX flushed


Please help me out. What can I do to make the processor run in ARM mode?

My FlashMagic version is 5.43.1827.

Regards,
Achim