Help with pegoda project

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

Help with pegoda project

894 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mauricio1976 on Thu Oct 31 09:10:58 MST 2013
Hello
We are working on a project with mifare card. After to buy the product "Pegoda Evaluation Kit MFEV710", we try debug the project that comes in the CD (pegoda2_fw_src_v2_2.zip) on the IDE "LPCXpresso v6.1.0", but we can't do it. Apparently the file is downloaded to the micro (LPC1769) , but when we try debug it appear the message "No source available for "0x1fff0ba4".
Best regards, Mauricio
0 Kudos
9 Replies

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Tue Nov 05 11:16:33 MST 2013

Quote: mcm@airtrack.com.ar
... now i can debug the code.



Good to hear that...
0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mauricio1976 on Tue Nov 05 11:05:34 MST 2013
Hello,
I modified the linker scrip (rom (rx) : ORIGIN = 0x00000000) and now i can debug the code.
Thanks, Mauricio
0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri Nov 01 13:06:53 MST 2013

Quote: mcm@airtrack.com.ar

Could to be that this project was thinking for download it in a microcontroller with an bootloader, and not over an empty?



Yes.

Does your project use 'managed linker script'?

That's the best way to define your memory (and start with flash address=0).

See: http://www.support.code-red-tech.com/CodeRedWiki/EnhancedManagedLinkScripts

Also: http://www.support.code-red-tech.com/CodeRedWiki/SwitchingCLibrary

0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mauricio1976 on Fri Nov 01 12:46:04 MST 2013
I am following the application note "AN11002 Pegoda Toolchain Information" ("http://www.nxp.com/documents/application_note/AN11002.pdf"). In this application note explain two option of programing enviroment, LPCXpresso and OpenSource. When I import the project "pegoda2_fw_src.zip" over LPCXpresso, appear two option for compiling:
1- Pegoda 2 (LPCXpresso 4)
2- Pegoda 2 (Open Source)
Then I select the option 1 and the project compile is OK (apparently).
I don't know is the problem is:
1- The configuration is for LPCXpresso 4 and not for LPCXpresso 6.1
2- In the project have prohibited the ejecution step by step of the code.
3- Like you said, the configuration of the project is wrong.

Could to be that this project was thinking for download it in a microcontroller with an bootloader, and not over an empty?
0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri Nov 01 12:05:43 MST 2013
So which file did you flash? pegoda3_fw.hex?

Your linker script is starting where?


Quote:
MEMORY
{
  rom (rx)  : ORIGIN = 0x00005000, LENGTH = 512K
  ram (rwx) : ORIGIN = 0x10000000, LENGTH =  32K
 
  ram1(rwx) : ORIGIN = 0x2007C000, LENGTH = 16k
  ram2(rwx) : ORIGIN = 0x20080000, LENGTH = 16k
}



That's obviously wrong. Flash is starting at ORIGIN = 0x00000000.

This is no LPCXpresso project, so I'm not sure what you are doing. (Would suggest to create a new LPCXpresso project and add required files there).

Anyway, if you flash this file the required vector table (starting at address 0) is empty and debugging will fail because LPC1768 will start in ISP mode without it....
0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mauricio1976 on Fri Nov 01 11:29:32 MST 2013
I attached the project that come with the development board.
Mauricio
0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Fri Nov 01 08:42:18 MST 2013

Quote: mcm@airtrack.com.ar

....
41: Vectors still have erased values
nSRST assert (if available)
Executing in bootloader.
....



Either your vector table isn't valid or there's no checksum.

Read UM: 32.3.1.1 Criterion for Valid User Code

Perhaps you want to post your project or at least your AXF file....
0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mauricio1976 on Fri Nov 01 08:04:18 MST 2013
Hi,
The debug log it is the following:

LPCXpresso Debug Driver v6.0 (Oct 16 2013 02:04:27 - crt_emu_cm3_nxp build 1212)
Looked for chip XML file in C:/nxp/LPCXpresso_6.1.0_164/lpcxpresso/bin/LPC1768.xml
Looked for vendor directory XML file in C:/nxp/LPCXpresso_6.1.0_164/lpcxpresso/bin/nxp_directory.xml
Found generic directory XML file in C:/nxp/LPCXpresso_6.1.0_164/lpcxpresso/bin/crt_directory.xml
Emu(0): Conn&Reset. DpID: 2BA01477. Info: HID64HS12
SWD Frequency: 3000 KHz. RTCK: False. Vector catch: False.
Packet delay: 0  Poll delay: 0.
Loaded LPC175x_6x_512.cfx: LPC175x_6x (512K) Apr 22 2013 12:14:31  On-chip Flash Memory
NXP: LPC1768  Part ID: 0x00000000
Connected: was_reset=true. was_stopped=false
v LPCXpresso Free License - Download limit is 256K
Writing 131744 bytes to 5000 in Flash (assumed clock: 4.0MHz)
Erased/Wrote page  5-12 with 32768 bytes in 4111msec
Erased/Wrote page  13-16 with 12288 bytes in 1546msec
Erased/Wrote page  16-16 with 32768 bytes in 2864msec
Erased/Wrote page  17-17 with 32768 bytes in 2864msec
Erased/Wrote page  18-18 with 21152 bytes in 1976msec
Flash write Done
41: Vectors still have erased values
nSRST assert (if available)
Executing in bootloader.

In effect, when the load is finished, the microcontroller remains in bootloader mode. I no clarified that i'm working on a alone board LPCXpresso1769 without other aditional hardware (not in the "Pegoda Evaluation Kit MFEV710").
Now, I connected the port pin 2-10 with a pull up resistor to 3,3V and the result is the same.
sugestions?
Thanks, Mauricio
0 Kudos

725 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Nov 01 01:35:22 MST 2013
I'm not familiar with this kit or its demonstration code. But it sounds like the download is not succeeding and you are ending up stuck in the LPC1769's bootloader.

Can you please post the debug log that is generated when you try to start a debug session….

http://www.lpcware.com/content/faq/lpcxpresso/debug-log

Regards,
LPCXpresso Support
0 Kudos