-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arm_hardfault: PANIC!! #17
Comments
Is possible to check in which line is this happening? |
It looks like it is failing: |
Which board are you using? |
Are you doing this configuration for your board? kconfig-tweak --enable CONFIG_MICROROSLIB
kconfig-tweak --enable CONFIG_SERIAL_TERMIOS
kconfig-tweak --enable CONFIG_STM32L4_UART4
kconfig-tweak --enable CONFIG_STM32L4_UART4_SERIALDRIVER
kconfig-tweak --enable CONFIG_UART4_SERIALDRIVER
kconfig-tweak --set-val CONFIG_UART4_RXBUFSIZE 256
kconfig-tweak --set-val CONFIG_UART4_TXBUFSIZE 256
kconfig-tweak --set-val CONFIG_UART4_BAUD 115200
kconfig-tweak --set-val CONFIG_UART4_BITS 8
kconfig-tweak --set-val CONFIG_UART4_PARITY 0
kconfig-tweak --set-val CONFIG_UART4_2STOP 0 |
Have you check that you are using the correct serial port here? |
so i do have all those configurations @pablogs9 the only difference is i replaced And what should I be replacing the |
WIll run the agent as well And see if any errors occur! Thank you @pablogs9 |
@pablogs9 Is it a problem that I am flashing with Because this output that you see
Does not show up on my end. Instead this does:
Which I have seen before when trying to run Zephyr or FreeRTOS while the board was trying to communicate to the agent.
or when i do
PS: if you deem this a separate issue i can definitely make a new ticket instead |
So it definitely suggests there is still a problem at Changed the serial channel just to see the full message
|
Additionally, upon changing the serial channel, I used a serial to usb adapter in order to pull that into my agent PC and run the agent from that port.
Additionally, for more information, I did reconfigure USART6 similar to what I had done for USART3 with the kconfig-tweaks as you have recommended above |
Your micro-ROS client is trying to connect to the micro-ROS Agent with the |
Hi @pablogs9 so I did try to connect the uROS Agent to that port but I did not get the expected behaviour
It gets hung up at this point and does not move forward. I also attempted using it through Is there potentially a board dependency that is associated with the agent? I dont remember there being one but I could be mistaken. Like potentially having to specify somewhere which terminal exactly we are using not via the command line but through like on of the config files or something. |
In general, your board should have one serial port for NSH and another for micro-ROS. Does your board have two serial ports? Once you have configured two serial ports, make sure that you have access to NSH in one of them and run Are you in this point? |
Yes, so I did do this. Where I used |
Ok, if you open your uROS port using |
So i opened up |
Don't open the same port simultaneously in two processes, just in minicom and launch microros in NSH. |
Are you sure that |
Yeah i used Tested it with another adapter as well just in case. |
I just toggled on |
For the sake of sanity: [this is from the
Just triple checked my wiring. My
I just swapped |
So hahahah,
But honesty, it looks like it only really happens when the publisher is being created
|
Yeah I definitely have to say there is something wrong with the publisher because, without calling the create and fini functions for the publisher and just running it. There isnt a stack dump and I can actually see the node using |
Is there a way of checking how much stack is assigned to a thread? |
Attaching a copy of my .config, file I will also try and circle back with some NuttX folks see if this is potentially caused by something else |
This looks like it is occuring because the option |
@pablogs9 is it possible this could be causing problems, the nuttx guys pointed me to find the location of failure
Happens to be in this file path |
Hello @eden-desta, what's wrong with this reallocate? |
This is one of the addresses for the stack dump @pablogs9 |
So I was able to build and such. Now I am on the
nsh
terminal and get this massive stack dumpI have not started to run the agent though I anticipated being able to start, exiting out the port and running the docker command.
The text was updated successfully, but these errors were encountered: