Search found 16 matches

by chourizo
Fri Nov 22, 2019 5:33 pm
Forum: NetBurner Software
Topic: how to debug a silent crash
Replies: 9
Views: 5397

Re: how to debug a silent crash

That's a really good idea. I cannot use the serial port because the nano is installed in my custom board and don't have access to it, but I can definitely try using the dummy task to see what is causing issues. Thanks a lot!
by chourizo
Fri Nov 22, 2019 10:30 am
Forum: NetBurner Software
Topic: how to debug a silent crash
Replies: 9
Views: 5397

Re: how to debug a silent crash

Thanks for the answer. When it crashes, It doesn't answer to ping and the network doesn't work. Another task is listening to a gpio and sending something via rs485 and it doesn't work either when it crashes. My comms are based on UDP, with the exception of the TCP server that only allows 5 clients. ...
by chourizo
Fri Nov 22, 2019 9:27 am
Forum: NetBurner Software
Topic: how to debug a silent crash
Replies: 9
Views: 5397

how to debug a silent crash

Hello, I am trying to debug some code developed in 2.7.1 for a Netburner Nano. The program seems to be crashing every several hours and I am trying to see why. There are no memory leaks. I have EnableSmartTraps(); in my main function, but I am redirecting the stdout port to UDP and never saw any mes...
by chourizo
Mon Jul 31, 2017 5:40 am
Forum: NetBurner Software
Topic: Nano slowest I2C setting
Replies: 2
Views: 2473

Re: Nano slowest I2C setting

You are right, I didn't realize that the divider starts again at 0x20.

I tried 2560 and it worked. Thanks for your help!
by chourizo
Fri Jul 28, 2017 12:57 pm
Forum: NetBurner Software
Topic: Nano slowest I2C setting
Replies: 2
Views: 2473

Nano slowest I2C setting

I am having some issues while communicating with a small 8-bit micro that is set to work via I2C at 50KHz. At the nano, following the documentation to do the I2C Init: For MOD54415 // Internal bus clock which = (250MHZ (sys clock)/2) / freqdiv to give max baud rate of the master mode // i2c bus. Val...
by chourizo
Thu Apr 27, 2017 5:17 am
Forum: NetBurner Software
Topic: independent control of PWM in same submodule. Possible?
Replies: 1
Views: 2205

independent control of PWM in same submodule. Possible?

I am using a nano (that has 8 PWM outputs) to control 3 motors and some LEDs. But following the example (EdgeAlignedPWM and CenterAlignedPWM) I can only set all the A to a ratio and all the B to another ratio. Is it possible to have the 8 PWMs controlled independently? I don't need different frequen...
by chourizo
Thu Sep 03, 2015 10:51 am
Forum: NetBurner Software
Topic: PWM A and B
Replies: 1
Views: 3405

PWM A and B

I am trying to use B3 and A1 PWM outputs in a Nano. I have A1 working properly, but I am having problems getting B3 to work. So far I can only use it in complementary mode (cr2 = 0x0000), but not independently. I really just want to have A1 and B3 identical. Can somebody point me to some example or ...
by chourizo
Mon Jul 27, 2015 7:46 pm
Forum: NetBurner Software
Topic: Network dies randomly - help debugging it
Replies: 5
Views: 5604

Re: Network dies randomly - help debugging it

I've been doing a lot more tests and I think that's exactly what was happening. I think that from time to time there was a small glitch in the communications that was accumulating packets and running out of buffers. I think the glitch was resolved in 2.7.1 (maybe the UDP bug that pbreed found). I de...
by chourizo
Fri Jul 24, 2015 5:21 pm
Forum: NetBurner Software
Topic: Network dies randomly - help debugging it
Replies: 5
Views: 5604

Re: Network dies randomly - help debugging it

Ok, using GetFreeCount() I did some tests and saw a 261 - 263 in normal condition (everything working properly) and it seems to go down to 11 suddenly when everything goes out. So it seems that I have a problem and a nice tool to look for it. About the number of packets per second (around 300-500 pe...
by chourizo
Fri Jul 24, 2015 1:55 pm
Forum: NetBurner Software
Topic: Network dies randomly - help debugging it
Replies: 5
Views: 5604

Network dies randomly - help debugging it

I have a Nano 54415 with 2.7.1 and am experiencing random network issues. I would like some help or orientation about how to debug it. My project consists on one 54415 that talks via UDP with two motors and one computer. The motors are identical (just different IPs) and I am exchanging around 160 UD...