Re: os_msys_get_pkthdr always return null

2017-02-15 Thread Christopher Collins
Hi Then, On Wed, Feb 15, 2017 at 10:58:57AM +0800, then yon wrote: > After i tried on 3 NRF52_DK board, 1 of it worked! > > This is really weird as the other 2 units only work if i disabled the > filesystem. > > Do you have any clue on this? I wonder if the flash is corrupt somehow. There

Re: os_msys_get_pkthdr always return null

2017-02-14 Thread Fabio Utzig
Hi, Are you running this os_msys_get_pkthdr code on the same thread that you're running the fsutil_write_file/fsutil_read_file? I'm pretty sure there is a bug on the fsutil functions (which was not triggered before) and I would suggest that you change temporarily both functions to remove

Re: os_msys_get_pkthdr always return null

2017-02-14 Thread then yon
Dear Chris, After i tried on 3 NRF52_DK board, 1 of it worked! This is really weird as the other 2 units only work if i disabled the filesystem. Do you have any clue on this? Regards, Then Yoong Ze On 15/2/2017 6:32 AM, then yon wrote: Dear Chris, Thanks for your reply; i've made the

Re: os_msys_get_pkthdr always return null

2017-02-14 Thread then yon
Dear Chris, Thanks for your reply; i've made the changes below but i still get the same result. struct os_mbuf *om = os_msys_get_pkthdr(0, 0); syscfg.vals: MSYS_1_BLOCK_COUNT: 100 LOG_LEVEL: 1 SHELL_TASK: 1 SPI_0_SLAVE: 1 CONFIG_NFFS: 1 For the

os_msys_get_pkthdr always return null

2017-02-14 Thread then yon
Dear Support, I having issue with mqueue that the following code always return me error after i update myNewt to developer version. struct os_mbuf *om = os_msys_get_pkthdr(0, sizeof(some_struct)); if(om == NULL) { console_printf("Spi err 02\n"); return -2; } By disabling nffs