Search found 8 matches
- Mon Feb 11, 2013 11:41 am
- Forum: NetBurner Software
- Topic: Defining large variables
- Replies: 8
- Views: 7173
Re: Defining large variables
No reason, really, other than I'm used to static allocation and I come from a C background. Though seulater's response made me take a look more closely into task stack allocation and it seems everything works fine if it's global. It must pull the memory from somewhere else... So there are two soluti...
- Mon Feb 11, 2013 11:20 am
- Forum: NetBurner Software
- Topic: Defining large variables
- Replies: 8
- Views: 7173
Re: Defining large variables
None of the above? This is all just in UserMain. I haven't spawned any additional tasks other than the typical startup stuff (which happens after the variable definition which can freeze the system), ie: void UserMain( void *pd ) { unsigned short lfm_buffer[3500]; // KABOOM OSChangePrio( MAIN_PRIO )...
- Mon Feb 11, 2013 11:01 am
- Forum: NetBurner Software
- Topic: Defining large variables
- Replies: 8
- Views: 7173
Defining large variables
I'm using the MOD5441x and need to define an array that is fairly large, on the order of 7k bytes. Depending on where I try this, the program freezes or traps, failing to print any useful information to the screen because of a corrupt stack. Given that complaint, it seemed like stack sizes were a de...
- Fri Feb 01, 2013 2:01 pm
- Forum: NetBurner Software
- Topic: Mod5441x and Nano54415 SPI driver available
- Replies: 13
- Views: 11174
Re: Mod5441x and Nano54415 SPI driver available
The manual being wrong certainly explains a lot, and is pretty much what I was expecting given its DMA channel description inconsistencies. Thanks a bunch for the links and I'll dig in to your new code ASAP.
- Fri Feb 01, 2013 12:07 pm
- Forum: NetBurner Software
- Topic: Mod5441x and Nano54415 SPI driver available
- Replies: 13
- Views: 11174
Re: Mod5441x and Nano54415 SPI driver available
Time for a rather lengthy post… After doing some digging it looks like enabling true DMA for DPI may only be possible for DSPI 1. First things first, though. It looks like the sim5441x.h definitions for the memory map are different than the user manual specifies. I rebuilt system files after changin...
- Tue Jan 29, 2013 10:21 am
- Forum: NetBurner Software
- Topic: Mod5441x and Nano54415 SPI driver available
- Replies: 13
- Views: 11174
Re: Mod5441x and Nano54415 SPI driver available
Do you have new code that takes advantage of DMA? I just started looking into how to get this started as the current non-DMA throughput isn't high enough for our application. I'm assuming the setup is going to be something like page 9 here: http://cache.freescale.com/files/32bit/doc/app_note/AN2867....
- Tue Jan 15, 2013 9:10 am
- Forum: NetBurner Software
- Topic: Mod5441x and Nano54415 SPI driver available
- Replies: 13
- Views: 11174
Re: Mod5441x and Nano54415 SPI driver available
Sorry for the slow reply, I've been sick (isn't everybody?). My setup simply configures loopbacks on all DSPI ports by jumpering pins 27-28 (DSPI 1), 3-4 (DSPI 2), 21-22 (DSPI 3). I throw some data into separate send buffers and start the transfers. I package up data from all three DSPI ports and se...
- Thu Jan 10, 2013 10:18 am
- Forum: NetBurner Software
- Topic: Mod5441x and Nano54415 SPI driver available
- Replies: 13
- Views: 11174
Re: Mod5441x and Nano54415 SPI driver available
I'm trying to get all three DSPI ports running simultaneously on the MOD5441x but I'm having difficulty with DSPI2. I'm configuring the pins like this: J2[29].function(PINJ2_29_DSPI2_SCK); J2[3].function(PINJ2_3_DSPI2_SIN); J2[4].function(PINJ2_4_DSPI2_SOUT); I'm using MTTY on the USB port with both...