1. Fatal error: Fatal error[e72]: Segment blenv_address_space must be defined in asegment definition option (-Z,-b or-p)
The cause of this error is a problem with the configuration of the IAR project.
The general tutorial reads: In Options, select "Linker" in the option on the left, and select Config page in the tab on the right, and check Override default in Linker Command file, for example, we select Lnk51ew_ CC254XF256_BANKED.XCL, banked indicates the use of the Bankedcode model.
If you follow the tutorial above, the option is to select the IAR8051 installation directory lnk51ew_cc254xf256_banked.xcl, the specific path is
D:\LEARNSTW\IARFOR8051\8051\CONFIG\DEVICES\TEXASINSTRUMENTS\LNK51EW_CC2541F256_BANKED.XCL (This is my installation path)
This will cause the above error to be resolved by modifying the path to the following path:
C:\TexasInstruments\BLE-CC254x-1.3.2\Projects\ble\common\cc2540\ti_51ew_cc2540b.xcl
You can do it.
The default path is actually:
$PROJ _dir$\. \.. \common\cc2540\ti_51ew_cc2540b.xcl
No modification