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.


Topics - miodrag

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / M52232 custom board
« on: May 19, 2008, 12:29:29 PM »
Hi All!

I have custom built board with M52232.
I am using P&E Micro USB Multilink for programming and debugging, uTasker SP7.0.

uTasker target : M52232EVB_ROM.

I changed following in uTasker:
-app_hw_m52232x.h :
Code: [Select]
#ifdef _M52232
      #define SIZE_OF_FLASH              (128*1024)
 #else
     #define SIZE_OF_FLASH              (256*1024)   
 #endif
.
.
.
#ifdef _M52232         
    #define PLL_MUL                        10                        // 50 MHz operation
#else       
    #define PLL_MUL                        12                        // 60MHz operation
#endif         
.
.
.
#define CONFIGURE_WATCHDOG         0

-config.h:
 disabled FTP, SMTP, POP3, HTTP, TELNET & DHCP.

-M52235EVB_FLASH.lcf
Code: [Select]
MEMORY
{
    flash1  (RX)   : ORIGIN = 0x00000000, LENGTH = 0x000400
    flashconfig   (RX)   : ORIGIN = 0x00000400, LENGTH = 0x00000018 
  //flash2  (RX)   : ORIGIN = 0x00000420, LENGTH = 0x003FBE0
    flash2  (RX)   : ORIGIN = 0x00000420, LENGTH = 0x001FBE0
    vectorram(RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400
    sram    (RWX)  : ORIGIN = 0x20000400, LENGTH = 0x00007C00
  //sram    (RWX)  : ORIGIN = 0x20000400, LENGTH = 0x00003C00 */  /* first tests with M52221 */
    ipsbar  (RWX)  : ORIGIN = 0x40000000, LENGTH = 0x0
}
.
.
.
__FLASH_SIZE = 0x00020000;


I have set default network setting and MAC address so that device can connect to my LAN:
Code: [Select]
static const NETWORK_PARAMETERS network_default = {
    (AUTO_NEGOTIATE | FULL_DUPLEX | RX_FLOW_CONTROL),                    // usNetworkOptions - see driver.h for other possibilities
    {0x00, 0x04, 0xA3, 0x00, 0x00, 0x01},                                // ucOurMAC - when no other value can be read from parameters this will be used
    { 192, 168, 164, 55 },                                                  // ucOurIP - our default IP address
    { 255, 255, 255, 0 },                                                // ucNetMask - Our default network mask
    { 192, 168, 164, 1 },                                                  // ucDefGW - Our default gateway
    { 192, 168, 164, 1 },                                                  // ucDNS_server - Our default DNS server
};

I also enabled LAN_REPORT_ACTIVITY.

With this setup I can write program to internal falsh and debug it (only 1 breakpoint !?). After initialization, application goes to fnDoLowPower. Nothing happens with ethernet (LEDs are off, and I can't ping device from my computer).

Can anyone help and tell me if I am doing the right thing with modifications?
I am trying to setup minimal application firts, so that I can move on to building full application.












Pages: [1]