Problem about MCU settings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem about MCU settings

2,017 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zhaichangmin on Wed Jun 05 18:23:23 MST 2013
Hi;
   I use LPC1768, I modify MCU setting, the default configration is like this:   
MFlash512 (rx) : ORIGIN = 0x0, LENGTH = 0x80000 /* 512k */
This can work correctly
I modify it, make it change like this:
MFlash512 (rx) : ORIGIN = 0x0, LENGTH = 0x78000 /* 480k */
When I have changed, it can't work.
I want to know the reason and how I resolve the problem,
I see the code of the Disassembly, the program stop at the 0x00000000, it say "No Source available for g_pfnVectors()".
I want to use the top 32K of the flash to save myself data, for eample, some configration information.
Regards,
Zhai
0 Kudos
Reply
11 Replies

1,963 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Sat Jun 08 01:36:50 MST 2013

Quote: zhaichangmin
I don't change MCU settings, the MCU settings still like this: MFlash512 (rx) : ORIGIN = 0x0, LENGTH = 0x80000 /* 512k */

If I use top 32K of the 512k flash to save myself data, I want to know if it will generate problem?



No :)

If your code is less than 480k the last sector shouldn't be touched.
And if you don't erase the complete flash before writing a program ('Mass erase') your last sector data will survive even flashing a new program.
0 Kudos
Reply

1,963 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zhaichangmin on Fri Jun 07 23:36:28 MST 2013
Hi:
I don't change MCU settings, the MCU settings still like this:
MFlash512 (rx) : ORIGIN = 0x0, LENGTH = 0x80000 /* 512k */

If I use top 32K of the 512k flash to save myself data, I want to know if it will generate
problem?

Thanks
0 Kudos
Reply

1,963 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Jun 07 01:18:45 MST 2013
I see you are using v4.2.3 - this is a very out of date version. Suggest you upgrade to the latest v5.2.4.
0 Kudos
Reply

1,963 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri Jun 07 00:56:10 MST 2013

Quote: zhaichangmin
I don't kown how to 'Refresh MCU Cache', can you explain it in detail?



It's a simple button in your  'MCU settings' window :)
0 Kudos
Reply

1,963 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zhaichangmin on Fri Jun 07 00:49:44 MST 2013

Quote: R2D2
Did you try a 'Refresh MCU Cache' (Button in 'MCU settings' window) already?

Your project is starting and running on my LPCXpresso1769 without problems (without connected LCD).



I don't kown how to 'Refresh MCU Cache', can you explain it in detail?
Thanks
0 Kudos
Reply

1,963 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri Jun 07 00:28:15 MST 2013
Did you try a 'Refresh MCU Cache' (Button in 'MCU settings' window) already?

Your project is starting and running on my LPCXpresso1769 without problems (without connected LCD).
0 Kudos
Reply

1,961 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zhaichangmin on Thu Jun 06 18:06:59 MST 2013
Hi:
   The project and debug log is in the attach file, I use LPCXpresso v4.2.3_292, the board 
is LPC1768 Development Kit.

Regards,
Zhai
0 Kudos
Reply

1,961 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Jun 06 03:18:03 MST 2013

Quote: zhaichangmin

   When I have changed, it can't work.
I want to know the reason and how I resolve the problem,



Changing MCU settings to reduced flash size isn't causing any problems here. After a new clean and build cycle everything is working as usual.
Sometimes 'Disassembly' view is a little bit sleepy and showing it's content not until the first step.

So whatever problem you are facing, reducing flash size isn't causing it and without further information it's difficult to guess.
0 Kudos
Reply

1,961 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Jun 06 03:08:29 MST 2013
If possible, I suggest that you export your project and attach to the thread.

http://support.code-red-tech.com/CodeRedWiki/ImportExport

[Make sure that you do a clean before exporting.]

If you are not in a position to provide the project, then please ZIP up and post your generated axf file, the *.ld linker script files and the map file generated by your tools build (probably in the Debug directory).

Please also supply debug log created when you launch your debug session:

http://support.code-red-tech.com/CodeRedWiki/DebugLog

Please also confirm what version of LPCXpresso IDE you are using, and which debug probe and board you are using.

Regards,
CodeRedSupport
0 Kudos
Reply

1,961 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by zhaichangmin on Thu Jun 06 00:58:22 MST 2013
I see the code of the Disassembly, the program stop at the 0x00000000, it say "No Source available for g_pfnVectors()".
I want to use the top 32K of the flash to save myself data, for eample, some configration information.
0 Kudos
Reply

1,961 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Wed Jun 05 23:46:58 MST 2013
What doesn't work? If we knew what your problem was, we might be able to help.

And why are you changing the memory size?
0 Kudos
Reply