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 - Predielis

Pages: [1]
1
NXPTM M522XX, KINETIS and i.MX RT / Which functions are thread-safe?
« on: November 16, 2012, 10:58:27 AM »
Is it possible to call uMemcpy and fnSendUDP from inside a PIT timer interrupt handler? At the same time I would be receiving through a callback function set up with fnGetUDP_Socket.

From time to time the application stops in the unhandled interrupt function, and it seems that a memory corruption happens inside uMemcpy.
uMemcpy does not seem to be reentrant, when using DMA. I did a quick test disabling and enabling interrupts inside of this function, but I still have crashes. This event is rare, so it's not easy to debug.
fnSendUDP too seems to be risky.

What is the best way to handle this problem?

Thanks.

2
NXPTM M522XX, KINETIS and i.MX RT / Some issues with the K60 V15 beta
« on: February 23, 2012, 04:41:41 PM »
Hi, testing the V15 beta software with CodeWarrior.

It seems I can't have a periodic call of the PIT handler function. It is executed only once.
Am I missing something?

This is the configuration I use:

void fnConfigurePIT(void)
{
   PIT_SETUP pit_setup; // interrupt configuration parameters
   pit_setup.int_type = PIT_INTERRUPT;
   pit_setup.int_handler = RTHandler3; // test a periodic timer
   pit_setup.int_priority = PIT1_INTERRUPT_PRIORITY;
   pit_setup.count_delay = PIT_US_DELAY(1000); // 3245us delay
   pit_setup.mode = PIT_PERIODIC; // periodic interrupt
   pit_setup.ucPIT = 1; // use PIT1
   fnConfigureInterrupt((void *)&pit_setup); // enter interrupt for PIT1 test
}

Also the Windows 7 64 FTP client does not work when uploading the demo web server pages. A Linux client does the job, don't know why.

I am not so sure about this, maybe it is just an Eclipse glitch. The app_hw_kinetis.h is highlited like TWR_K60N512 and KINETIS_K60 are not defined. But this was done in config.h

Regards

3
NXPTM M522XX, KINETIS and i.MX RT / 52235 and Ethernet buffers
« on: February 02, 2012, 10:50:23 AM »
Hello, I'm experimenting with an old M52235EVB board.
It seems my application is dropping UDP packets, so I'm trying to raise NUMBER_OF_RX_BUFFERS_IN_ETHERNET_DEVICE.
It seems it works only if at the same time I reduce LAN_BUFFER_SIZE, it seems that their product should be less than a certain threshold. Eg I can double NUMBER_OF... only if  LAN_BUFFER_SIZE is set to one half.
Is my impression correct? How can I overcome the problem?
uTasker 1.3sp8 with Codewarrior 7.2.

Is this older CPU still worth, or is it better to switch to something newer? I'm seeing the compiler doing nasty errors, even with optimization off.

Thanks.

4
Hello, I'm using CW 10.1 on Vista.
The only way for me to start the demo app is to single step until line 4064 in kinetis.c
  INIT_WATCHDOG_DISABLE();
Then I can run the app normally.
If It runs from the beginning it halts and resets to the first line.
Toggling a breakpoint before the INIT_WATCHDOG_DISABLE line and running from the start does not work, it resets.
It is probably something related to the watchdog.
I'm still trying to master CW, so bear with me.

The demo runs normally, but the "generate 8 meg" dynamic page crashes the app.

Thank you for this fine product.

Pages: [1]