Up_assert: Assertion failed at file:irq/irq_unexpectedisr.c line: 65 The led blinks, it prints out via UART, so basically it works! And I get fyi I’ve created stm32f103ze_sram, configured for 512kB heap in external sram, changed the ld script, etc., it compiled into 41kB bin, flashed in. Using bigger boards is great, but the cost if the boards is often more than a PRi Zero, (or a C.H.I.P board) in which case the Zero etc is often the better option.
We already have FreeRTOS running on the BluePill, but its a different class of OS to what NuttX provides.
I think the cool thing about running NuttX on the BluePill is the low cost of the board, and yet to still run something akin to a fully fledged OS. I will try to produce many video tutorials with this board as possible before moving to some more advance board: maybe STM32F4DISCOVERY or NUCLEO-L476RG board, I didn’t decide yet. It could be compared to Arduino Uno: a nice introducing board, but if you want to test more advanced features it is better to use Arduino Mega or other board.īut I decided to use this board because it is really inexpensive (less than US$ 2.00). In fact the BluePill board (called stm32f103-minimum on NuttX) is not the best board to test all NuttX features. I’m the author of the blog post and creator of the video tutorials. A blog/wiki page is more direct to the point I prefer mailing list or even better some blog posts, because forum we spend much time reading the people discussing and many times if goes off-time. There is a group/mailing list: (I configured Yahoo group to send me email like an ordinary mailing list). There are examples of loading modules at apps/example/elf and /module and /sotest. NuttX support loading ELF binary, loading kernel module (like Linux kernel), loading dynamic library. Then it is just like having a huge on-chip SRAM. You have to set CONFIG_MM_REGIONS=2, define CONFIG_HEAP2_START, and CONFIG_HEAP2_SIZE.
It is all combined in the memory manager with mm_addregion.
You can add the external SRAM to the heap where it can be used just like on-chip SRAM. The external SRAM can be used as normal RAM of NuttX (like the internal SRAM).